summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-01-26 18:38:05 -0500
committerDrew DeVault <sir@cmpwn.com>2016-01-26 18:38:05 -0500
commite592fe0f8cbbdb22f08a8a5435b2cf3a2e0081d6 (patch)
tree3ce8819d0499ae8a338a69c0d98eca148f1d4c8e /main.c
parent76cfde7813229561ed4952f0d4170962e378cd72 (diff)
Remove pointer from swaylock surface
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
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];