diff options
author | Rob Bradford <rob@linux.intel.com> | 2013-04-03 15:21:55 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-04-03 12:05:57 -0400 |
commit | 91ae483ab9159b5a56a34853a6b06438d3e46479 (patch) | |
tree | f545b8f034efec10bb76c6f126b4952556333e56 | |
parent | 319b91b97a2d5db40eb182554e343d120d2d0d40 (diff) |
compositor: Use wl_pointer_set_current to cleanup after surface destruction
This API call handles setting the current surface on the wl_pointer and also
maintaining a destroy notification to monitor that surface for destruction.
This is part of the fix for: https://bugzilla.gnome.org/show_bug.cgi?id=696946
-rw-r--r-- | src/compositor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c index a3d1ede8..e7c22db4 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -942,7 +942,7 @@ weston_device_repick(struct weston_seat *seat) if (&surface->surface != pointer->current) { interface = pointer->grab->interface; - pointer->current = &surface->surface; + wl_pointer_set_current(pointer, &surface->surface); interface->focus(pointer->grab, &surface->surface, pointer->current_x, pointer->current_y); |