InternalUtils: Prevent X11 specific calls on wayland (#938)

This commit is contained in:
David Hewitt 2020-10-19 17:28:31 +01:00 committed by GitHub
parent ad2a9daebb
commit c0c8b991ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,10 @@ namespace Gala {
**/
#if HAS_MUTTER330
public static void set_input_area (Display display, InputArea area) {
if (Meta.Util.is_wayland_compositor ()) {
return;
}
X.Xrectangle[] rects = {};
int width, height;
display.get_size (out width, out height);