mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
window-actor: Force full actor geometry sync when mapping
Normally we bail out in `sync_actor_geometry()`. The comment there states: ``` Normally we want freezing a window to also freeze its position; this allows windows to atomically move and resize together, either under app control, or because the user is resizing from the left/top. But on initial placement we need to assign a position, since immediately after the window is shown, the map effect will go into effect and prevent further geometry updates. ``` The signal for the initial sync originates in `MetaWindow` though and predates `xdg_toplevel_set_maximized`, which again calls `meta_window_force_placement`, triggering the signal too early. As a result, Wayland clients that start up maximized have a wrong map animation, starting in the top-left corner. In order to fix this without changing big parts of the geometry logic and risking regressions, force the initial sync again before mapping. Solution suggested by Jonas Ådahl. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1164
This commit is contained in:
parent
dbe919ef92
commit
09a6031c69
@ -856,6 +856,9 @@ meta_window_actor_show (MetaWindowActor *self,
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
if (event == META_PLUGIN_MAP)
|
||||
meta_window_actor_sync_actor_geometry (self, TRUE);
|
||||
|
||||
if (meta_compositor_is_switching_workspace (compositor) ||
|
||||
!start_simple_effect (self, event))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user