aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-07-31 10:04:52 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2023-07-31 16:25:01 +0200
commitd557b6876b53763d2e9e97c05ec4754f4e9aa984 (patch)
tree8f3fb982c6e64a88dbb9d4713ba6f269d2cd8b05
parentswaynag: Implement wp_cursor_shape_v1 (diff)
downloadsway-d557b6876b53763d2e9e97c05ec4754f4e9aa984.tar.gz
sway-d557b6876b53763d2e9e97c05ec4754f4e9aa984.tar.zst
sway-d557b6876b53763d2e9e97c05ec4754f4e9aa984.zip
desktop/output: drop logic to handle backend-applied mode
The wlroots backends no longer magically apply output modes behind the compositor's back.
-rw-r--r--sway/desktop/output.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index f6ff90ef..b5993d23 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -927,19 +927,6 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
927} 927}
928 928
929static void handle_mode(struct sway_output *output) { 929static void handle_mode(struct sway_output *output) {
930 if (!output->enabled && !output->enabling) {
931 struct output_config *oc = find_output_config(output);
932 if (output->wlr_output->current_mode != NULL &&
933 (!oc || oc->enabled)) {
934 // We want to enable this output, but it didn't work last time,
935 // possibly because we hadn't enough CRTCs. Try again now that the
936 // output has a mode.
937 sway_log(SWAY_DEBUG, "Output %s has gained a CRTC, "
938 "trying to enable it", output->wlr_output->name);
939 apply_output_config(oc, output);
940 }
941 return;
942 }
943 if (!output->enabled) { 930 if (!output->enabled) {
944 return; 931 return;
945 } 932 }