[PATCH weston 1/1] xwayland - input size calculation correction
Ian Ray
ian.ray at ge.com
Wed Dec 20 10:09:35 UTC 2017
From: Nandor Han <nandor.han at ge.com>
The input area for an undecorated non-fullscreen window is based on the
window size itself.
Fixes a case where mouse events in the `invisible' window margin failed
to reach the window behind.
Signed-off-by: Nandor Han <nandor.han at ge.com>
Signed-off-by: Ian Ray <ian.ray at ge.com>
---
xwayland/window-manager.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index a6b6a39..396d8ce 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -1231,6 +1231,11 @@ weston_wm_window_set_pending_state(struct weston_wm_window *window)
if (window->decorate && !window->fullscreen) {
frame_input_rect(window->frame, &input_x, &input_y,
&input_w, &input_h);
+ } else if (!window->decorate && !window->fullscreen) {
+ input_x = x;
+ input_y = y;
+ input_w = window->width;
+ input_h = window->height;
} else {
input_x = x;
input_y = y;
--
2.10.1
More information about the wayland-devel
mailing list