From 3ecc97ff6107d39791f8a67e3b78d316d9eeec80 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 4 Feb 2017 21:40:56 +0100 Subject: Fix missing redraws on resize in X11. --- plugingui/nativewindow_x11.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugingui') diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc index 5bb6474..c87d3df 100644 --- a/plugingui/nativewindow_x11.cc +++ b/plugingui/nativewindow_x11.cc @@ -426,8 +426,7 @@ std::shared_ptr NativeWindowX11::translateXMessage(XEvent& xevent, resizeEvent->height = xevent.xconfigure.height; event = resizeEvent; } - - if((window.windowX() != (std::size_t)xevent.xconfigure.x) || + else if((window.windowX() != (std::size_t)xevent.xconfigure.x) || (window.windowY() != (std::size_t)xevent.xconfigure.y)) { auto moveEvent = std::make_shared(); -- cgit v1.2.3