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;