x11: Do not unminimize windows with initial IconicState
This is a revert of commit be5c2ebc
, adapted to this day and age.
While this worked around issues in wine/proton, it did contravene
icccm in the interpretation of initially iconic windows.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2043
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3001>
This commit is contained in:
parent
b9a6891910
commit
3218626d7e
@ -1528,24 +1528,13 @@ handle_other_xevent (MetaX11Display *x11_display,
|
|||||||
|
|
||||||
window = meta_window_x11_new (display, event->xmaprequest.window,
|
window = meta_window_x11_new (display, event->xmaprequest.window,
|
||||||
FALSE, META_COMP_EFFECT_CREATE);
|
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.
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
else if (frame_was_receiver)
|
else
|
||||||
{
|
{
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Double check that creating the MetaWindow succeeded */
|
|
||||||
if (window == NULL)
|
|
||||||
break;
|
|
||||||
|
|
||||||
meta_verbose ("MapRequest on %s mapped = %d minimized = %d",
|
meta_verbose ("MapRequest on %s mapped = %d minimized = %d",
|
||||||
window->desc, window->mapped, window->minimized);
|
window->desc, window->mapped, window->minimized);
|
||||||
|
|
||||||
if (window->minimized)
|
if (window->minimized && !frame_was_receiver)
|
||||||
{
|
{
|
||||||
meta_window_unminimize (window);
|
meta_window_unminimize (window);
|
||||||
if (window->workspace != workspace_manager->active_workspace)
|
if (window->workspace != workspace_manager->active_workspace)
|
||||||
@ -1556,6 +1545,7 @@ handle_other_xevent (MetaX11Display *x11_display,
|
|||||||
workspace_manager->active_workspace);
|
workspace_manager->active_workspace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ReparentNotify:
|
case ReparentNotify:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user