[PATCH 1/3] xwayland: Fix input coordinates of non-decorated windows
Scott Moreau
oreaus at gmail.com
Sat Jun 24 07:18:55 UTC 2017
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
More information about the wayland-devel
mailing list