1
Window / Re: Fullscreen window but getSize() incorrect (ubuntu)
« on: December 11, 2015, 08:09:37 am »
Actually, I figured out why I'm still switchnig to fullscreen without this call.
In popEvents(), there is an event of type ReparentNotify filtered (not forwarded to my application)
And here is the second call to switchToFullscreen.
Edit: By completly ignoring this ReparentNotify event, getSize() is also correct 800x600 until the resize event.
I guess these two switchToFullscreen() call are concurrent and something is going wrong.
In popEvents(), there is an event of type ReparentNotify filtered (not forwarded to my application)
// Parent window changed
case ReparentNotify:
{
// Catch reparent events to properly apply fullscreen on
// some "strange" window managers (like Awesome) which
// seem to make use of temporary parents during mapping
if (m_fullscreen)
switchToFullscreen();
XSync(m_display, True); // Discard remaining events
break;
}
case ReparentNotify:
{
// Catch reparent events to properly apply fullscreen on
// some "strange" window managers (like Awesome) which
// seem to make use of temporary parents during mapping
if (m_fullscreen)
switchToFullscreen();
XSync(m_display, True); // Discard remaining events
break;
}
And here is the second call to switchToFullscreen.
Edit: By completly ignoring this ReparentNotify event, getSize() is also correct 800x600 until the resize event.
I guess these two switchToFullscreen() call are concurrent and something is going wrong.