]> Dogcows Code - chaz/openbox/commitdiff
set the right mask for the client msg!
authorDana Jansens <danakj@orodu.net>
Sat, 12 Apr 2003 04:17:01 +0000 (04:17 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 12 Apr 2003 04:17:01 +0000 (04:17 +0000)
tests/fullscreen.c

index c5f686d9cb892f33c1b86ce6465df9de6a09830c..ea5081a270d838a2628f229145880962b6255391 100644 (file)
@@ -30,6 +30,7 @@ int main () {
   XFlush(display);
   sleep(2);
 
+  printf("fullscreen\n");
   msg.xclient.type = ClientMessage;
   msg.xclient.message_type = _net_state;
   msg.xclient.display = display;
@@ -41,10 +42,11 @@ int main () {
   msg.xclient.data.l[3] = 0l;
   msg.xclient.data.l[4] = 0l;
   XSendEvent(display, RootWindow(display, 0), False,
-            StructureNotifyMask | SubstructureNotifyMask, &msg);
+            SubstructureNotifyMask | SubstructureRedirectMask, &msg);
   XFlush(display);
   sleep(2);
 
+  printf("restore\n");
   msg.xclient.type = ClientMessage;
   msg.xclient.message_type = _net_state;
   msg.xclient.display = display;
@@ -56,7 +58,7 @@ int main () {
   msg.xclient.data.l[3] = 0l;
   msg.xclient.data.l[4] = 0l;
   XSendEvent(display, RootWindow(display, 0), False,
-            StructureNotifyMask | SubstructureNotifyMask, &msg);
+            SubstructureNotifyMask | SubstructureRedirectMask, &msg);
 
   XSelectInput(display, win, ExposureMask | StructureNotifyMask);
 
This page took 0.023065 seconds and 4 git commands to generate.