Fix anchoring in kwin and smithay#189
Conversation
Solves a bug regarding wrong anchoring which also caused the content of the tofi window to get stretched in strange ways in kwin and compositors using smithay. Instead of setting all anchors for centering (or, for instance, setting both left and right anchor to achieve horizontal centering), we now only set the needed anchor
|
This works for me on niri. |
|
Hey, sorry for the slow response on this and thanks for the PR! Unfortunately this issue isn't quite so simple. The reason opposing anchors were set to centre the window, rather than neither, was because this is required to get a full-width / height window on a compositor that:
With this patch set, setting and no visible window. Back when I was last updating tofi,
|
This seems reasonable to me, thanks for looking into this. Any way we can help? |
|
Setting up tofi on niri and would love to see this PR merged soon, is there any timeframe for when it might happen? I'm happy to build tofi from source with the patch till then, just wondering when I can expect the fix to be released. |
Should resolve #165; should also fix #170. Instead of setting all anchors for centering (or, for instance, setting both left and right anchor to achieve horizontal centering), we now only set the needed anchor.
See this fuzzel commit for more information.