From 2194216d76b82f652610e20c3f795d636be1eb8b Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Sun, 2 Sep 2012 03:19:43 +0000 Subject: [PATCH] Fix some bugs in shading.. --- sys-x11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.43.2