From 85b2e4b6bf9c05f8714135936bd8b21015ec8ee3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 21 Jun 2012 16:49:42 -0400 Subject: [PATCH] shell: Don't focus to background, screensaver or input_panel surfaces --- src/shell.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/shell.c b/src/shell.c index d8a508e..80fdf72 100644 --- a/src/shell.c +++ b/src/shell.c @@ -2488,6 +2488,15 @@ click_to_activate_binding(struct wl_seat *seat, uint32_t time, uint32_t button, if (is_black_surface(focus, &upper)) focus = upper; + switch (get_shell_surface_type(focus)) { + case SHELL_SURFACE_BACKGROUND: + case SHELL_SURFACE_SCREENSAVER: + case SHELL_SURFACE_INPUT_PANEL: + return; + default: + break; + } + if (seat->pointer->grab == &seat->pointer->default_grab) activate(shell, focus, ws); } -- 2.7.4