From 68a2462d892db932dd2e5520f63190d6aeeaac48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 26 Apr 2015 12:42:51 -0700 Subject: [PATCH] X11: Fixed window resize. --- examples/common/entry/entry_x11.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/examples/common/entry/entry_x11.cpp b/examples/common/entry/entry_x11.cpp index 249b8a04..02d14316 100644 --- a/examples/common/entry/entry_x11.cpp +++ b/examples/common/entry/entry_x11.cpp @@ -294,7 +294,6 @@ namespace entry | KeyPressMask | KeyReleaseMask | PointerMotionMask - | ResizeRedirectMask | StructureNotifyMask ; @@ -357,9 +356,6 @@ namespace entry case Expose: break; - case ConfigureNotify: - break; - case ClientMessage: if ( (Atom)event.xclient.data.l[0] == wmDeleteWindow) { @@ -449,14 +445,13 @@ namespace entry } break; - case ResizeRequest: + case ConfigureNotify: { - const XResizeRequestEvent& xresize = event.xresizerequest; - XResizeWindow(xresize.display, xresize.window, xresize.width, xresize.height); - WindowHandle handle = findHandle(xresize.window); + const XConfigureEvent& xev = event.xconfigure; + WindowHandle handle = findHandle(xev.window); if (isValid(handle) ) { - m_eventQueue.postSizeEvent(handle, xresize.width, xresize.height); + m_eventQueue.postSizeEvent(handle, xev.width, xev.height); } } break;