summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_x11.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-04 21:40:56 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-04 21:40:56 +0100
commit3ecc97ff6107d39791f8a67e3b78d316d9eeec80 (patch)
tree3f43967d7603b55cb3e8058ce03482b17ce154ba /plugingui/nativewindow_x11.cc
parent44f405b5460f6163e8772095de9a64082b76f075 (diff)
Fix missing redraws on resize in X11.
Diffstat (limited to 'plugingui/nativewindow_x11.cc')
-rw-r--r--plugingui/nativewindow_x11.cc3
1 files changed, 1 insertions, 2 deletions
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<Event> 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<MoveEvent>();