X-Git-Url: http://pileus.org/git/?p=wmpus;a=blobdiff_plain;f=sys-x11.c;fp=sys-x11.c;h=c4a08ffc554254a3384658ad0c8eab1af2e9fbeb;hp=2079ca5679c20f520284063601d4455dc7cbc727;hb=725276e644d0b8e9024fc8af134d8e85acffa52a;hpb=5cbe4e8f82762838b90d73ffbf43105585b710ea diff --git a/sys-x11.c b/sys-x11.c index 2079ca5..c4a08ff 100644 --- a/sys-x11.c +++ b/sys-x11.c @@ -325,7 +325,7 @@ static int win_msg(win_t *win, atom_t msg) return 0; XSendEvent(win->sys->dpy, win->sys->xid, False, NoEventMask, &(XEvent){ - .type = ClientMessage, + .xclient.type = ClientMessage, .xclient.window = win->sys->xid, .xclient.message_type = atoms[WM_PROTO], .xclient.format = 32, @@ -554,7 +554,7 @@ void sys_focus(win_t *win) /* Set actual focus */ XSetInputFocus(win->sys->dpy, win->sys->xid, RevertToPointerRoot, CurrentTime); - win_msg(win, WM_FOCUS); + //win_msg(win, WM_FOCUS); /* Set border on focused window */ static win_t *last = NULL; @@ -629,7 +629,6 @@ void sys_show(win_t *win, state_t state) XSetErrorHandler(xerror); XUngrabServer(win->sys->dpy); } - XDestroyWindow(win->sys->dpy, win->sys->xid); break; } win->state = state;