From: Kristian Høgsberg Date: Thu, 21 Jun 2012 20:49:42 +0000 (-0400) Subject: shell: Don't focus to background, screensaver or input_panel surfaces X-Git-Tag: 0.94.90~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85b2e4b6bf9c05f8714135936bd8b21015ec8ee3;p=profile%2Fivi%2Fweston.git shell: Don't focus to background, screensaver or input_panel surfaces --- 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); }