[PATCH 1/3] shell: Fix bug when input panel is shown twice

Jan Arne Petersen jpetersen at openismus.com
Mon Feb 11 06:10:11 PST 2013


From: Jan Arne Petersen <jpetersen at openismus.com>

Signed-off-by: Jan Arne Petersen <jpetersen at openismus.com>
---
 src/shell.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/shell.c b/src/shell.c
index 6e0db35..8c3a452 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -2772,6 +2772,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)
-- 
1.8.1.2



More information about the wayland-devel mailing list