Remove pointer from swaylock surface

This commit is contained in:
Drew DeVault 2016-01-26 18:38:05 -05:00
parent 76cfde7813
commit e592fe0f8c

6
main.c
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];