aboutsummaryrefslogtreecommitdiff
path: root/sway/config/output.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-07-31 10:19:52 +0200
committerSimon Ser <contact@emersion.fr>2023-07-31 16:25:01 +0200
commitf8ddd97e0e5a72392e3dda34d03ef11c036d0234 (patch)
treee99f06abd9454c32948db11513ef31dad72d05c2 /sway/config/output.c
parent170598d71b59b6cae767e20679369ac3250ef2e9 (diff)
output: drop current_mode
This is now unused.
Diffstat (limited to 'sway/config/output.c')
-rw-r--r--sway/config/output.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 6fb29ded..0985b0e8 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -510,10 +510,6 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
struct wlr_output_state pending = {0};
queue_output_config(oc, output, &pending);
- if (!oc || oc->power != 0) {
- output->current_mode = pending.mode;
- }
-
sway_log(SWAY_DEBUG, "Committing output %s", wlr_output->name);
if (!wlr_output_commit_state(wlr_output, &pending)) {
// Failed to commit output changes, maybe the output is missing a CRTC.