x11: Unminimize windows with initial IconicState if first known on MapRequest

In that case, the MetaWindow is created, but it should also be unminimized
to satisfy the MapRequest triggered by the client, otherwise these would
stay minimized until they're shown explicitly by the user.

https://bugzilla.gnome.org/show_bug.cgi?id=774333
This commit is contained in:
Carlos Garnacho 2014-09-18 12:03:53 +02:00
parent ae73e9d84d
commit be5c2ebcb5

View File

@ -1370,12 +1370,24 @@ handle_other_xevent (MetaDisplay *display,
{
window = meta_window_x11_new (display, event->xmaprequest.window,
FALSE, META_COMP_EFFECT_CREATE);
/* The window might have initial iconic state, but this is a
* MapRequest, fall through to ensure it is unminimized in
* that case.
*/
}
/* if frame was receiver it's some malicious send event or something */
else if (!frame_was_receiver && window)
else if (frame_was_receiver)
{
meta_warning ("Map requests on the frame window are unexpected\n");
break;
}
/* Double check that creating the MetaWindow succeeded */
if (window == NULL)
break;
meta_verbose ("MapRequest on %s mapped = %d minimized = %d\n",
window->desc, window->mapped, window->minimized);
if (window->minimized)
{
meta_window_unminimize (window);
@ -1387,7 +1399,6 @@ handle_other_xevent (MetaDisplay *display,
window->screen->active_workspace);
}
}
}
break;
case ReparentNotify:
{