Fix some bugs in shading..
authorAndy Spencer <andy753421@gmail.com>
Sun, 2 Sep 2012 03:19:43 +0000 (03:19 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 2 Sep 2012 03:19:43 +0000 (03:19 +0000)
sys-x11.c

index 95672d0ce587477d80cb78caf4873f5d22a6ea12..2079ca5679c20f520284063601d4455dc7cbc727 100644 (file)
--- a/sys-x11.c
+++ b/sys-x11.c
@@ -463,8 +463,10 @@ static void process_event(int type, XEvent *xe, win_t *root)
                printf("map_req: %lx\n", xe->xmaprequest.window);
                win = win_find(dpy,xe->xmaprequest.window,1);
                // fixme, for hide -> max, etc
-               if (win->state == ST_HIDE)
+               if (win->state == ST_HIDE) {
+                       wm_handle_state(win, win->state, ST_SHOW);
                        win->state = ST_SHOW;
+               }
                sys_show(win, win->state);
        }
        else if (type == ClientMessage) {