elkowar / eww

ElKowars wacky widgets
https://elkowar.github.io/eww
MIT License
9.4k stars 381 forks source link

[BUG] Anchor acting strange #1167

Closed randompersondude closed 2 months ago

randompersondude commented 2 months ago

Checklist before submitting an issue

Description of the bug

I was trying to make a vertical bar.

I started out with this: (defwindow bar :monitor 0 :geometry (geometry :x "0%" :y "0%" :width "2%" :height "100%" :anchor "bottom left") :stacking "fg" :exclusive true

"a" ) but then i found out, (#296) that i couldn't use exclusive with a bottom left anchor, it had to be center for at least one.

so, i changed my geometry anchor to bottom center, intending to just have -50% x to put it on the left side of the screen. u cant change the x position when its bottom center. and my window manager(wayfire) starts acting very strange with window management now. (it also breaks at top center)

when i set it to just center, it was the same as top center and bottom center, but as well as breaking my window manager and not being able to change the x, it wasnt even 100% of the screen now, it was slightly downwards and changing y in the config didn't help either.

at left center, exclusive works, but it has the same y position issue as when i just do center.

Reproducing the issue

in a window on wayland, put exclusive true, and mess around with the anchor.

Expected behaviour

Well, it would be great if i could change the x and y position even when something has a center anchor.

Additional context

First one (left bottom)

20240825_12h26m16s_grim

Next one (-50% x, bottom center)

20240825_12h29m40s_grim

Last one (left center)

20240825_12h32m20s_grim

randompersondude commented 2 months ago

oh, actually seemed to be caused by the default wayfire bar, when i turned that off, the left center one seemed to work.