From 4e584c2cf00b97a2c9da8786c9211ed0563d3586 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sun, 27 Apr 2014 20:22:47 +0200 Subject: [PATCH] display: Don't call x11 backend code when running native https://bugzilla.gnome.org/show_bug.cgi?id=729044 --- src/core/display.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/core/display.c b/src/core/display.c index d087940e0..718540b6d 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -2128,6 +2128,12 @@ void meta_display_grab_focus_window_button (MetaDisplay *display, MetaWindow *window) { + MetaBackend *backend = meta_get_backend (); + + /* Do nothing under non-X11 backends */ + if (!META_IS_BACKEND_X11 (backend)) + return; + /* Grab button 1 for activating unfocused windows */ meta_verbose ("Grabbing unfocused window buttons for %s\n", window->desc); @@ -2177,6 +2183,12 @@ void meta_display_ungrab_focus_window_button (MetaDisplay *display, MetaWindow *window) { + MetaBackend *backend = meta_get_backend (); + + /* Do nothing under non-X11 backends */ + if (!META_IS_BACKEND_X11 (backend)) + return; + meta_verbose ("Ungrabbing unfocused window buttons for %s\n", window->desc); if (!window->have_focus_click_grab)