shell: Fix bug when input panel is shown twice
authorJan Arne Petersen <jpetersen@openismus.com>
Mon, 11 Feb 2013 14:10:11 +0000 (15:10 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 18 Feb 2013 22:32:55 +0000 (17:32 -0500)
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
src/shell.c

index 5aea485..b3289fb 100644 (file)
@@ -2798,6 +2798,9 @@ show_input_panels(struct wl_listener *listener, void *data)
        struct input_panel_surface *surface, *next;
        struct weston_surface *ws;
 
+       if (shell->showing_input_panels)
+               return;
+
        shell->showing_input_panels = true;
 
        if (!shell->locked)