Remove pointer from swaylock surface
This commit is contained in:
parent
76cfde7813
commit
e592fe0f8c
6
main.c
6
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];
|
||||
|
Loading…
Reference in New Issue
Block a user