mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Remove pointer from swaylock surface
This commit is contained in:
parent
f1f4791a3b
commit
baa958eaf2
2 changed files with 20 additions and 10 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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue