mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
X11: Fixed window resize.
This commit is contained in:
parent
d804ca9023
commit
68a2462d89
1 changed files with 4 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue