shell: Do not set XFixes input region on wayland compositors
This is just needed on the X11 compositor, wayland compositors are known for handling their own input. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/378
This commit is contained in:
parent
5a9d094f3e
commit
771b1a0788
@ -1072,8 +1072,7 @@ var LayoutManager = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Meta.is_wayland_compositor())
|
global.set_stage_input_region(rects);
|
||||||
global.set_stage_input_region(rects);
|
|
||||||
this._isPopupWindowVisible = isPopupMenuVisible;
|
this._isPopupWindowVisible = isPopupMenuVisible;
|
||||||
|
|
||||||
let workspaceManager = global.workspace_manager;
|
let workspaceManager = global.workspace_manager;
|
||||||
|
@ -642,6 +642,9 @@ shell_global_set_stage_input_region (ShellGlobal *global,
|
|||||||
|
|
||||||
g_return_if_fail (SHELL_IS_GLOBAL (global));
|
g_return_if_fail (SHELL_IS_GLOBAL (global));
|
||||||
|
|
||||||
|
if (meta_is_wayland_compositor ())
|
||||||
|
return;
|
||||||
|
|
||||||
nrects = g_slist_length (rectangles);
|
nrects = g_slist_length (rectangles);
|
||||||
rects = g_new (XRectangle, nrects);
|
rects = g_new (XRectangle, nrects);
|
||||||
for (r = rectangles, i = 0; r; r = r->next, i++)
|
for (r = rectangles, i = 0; r; r = r->next, i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user