From: Dana Jansens Date: Sat, 12 Apr 2003 04:17:01 +0000 (+0000) Subject: set the right mask for the client msg! X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=4d510a8a922c90a2076e2a222e499f033e627eb8;p=chaz%2Fopenbox set the right mask for the client msg! --- diff --git a/tests/fullscreen.c b/tests/fullscreen.c index c5f686d9..ea5081a2 100644 --- a/tests/fullscreen.c +++ b/tests/fullscreen.c @@ -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);