diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-01-26 18:38:05 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-01-26 18:38:05 -0500 |
commit | baa958eaf2a727c1f8e72aa2606b4b975087939f (patch) | |
tree | c0aa02c0c2fecd8808c8f3577b21c5422419cbcc /swaylock | |
parent | f1f4791a3b2da30175b518b531927955283d47c1 (diff) |
Remove pointer from swaylock surface
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) { 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]; |