Port (un)grabXServer to xcb
This commit is contained in:
parent
7e9d7f3959
commit
a51ba112fd
1 changed files with 3 additions and 3 deletions
|
@ -216,15 +216,15 @@ static int server_grab_count = 0;
|
|||
void grabXServer()
|
||||
{
|
||||
if (++server_grab_count == 1)
|
||||
XGrabServer(display());
|
||||
xcb_grab_server(connection());
|
||||
}
|
||||
|
||||
void ungrabXServer()
|
||||
{
|
||||
assert(server_grab_count > 0);
|
||||
if (--server_grab_count == 0) {
|
||||
XUngrabServer(display());
|
||||
XFlush(display());
|
||||
xcb_ungrab_server(connection());
|
||||
xcb_flush(connection());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue