]> Pileus Git - wmpus/blobdiff - sys-x11.c
Reset focus after focus change event
[wmpus] / sys-x11.c
index fd26bf64aed8be4b46ecc1af56498194646395aa..e60b97c7e94f4f47e1ef2a5e8f9751d74b9075ce 100644 (file)
--- a/sys-x11.c
+++ b/sys-x11.c
@@ -230,10 +230,10 @@ static void process_event(int type, XEvent *ev, win_t *root)
                        wm_handle_key(win, key, MOD(), PTR());
        }
        else if (type == ConfigureNotify) {
-               //printf("configure: %d\n", type);
+               printf("configure: %d\n", type);
        }
        else if (type == MapNotify) {
-               //printf("map: %d\n", type);
+               printf("map: %d\n", type);
        }
        else if (type == UnmapNotify) {
                //printf("unmap: %d\n", type);
@@ -288,7 +288,7 @@ void sys_move(win_t *win, int x, int y, int w, int h)
        win->x = MAX(x,0); win->y = MAX(y,0);
        win->w = MAX(w,1); win->h = MAX(h,1);
        XMoveResizeWindow(win->sys->dpy, win->sys->xid,
-                       win->x, win->y, win->w, win-h);
+                       win->x, win->y, win->w, win->h);
 
        /* Flush events, so moving window doesn't cuase re-focus
         * There's probably a better way to do this */