From cd20cec8e77bf9511ae52736e485f120e88b9303 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 15 Feb 2022 12:39:30 -0500 Subject: [PATCH] Remove X11 flicker --- simpledisplay.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simpledisplay.d b/simpledisplay.d index f2ee28d..a68758b 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -14161,7 +14161,8 @@ mixin DynamicLoad!(XRandr, "Xrandr", 2, XRandrLibrarySuccessfullyLoaded) XRandrL window = XCreateWindow(display, (windowType != WindowTypes.nestedChild || parent is null) ? root : parent.impl.window, 0, 0, width, height, - 0, CopyFromParent, 1 /* InputOutput */, cast(Visual*) CopyFromParent, CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect, &swa); + // I'm commenting that CWBackPixel thing just because it actually causes flicker for no apparent benefit. + 0, CopyFromParent, 1 /* InputOutput */, cast(Visual*) CopyFromParent, CWColormap /*| CWBackPixel*/ | CWBorderPixel | CWOverrideRedirect, &swa);