Windows without decorations drawn by the xwayland window manager had
wrong input coordinates because weston_wm_window_get_child_position was
giving wrong x/y offsets. Set the offsets to 0 for windows without
system decorations.
---
 xwayland/window-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 2500853..1663ad0 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -628,7 +628,7 @@ weston_wm_window_get_child_position(struct weston_wm_window 
*window,
 {
        struct theme *t = window->wm->theme;
 
-       if (window->fullscreen) {
+       if (window->fullscreen || (!window->decorate && !window->frame)) {
                *x = 0;
                *y = 0;
        } else if (window->decorate && window->frame) {
-- 
2.7.4

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to