From 091997de9a9faab2619647e8927370372604fe30 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 30 Jan 2017 21:28:27 +0100 Subject: Use grey clear colour to mask resize flickering. --- plugingui/nativewindow_x11.cc | 5 ++--- 1 file 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 | -- cgit v1.2.3