Skip to content

Commit 401dd10

Browse files
authored
ShellWindow: Disable unredirection when visible (#2459)
1 parent c347748 commit 401dd10

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/ShellClients/ShellWindow.vala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,20 @@ public class Gala.ShellWindow : PositionedWindow, GestureTarget {
9393

9494
window_actor.visible = animating || visible;
9595

96+
if (window_actor.visible) {
97+
#if HAS_MUTTER48
98+
window.display.get_compositor ().disable_unredirect ();
99+
#else
100+
window.display.disable_unredirect ();
101+
#endif
102+
} else {
103+
#if HAS_MUTTER48
104+
window.display.get_compositor ().enable_unredirect ();
105+
#else
106+
window.display.enable_unredirect ();
107+
#endif
108+
}
109+
96110
if (!Meta.Util.is_wayland_compositor ()) {
97111
if (window_actor.visible) {
98112
Utils.x11_unset_window_pass_through (window, restore_previous_x11_region);

0 commit comments

Comments
 (0)