Open andreesteve opened 2 days ago
Your log doesn't appear to set the position of the third monitor. Sway might think they are placed in the same spot thus rendering the same thing.
Hi,
I probably have a related issue to this. The result is that in my dual monitor (laptop + HDMI) the screens get mixed up, or so it seems:
Image above is showing my HDMI monitor after turned off and on again. I notice now that this issue is in the background, making it a bit confusing. But the waybar is on the bottom of my screen and duplicated on the HDMI from eDP-1.
The log file: sway.log
After reverting to sway 1.9 everything works as expected.
It seems that Sway 1.10
doesn't detect output configurations at startup, however reloading Sway configurations using swaymsg reload
, output configurations will be detected.
Downgrading to Sway 1.9
seems to solve the issue as well.
@kennylevinsen
@andreesteve your issue appears to just be that you're not specifying the position of one output, while you at the same time have an output that is positioned at 0,0. Depending on order, the automatic positioning might use 0,0 first, with the explicit 0,0 output then placed on top. Explicit position of the remaining output should fix that.
@Firwanaa Your config is setting eDP1
, which does not exist and so by accident you hit OPs issue. Try updating your config to set eDP-1
.
Same issue, my multi monitor setup is misbehaving badly with 1.10 update. Downgrading to 1.9 fixes it
@andreesteve your issue appears to just be that you're not specifying the position of one output, while you at the same time have an output that is positioned at 0,0. Depending on order, the automatic positioning might use 0,0 first, with the explicit 0,0 output then placed on top. Explicit position of the remaining output should fix that.
@Firwanaa Your config is setting
eDP1
, which does not exist and so by accident you hit OPs issue. Try updating your config to seteDP-1
.
@kennylevinsen Not sure If you meant to reply to me as I didn't mention my output config, however I actually found a mistake in one of my monitors names 😬, still, having some issues with Sway 1.10, downgrading to Sway 1.9 works just fine.
@kennylevinsen There was an error in my config as well, eDP1 => eDP-1. Issue seems fixed. Thanks!
Not sure If you meant to reply to me
Ah, no, wrong nick.
Same issue, my multi monitor setup is misbehaving badly with 1.10 update. Downgrading to 1.9 fixes it
Everyone here had latent config errors they had not noticed, check yours.
For anything that is not the specific issue OP is having, please open a new, specific issue with config file and debug log. This is not a catch-all issue for 1.10 regressions. Otherwise, #sway@irc.libera.chat
.
For this actual issue, a possible regression:
wlr_output_layout_add
/wlr_output_layout_add_auto
when finalizing config after mdoesetsway_output
x/y/width/height is updated immediately afterNow imagine two outputs, one auto and one fixed at 0,0:
There isn't anything to catch that output 0 needs to have its x/y/w/h moved, leading to a disagreement between the wlr_output_layout
and sway_output
state. We previously had updates littered everywhere, so something probably caught it in the end...
I really don't like that we have two sources of truth here...
Could anyone with the original issue try to reproduce with: https://github.com/swaywm/sway/pull/8431?
If you have already fixed your issue by adjusting your config file, do please test with config file undone to test the original problem.
@kennylevinsen - thank you for the fix. I could test it but I can't build it locally. Is there a way I could download it from the build system? https://builds.sr.ht/~emersion/job/1363306
Also, on 1.1.0 sans patch, explicitly adding the other display to the config solves the initial rendering issue, but I found a couple of other issues, in case it helps: (1) the focus command in the config after start up seems to fail, as the focus is not set to the target output; and (2) setting background color in 1.10 does not work. I always get a black background.
Sway Version: 1.10
Debug Log: debug logs here
Configuration File:
Description:
Problematic example in 1.10
Working example in 1.9