mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 08:18:13 +02:00
dix: fix Ungrab action #55785
UngrabAllDevices(Bool kill_client): If we are not going to kill the client (kill_clients false), we need to deactivate grabs of active clients, too. (If we are going to kill the client, no need to deactivate the grab, as this will be done as part of the client kill.) Fixes: X.Org Bug 55785 <http://bugs.freedesktop.org/show_bug.cgi?id=55785> Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3b67cd2614
commit
c0a752d286
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ UngrabAllDevices(Bool kill_client)
|
|||
continue;
|
||||
PrintDeviceGrabInfo(dev);
|
||||
client = clients[CLIENT_ID(dev->deviceGrab.grab->resource)];
|
||||
if (!client || client->clientGone)
|
||||
if (!kill_client || !client || client->clientGone)
|
||||
dev->deviceGrab.DeactivateGrab(dev);
|
||||
if (kill_client)
|
||||
CloseDownClient(client);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue