diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-18 18:56:35 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-18 19:30:19 -0500 |
commit | eefc93db43ab6d5d308970afa43919a68bde2b79 (patch) | |
tree | 48207b80a75d969c8ebfecc8472582c2efd387f7 | |
parent | 253efad43758a10ce26a767d4ad42cc5c32f8d0d (diff) | |
download | sway-eefc93db43ab6d5d308970afa43919a68bde2b79.tar.xz |
Fix lock extension setup in compositor
-rw-r--r-- | sway/extensions.c | 2 | ||||
-rw-r--r-- | swaylock/main.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sway/extensions.c b/sway/extensions.c index 7769f86e..1ca66468 100644 --- a/sway/extensions.c +++ b/sway/extensions.c @@ -162,5 +162,5 @@ void register_extensions(void) { desktop_shell.panel_position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM; desktop_shell.lock_surfaces = create_list(); desktop_shell.is_locked = false; - wl_global_create(wlc_get_wl_display(), &lock_interface, 3, NULL, swaylock_bind); + wl_global_create(wlc_get_wl_display(), &lock_interface, 1, NULL, swaylock_bind); } diff --git a/swaylock/main.c b/swaylock/main.c index fbe2851b..4073da99 100644 --- a/swaylock/main.c +++ b/swaylock/main.c @@ -97,9 +97,9 @@ int main(int argc, char **argv) { surfaces = create_list(); registry = registry_poll(); - /*if (!registry->swaylock) { + if (!registry->swaylock) { sway_abort("swaylock requires the compositor to support the swaylock extension."); - }*/ + } int i; for (i = 0; i < registry->outputs->length; ++i) { @@ -108,7 +108,7 @@ int main(int argc, char **argv) { if (!window) { sway_abort("Failed to create surfaces."); } - //lock_set_lock_surface(registry->swaylock, output->output, window->surface); + lock_set_lock_surface(registry->swaylock, output->output, window->surface); list_add(surfaces, window); } |