summaryrefslogtreecommitdiff
path: root/wayland/registry.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-12-10 08:04:22 -0500
committerDrew DeVault <[email protected]>2015-12-10 08:05:27 -0500
commit067ac6cfa7089d9a55d7ddfbb3db59bb51aec8b8 (patch)
treec88daedfcda91314afe9cfbb077e37f15547d7b8 /wayland/registry.c
parent080a263785cfa4b7f54b90b1fed7a8356714d5d0 (diff)
Discover swaylock extension in registry
Diffstat (limited to 'wayland/registry.c')
-rw-r--r--wayland/registry.c3
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 @@
#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);
}
}