swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 94322e53bbd2f827f5c3733812381ef698e0aeac
parent ca7a99c822069dd48fc8eef20073df04e4165eb3
Author: Michael Forney <mforney@mforney.org>
Date:   Thu, 29 Dec 2016 20:24:49 -0800

pointer: Unset cursor view when changing surface

Diffstat:
Mlibswc/pointer.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libswc/pointer.c b/libswc/pointer.c @@ -290,8 +290,10 @@ set_cursor(struct wl_client *client, struct wl_resource *resource, if (!pointer->focus.resource || client != wl_resource_get_client(pointer->focus.resource)) return; - if (pointer->cursor.surface) + if (pointer->cursor.surface) { + surface_set_view(pointer->cursor.surface, NULL); wl_list_remove(&pointer->cursor.destroy_listener.link); + } surface = surface_resource ? wl_resource_get_user_data(surface_resource) : NULL; pointer->cursor.surface = surface;