-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
the center flag doesn't change behaviour at all on wayland via bemenu-wayland backend #223
Comments
The actual placement of the window is done by compositor. Bemenu only sets hints on wayland: bemenu/lib/renderers/wayland/window.c Line 217 in 9cac338
|
huh, i see. i use the river compositor, so i assume that has something to do with this not functioning? |
Maybe, if I understood this code correctly https://github.com/riverwm/river/blob/c1d985ac2985b985aa8848490a0fab4fe8403dba/river/Output.zig#L338-L362 river does not handle the anchors as bitflags, but instead as a single value. So it will only work for single anchor at time. |
Hey, author of river here. I see In order to get river to center the layer shell client vertically as I believe is desired here, the anchor should be set to I just tested this using the wlroots layer shell example client and things seem to work as I intended them. Let me know if you have any questions! |
Hmm, according to code here it should be setting all bits: bemenu/lib/renderers/wayland/window.c Line 217 in 9cac338
ping @llunacb @stacyharper |
@Cloudef my apologies, you're right and Anyhow, river should behave properly here as of this commit: riverwm/river@745fe82 |
Not sure where those extraneous set_anchor calls come from, reading the code it seems to protect itself pretty well from setting same align twice. At most it should be doing 2 calls. That might be worth debugging. |
btw: I fixed recently wlroots to ignore concurrent calls as set_anchor if the anchor already is what it got. So multiple calls can be ignored (if the anchors are the same ofc) |
hello! I've tested the new river commit and it works perfectly! Thank you so much and I'm very sorry for submitting this issue to the wrong place! |
I've been trying to see if bemenu could be used in center mode, but it seems like it is anything but easy currently;
ways of invoking it that i have been attempting are simply
echo -n "1\n2\n3\n" | bemenu --center
or usingbemenu -c
instead ofbemenu --center
(or justbemenu-run --center
), but it does not make bemenu centered at all.also, another issue i have seen that isnt fixed yet is that the --center option isn't in the manpage, only in the help response
bemenu version: 0.6.4
my distribution is Artix Linux
The text was updated successfully, but these errors were encountered: