Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
winteriscariot opened this issue May 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@winteriscariot
Copy link

winteriscariot commented May 26, 2024

  • Swayfx Version:
    • swayfx version 0.4-3c621dec (May 26 2024, branch 'master') (based on sway 1.9.0)

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 [email protected] position 1080,160
     output DP-2 {
          mode [email protected]
          position 3640,0
          transform 90
     }
     output HDMI-A-2 {
          mode [email protected]
          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 winteriscariot added the bug Something isn't working label May 26, 2024
@winteriscariot
Copy link
Author

winteriscariot commented May 26, 2024

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
Copy link

swwwee commented May 29, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants