swc

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

commit 7c9f1276daeefa0b95bf3eb63515051d1bcf65bd
parent e5fd71a471f71a3e7b76d111117c628bd9951fd6
Author: Michael Forney <mforney@mforney.org>
Date:   Sun, 17 May 2015 19:19:11 +0000

pointer: Only allow client with focus to change cursor

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

diff --git a/libswc/pointer.c b/libswc/pointer.c @@ -294,6 +294,9 @@ static void set_cursor(struct wl_client * client, struct pointer * pointer = wl_resource_get_user_data(resource); struct surface * surface; + if (!pointer->focus.resource || client != wl_resource_get_client(pointer->focus.resource)) + return; + if (pointer->cursor.surface) wl_list_remove(&pointer->cursor.destroy_listener.link);