From baa958eaf2a727c1f8e72aa2606b4b975087939f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 26 Jan 2016 18:38:05 -0500 Subject: Remove pointer from swaylock surface --- swaylock/main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'swaylock') diff --git a/swaylock/main.c b/swaylock/main.c index f0fe1d00..020ff036 100644 --- a/swaylock/main.c +++ b/swaylock/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]; -- cgit v1.2.3-70-g09d2