mirror of
https://github.com/AxioDL/boo.git
synced 2025-06-30 10:23:29 +00:00
Maximize fix
This commit is contained in:
parent
85f9a633f0
commit
80b4a7e06a
@ -1603,8 +1603,14 @@ public:
|
|||||||
XGetWindowAttributes(m_xDisp, m_windowId, &wxa);
|
XGetWindowAttributes(m_xDisp, m_windowId, &wxa);
|
||||||
m_wrect.location[0] = x - wxa.x;
|
m_wrect.location[0] = x - wxa.x;
|
||||||
m_wrect.location[1] = y - wxa.y;
|
m_wrect.location[1] = y - wxa.y;
|
||||||
|
#if 0
|
||||||
|
/* This breaks with GNOME, why? */
|
||||||
m_wrect.size[0] = event->xexpose.width;
|
m_wrect.size[0] = event->xexpose.width;
|
||||||
m_wrect.size[1] = event->xexpose.height;
|
m_wrect.size[1] = event->xexpose.height;
|
||||||
|
#else
|
||||||
|
m_wrect.size[0] = wxa.width;
|
||||||
|
m_wrect.size[1] = wxa.height;
|
||||||
|
#endif
|
||||||
if (m_callback)
|
if (m_callback)
|
||||||
{
|
{
|
||||||
XUnlockDisplay(m_xDisp);
|
XUnlockDisplay(m_xDisp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user