X11: Fixed window resize.

This commit is contained in:
Branimir Karadžić 2015-04-26 12:42:51 -07:00
parent d804ca9023
commit 68a2462d89

View file

@ -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;