diff options
author | Phil Jones <philj56@gmail.com> | 2022-11-21 11:01:25 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-11-21 11:01:25 +0000 |
commit | 9d8ba7e9ec9bfd7489b1ef31d3db174ed625b9f6 (patch) | |
tree | e2e28eb5435dbb03ca85e7dff67e16923ea1093f /src/main.c | |
parent | 8ff917954773b293276c2eda31959acbecdc2421 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |