summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-04-21 14:14:20 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-04-21 23:21:08 -0400
commitb10f1e3ab0be973de4a31b22e9b2f2322b0b4a6a (patch)
tree83b2164331b223bdaf265c47dac24a0dfe106d59 /src
parenta4e8b3370497ba93f469fdf28171e06c0a6f9cba (diff)
compositor: Set pointer surface input region to empty on attach
We set up an emtpy region for the initial NULL-cursor, and then going from no buffer to a 32x32 buffer didn't trigger the undeffing of the input region. So when something sets a cursor of a different size, the cursor surface input region gets initialized and starts swallowing events.
Diffstat (limited to 'src')
-rw-r--r--src/compositor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c
index 2b46fbc..768477d 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1959,6 +1959,7 @@ input_device_attach(struct wl_client *client,
buffer = buffer_resource->data;
weston_surface_attach(&device->sprite->surface, buffer);
+ empty_region(&device->sprite->input);
if (!buffer)
return;