mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Discover swaylock extension in registry
This commit is contained in:
parent
080a263785
commit
067ac6cfa7
4 changed files with 34 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "wayland-desktop-shell-client-protocol.h"
|
||||
#include "wayland-swaylock-client-protocol.h"
|
||||
#include "client/registry.h"
|
||||
#include "stringop.h"
|
||||
#include "log.h"
|
||||
|
|
@ -58,6 +59,8 @@ static void registry_global(void *data, struct wl_registry *registry,
|
|||
list_add(reg->outputs, ostate);
|
||||
} else if (strcmp(interface, desktop_shell_interface.name) == 0) {
|
||||
reg->desktop_shell = wl_registry_bind(registry, name, &desktop_shell_interface, version);
|
||||
} else if (strcmp(interface, lock_interface.name) == 0) {
|
||||
reg->swaylock = wl_registry_bind(registry, name, &lock_interface, version);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue