diff options
Diffstat (limited to 'swaylock')
-rw-r--r-- | swaylock/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { | |||
283 | sway_abort("swaylock requires the compositor to support the swaylock extension."); | 283 | sway_abort("swaylock requires the compositor to support the swaylock extension."); |
284 | } | 284 | } |
285 | 285 | ||
286 | if (registry->pointer) { | ||
287 | // We don't want swaylock to have a pointer | ||
288 | wl_pointer_destroy(registry->pointer); | ||
289 | registry->pointer = NULL; | ||
290 | } | ||
291 | |||
286 | int i; | 292 | int i; |
287 | for (i = 0; i < registry->outputs->length; ++i) { | 293 | for (i = 0; i < registry->outputs->length; ++i) { |
288 | struct output_state *output = registry->outputs->items[i]; | 294 | struct output_state *output = registry->outputs->items[i]; |