From eefc93db43ab6d5d308970afa43919a68bde2b79 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 18 Dec 2015 18:56:35 -0500 Subject: Fix lock extension setup in compositor --- swaylock/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'swaylock') 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); } -- cgit v1.2.3