[PATCH] xwayland: Use frame geometry for resizing shell surface

Ondřej Majerech majerech.o at gmail.com
Wed Aug 20 17:51:55 PDT 2014


We want to set the size of the entire window, not just the input area.
This fixes the bug where resizing an X client under XWayland would make
the window snap to a smaller size, and the pointer would then stay a
distance away from the frame.

Signed-off-by: Ondřej Majerech <majerech.o at gmail.com>
---
 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 f1523f5..36df855 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -1009,7 +1009,7 @@ weston_wm_window_draw_decoration(void *data)
 					  input_x, input_y, input_w, input_h);
 
 		shell_interface->set_window_geometry(window->shsurf,
-						     input_x, input_y, input_w, input_h);
+						     x, y, width, height);
 	}
 }
 
-- 
2.0.4



More information about the wayland-devel mailing list