xwm: Do not activate override redirect windows
authorBoyan Ding <stu_dby@126.com>
Sat, 30 Aug 2014 02:33:23 +0000 (10:33 +0800)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 4 Sep 2014 12:16:04 +0000 (15:16 +0300)
We shouldn't do WM-y things on an O-R window, including setting input
focus to it.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=81273
Signed-off-by: Boyan Ding <stu_dby@126.com>
Tested-by: Ryo Munakata <ryomnktml@gmail.com>
Acked-by: Christopher Michael <cp.michael@samsung.com>
xwayland/window-manager.c

index f633324..4e91f9d 100644 (file)
@@ -701,6 +701,9 @@ weston_wm_window_activate(struct wl_listener *listener, void *data)
        }
 
        if (window) {
+               if (window->override_redirect)
+                       return;
+
                client_message.response_type = XCB_CLIENT_MESSAGE;
                client_message.format = 32;
                client_message.window = window->id;