XFlush(display);
sleep(2);
+ printf("fullscreen\n");
msg.xclient.type = ClientMessage;
msg.xclient.message_type = _net_state;
msg.xclient.display = display;
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;
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);