summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-01-30 21:28:27 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-01-30 21:28:27 +0100
commit091997de9a9faab2619647e8927370372604fe30 (patch)
tree67791ec8176a6f1af216d903f5b8e7c066162045
parente8e32784774b1cd409d0dfea1f20e2b25e31618d (diff)
Use grey clear colour to mask resize flickering.
-rw-r--r--plugingui/nativewindow_x11.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc
index 1ca7d00..353a371 100644
--- a/plugingui/nativewindow_x11.cc
+++ b/plugingui/nativewindow_x11.cc
@@ -49,8 +49,7 @@ NativeWindowX11::NativeWindowX11(void* native_window, Window& window)
screen = DefaultScreen(display);
- // Get some colors
- int blackColor = BlackPixel(display, screen);
+ int clearColor = 0xbbbbbb;
::Window parentWindow;
if(native_window)
@@ -69,7 +68,7 @@ NativeWindowX11::NativeWindowX11(void* native_window, Window& window)
window.x(), window.y(),
window.width(), window.height(),
border,
- blackColor, blackColor);
+ clearColor, clearColor);
long mask = (StructureNotifyMask |
PointerMotionMask |