summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-11-21 11:01:25 +0000
committerPhil Jones <philj56@gmail.com>2022-11-21 11:01:25 +0000
commit9d8ba7e9ec9bfd7489b1ef31d3db174ed625b9f6 (patch)
treee2e28eb5435dbb03ca85e7dff67e16923ea1093f /src/main.c
parent8ff917954773b293276c2eda31959acbecdc2421 (diff)
Reduce maximum wlr_layer_shell version to 3.
This change avoids warning about old compositors on newer versions of Sway. Sway never actually supported version 4, and recently changed to report only version 3 as supported.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0c79ef2..1feefda 100644
--- a/src/main.c
+++ b/src/main.c
@@ -647,11 +647,11 @@ static void registry_global(
3);
log_debug("Bound to data device manager %u.\n", name);
} else if (!strcmp(interface, zwlr_layer_shell_v1_interface.name)) {
- if (version < 4) {
+ if (version < 3) {
log_warning("Using an outdated compositor, "
"screen anchoring may not work.\n");
} else {
- version = 4;
+ version = 3;
}
tofi->zwlr_layer_shell = wl_registry_bind(
wl_registry,