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 | e592fe0f8cbbdb22f08a8a5435b2cf3a2e0081d6 (patch) | |
| tree | 3ce8819d0499ae8a338a69c0d98eca148f1d4c8e | |
| parent | 76cfde7813229561ed4952f0d4170962e378cd72 (diff) | |
Remove pointer from swaylock surface
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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]; |
