compositor: Mark window drag actor invisible
If the window_drag->handle ClutterActor:visible property is FALSE, then we avoid a full-framebuffer damage on the monitor when beginning and ending a drag. Testing with `mutter --wayland --display-server` still shows a full- framebuffer damage on the first drag, but that appears to be unrelated to this. Subsequent full-framebuffer damage which would occur on drag-begin and drag-end have been elided. Related: #3630 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3975>
This commit is contained in:
parent
757f8b6d69
commit
030270ba3b
1 changed files with 1 additions and 0 deletions
|
@ -1843,6 +1843,7 @@ meta_window_drag_begin (MetaWindowDrag *window_drag,
|
|||
stage = meta_backend_get_stage (backend);
|
||||
|
||||
window_drag->handler = clutter_actor_new ();
|
||||
clutter_actor_hide (window_drag->handler);
|
||||
clutter_actor_set_name (window_drag->handler,
|
||||
"Window drag helper");
|
||||
clutter_actor_set_accessible_name (window_drag->handler,
|
||||
|
|
Loading…
Reference in a new issue