aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2024-01-20 10:57:01 +0100
committerLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2024-01-20 14:42:58 -0500
commit08a06a7b6bbb324e9fc6e49e96379340404135b4 (patch)
tree6f08f51db18844703360ac571ad3c11e618dce58 /sway/main.c
parentClarify gdk-pixbuf dependency purpose (diff)
downloadsway-08a06a7b6bbb324e9fc6e49e96379340404135b4.tar.gz
sway-08a06a7b6bbb324e9fc6e49e96379340404135b4.tar.zst
sway-08a06a7b6bbb324e9fc6e49e96379340404135b4.zip
Add debug flag to re-enable wl_drm
7e69a7076fc8 ("Drop wl_drm") has dropped wl_drm, however a lot of software wasn't quite ready for this (Xwayland, libva, amdvlk). Keep wl_drm disabled by default to pressure the wl_drm phase-out, but add a -Dlegacy-wl-drm flag for users to restore the previous behavior in the meantime. References: https://github.com/swaywm/sway/issues/7897
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 21f19fc4..73254dc2 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -162,6 +162,8 @@ void enable_debug_flag(const char *flag) {
162 debug.txn_timings = true; 162 debug.txn_timings = true;
163 } else if (strncmp(flag, "txn-timeout=", 12) == 0) { 163 } else if (strncmp(flag, "txn-timeout=", 12) == 0) {
164 server.txn_timeout_ms = atoi(&flag[12]); 164 server.txn_timeout_ms = atoi(&flag[12]);
165 } else if (strcmp(flag, "legacy-wl-drm") == 0) {
166 debug.legacy_wl_drm = true;
165 } else { 167 } else {
166 sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag); 168 sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag);
167 } 169 }