Remove pointer from swaylock surface

This commit is contained in:
Drew DeVault 2016-01-26 18:38:05 -05:00
parent f1f4791a3b
commit baa958eaf2
2 changed files with 20 additions and 10 deletions

View file

@ -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];