summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_x11.cc
diff options
context:
space:
mode:
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>();