WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.17k stars 48 forks source link

On vertical monitors, the upper left corner of windows with a border are rounded below the border #320

Open winteriscariot opened 1 month ago

winteriscariot commented 1 month ago

This is a weird quirk. My current setup is 3 monitors: 1x1440p monitor landscape in the center, flanked by 2x1080p panels in portrait.

When I move a floating window with a normal border (ie, titlebar) from my main panel onto one of the side panels, the upper left corner of the window -- the actual application content, not the titlebar -- is rounded below the titlebar. It is only the upper left corner.

This appears to be a result of the transform 90 i have in my kanshi config, as this DOES NOT OCCUR when the monitors are not transformed and are just in their normal orientation

Normal transformation: image

Transform 90: image

my kanshi config:

~/.config $> cat kanshi/config 
profile multihead {
     output DP-1 mode 2560x1440@143.856 position 1080,160
     output DP-2 {
          mode 1920x1080@144.001
          position 3640,0
          transform 90
     }
     output HDMI-A-2 {
          mode 1920x1080@143.999
          position 0,0
          transform 90
     }    
}

My full config: https://gist.githubusercontent.com/winteriscariot/f8085fd719703f2647888a77c0a9376a/raw/6b4f262ba4de4ac32401bfb0ef7767880c8909fd/gistfile1.txt

since this only occurs on transformed (ie vertical) monitors i'm wondering if maybe this is a lingering issue related to #47 ?

winteriscariot commented 1 month ago

Something else I noticed:

When rotated 180 it also occurs the same (upper left corner rounded inappropriately)

When rotated 270 (so the monitor content is upside down for me) the same thing occurs on the upper RIGHT corner of the window, not the left. (tho it's still on the left side of the monitor, relative to the inverted window, while the monitor content is upside down, if that makes sense)

swwwee commented 1 month ago

There's a PR (#112) on the issue that you shared, which states that transformed/rotated outputs have been fixed; however, rotated outputs with a titlebar are still broken.

Image 1.) from PR #112 "Issues:" image

This does seem similar to your case. And if possible, can you confirm if this is also present with the native sway-output?