summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-17 15:45:31 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-17 15:45:31 -0400
commit693d832a3d05764bad20f796000f07ae8e4c5fc2 (patch)
tree7d90fe11e9933632e67ac63ed116eac1ca2e3f30
parent1df17af2c0e9a6b2352b81433c2152b687b6d66d (diff)
xserver: Set input region for xwm surfacesHEADmaster
-rw-r--r--src/xserver-launcher.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c
index 7380d9c..de90a46 100644
--- a/src/xserver-launcher.c
+++ b/src/xserver-launcher.c
@@ -877,6 +877,12 @@ weston_wm_window_draw_decoration(void *data)
window->surface->opaque_rect[3] =
(double) (t->margin + t->titlebar_height +
window->height + 1) / height;
+
+ pixman_region32_init_rect(&window->surface->input,
+ t->margin, t->margin,
+ t->width * 2 + window->width,
+ t->titlebar_height +
+ t->width + window->height);
}
}