From e592fe0f8cbbdb22f08a8a5435b2cf3a2e0081d6 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 26 Jan 2016 18:38:05 -0500 Subject: [PATCH] Remove pointer from swaylock surface --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.c b/main.c index f0fe1d0..020ff03 100644 --- a/main.c +++ b/main.c @@ -283,6 +283,12 @@ int main(int argc, char **argv) { sway_abort("swaylock requires the compositor to support the swaylock extension."); } + if (registry->pointer) { + // We don't want swaylock to have a pointer + wl_pointer_destroy(registry->pointer); + registry->pointer = NULL; + } + int i; for (i = 0; i < registry->outputs->length; ++i) { struct output_state *output = registry->outputs->items[i];