forked from Mirrors/openclonk
X11: Flush requests after event processing
This fixes the "window manager thinks Clonk has hung" problem. http://bugs.openclonk.org/view.php?id=3stable-5.2
parent
1c5bf094cd
commit
442d5b2c58
|
@ -618,14 +618,17 @@ void CStdApp::OnXInput()
|
|||
Priv->tasked_out = true;
|
||||
Priv->pending_desktop = false;
|
||||
}
|
||||
// At least the _NET_WM_PING reply needs to be flushed,
|
||||
// and having received events is a good heuristic for
|
||||
// having issued X11 commands, even if most events
|
||||
// are mouse moves that don't generate X11 commands.
|
||||
XFlush(dpy);
|
||||
}
|
||||
|
||||
void CStdApp::OnStdInInput()
|
||||
{
|
||||
if(!ReadStdInCommand())
|
||||
{
|
||||
// TODO: This should only cause HandleMessage to return
|
||||
// HR_Failure...
|
||||
Quit();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -159,7 +159,6 @@ class CStdAppPrivate {
|
|||
int xrandr_event;
|
||||
bool tasked_out; int wdt; int hgt;
|
||||
bool pending_desktop;
|
||||
static const int PENDING_DESKTOP_DELAY = 3;
|
||||
XIM xim;
|
||||
XIC xic;
|
||||
Bool detectable_autorepeat_supported;
|
||||
|
|
Loading…
Reference in New Issue