XFree86: DGA: Don't call ProcessInputEvents from CloseScreen
By the time CloseScreen gets called, we can't call ProcessInputEvents, as the event queue will get unhappy. So just unregister our hooks instantly, and hope that they don't get called.
This commit is contained in:
parent
0910540e43
commit
33a5d9605e
|
@ -249,14 +249,11 @@ DGACloseScreen(int i, ScreenPtr pScreen)
|
||||||
DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen);
|
DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen);
|
||||||
|
|
||||||
if (XDGAEventBase) {
|
if (XDGAEventBase) {
|
||||||
OsBlockSignals();
|
|
||||||
ProcessInputEvents();
|
|
||||||
mieqSetHandler(*XDGAEventBase + MotionNotify, NULL);
|
mieqSetHandler(*XDGAEventBase + MotionNotify, NULL);
|
||||||
mieqSetHandler(*XDGAEventBase + ButtonPress, NULL);
|
mieqSetHandler(*XDGAEventBase + ButtonPress, NULL);
|
||||||
mieqSetHandler(*XDGAEventBase + ButtonRelease, NULL);
|
mieqSetHandler(*XDGAEventBase + ButtonRelease, NULL);
|
||||||
mieqSetHandler(*XDGAEventBase + KeyPress, NULL);
|
mieqSetHandler(*XDGAEventBase + KeyPress, NULL);
|
||||||
mieqSetHandler(*XDGAEventBase + KeyRelease, NULL);
|
mieqSetHandler(*XDGAEventBase + KeyRelease, NULL);
|
||||||
OsReleaseSignals();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FreeMarkedVisuals(pScreen);
|
FreeMarkedVisuals(pScreen);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user