Commit f2d7165a authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Florian Müllner

window: Don't try to move hidden attached windows

When a parent window is moved, attached windows (attached modal dialogs
or popups) is moved with it. This is problematic when such a window
hasn't been shown yet (e.g. a popup that has been configured but not
shown), as it'll mean we try to constrain an empty window. Avoid this
issue by not trying to auto-move empty windows.

!496
parent 1bd3c13f
......@@ -3781,6 +3781,9 @@ static gboolean
maybe_move_attached_window (MetaWindow *window,
void *data)
{
if (window->hidden)
return FALSE;
if (meta_window_is_attached_dialog (window) ||
meta_window_get_placement_rule (window))
meta_window_reposition (window);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment