all repos — openbox @ 4d510a8a922c90a2076e2a222e499f033e627eb8

openbox fork - make it a bit more like ryudo

set the right mask for the client msg!
Dana Jansens danakj@orodu.net
commit

4d510a8a922c90a2076e2a222e499f033e627eb8

parent

73f85d0a630840ab2aa06f1237ef5802b65b43ec

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M tests/fullscreen.ctests/fullscreen.c

@@ -30,6 +30,7 @@ XMapWindow(display, win);

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 @@ msg.xclient.data.l[2] = 0l;

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 @@ msg.xclient.data.l[2] = 0l;

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);