JWM Source Documentation
grab.c
Go to the documentation of this file.
1 
10 #include "jwm.h"
11 #include "main.h"
12 
13 static unsigned int grabCount = 0;
14 
16 void GrabServer(void)
17 {
18  if(grabCount == 0) {
20  JXSync(display, False);
21  }
22  grabCount += 1;
23 }
24 
26 void UngrabServer(void)
27 {
28  Assert(grabCount > 0);
29  grabCount -= 1;
30  if(grabCount == 0) {
32  }
33 }
34 

joewing.net / Projects / JWM