X-Git-Url: http://pileus.org/git/?p=wmpus;a=blobdiff_plain;f=sys-x11.c;fp=sys-x11.c;h=2079ca5679c20f520284063601d4455dc7cbc727;hp=95672d0ce587477d80cb78caf4873f5d22a6ea12;hb=2194216d76b82f652610e20c3f795d636be1eb8b;hpb=f60b536a9e1a340028130fda58b3d298ad5abc6d diff --git a/sys-x11.c b/sys-x11.c index 95672d0..2079ca5 100644 --- 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) {