diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-10 08:04:22 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-10 08:05:27 -0500 |
commit | 067ac6cfa7089d9a55d7ddfbb3db59bb51aec8b8 (patch) | |
tree | c88daedfcda91314afe9cfbb077e37f15547d7b8 /wayland | |
parent | Refactor gdk pixbuf code into shared client lib (diff) | |
download | sway-067ac6cfa7089d9a55d7ddfbb3db59bb51aec8b8.tar.gz sway-067ac6cfa7089d9a55d7ddfbb3db59bb51aec8b8.tar.zst sway-067ac6cfa7089d9a55d7ddfbb3db59bb51aec8b8.zip |
Discover swaylock extension in registry
Diffstat (limited to 'wayland')
-rw-r--r-- | wayland/registry.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wayland/registry.c b/wayland/registry.c index 3c869d25..11e6e51d 100644 --- a/wayland/registry.c +++ b/wayland/registry.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <stdlib.h> | 2 | #include <stdlib.h> |
3 | #include <string.h> | 3 | #include <string.h> |
4 | #include "wayland-desktop-shell-client-protocol.h" | 4 | #include "wayland-desktop-shell-client-protocol.h" |
5 | #include "wayland-swaylock-client-protocol.h" | ||
5 | #include "client/registry.h" | 6 | #include "client/registry.h" |
6 | #include "stringop.h" | 7 | #include "stringop.h" |
7 | #include "log.h" | 8 | #include "log.h" |
@@ -58,6 +59,8 @@ static void registry_global(void *data, struct wl_registry *registry, | |||
58 | list_add(reg->outputs, ostate); | 59 | list_add(reg->outputs, ostate); |
59 | } else if (strcmp(interface, desktop_shell_interface.name) == 0) { | 60 | } else if (strcmp(interface, desktop_shell_interface.name) == 0) { |
60 | reg->desktop_shell = wl_registry_bind(registry, name, &desktop_shell_interface, version); | 61 | reg->desktop_shell = wl_registry_bind(registry, name, &desktop_shell_interface, version); |
62 | } else if (strcmp(interface, lock_interface.name) == 0) { | ||
63 | reg->swaylock = wl_registry_bind(registry, name, &lock_interface, version); | ||
61 | } | 64 | } |
62 | } | 65 | } |
63 | 66 | ||