Open Vermoot opened 3 years ago
@Rougemoot can you try setting focusable="true"
on your window definition?
as in:
<window name="main_window" focusable="true">
...
</window>
That would tell the WM to treat eww more like a normal window, specifically also making it focusable. This may make it possible for you to go with your option 2, making it sticky in the WM config. Note that that is likely to also make eww focusable by the WM, which is something you'd then also need to tell the WM to ignore in some other way
focusable, sorry xD Just noticed my mistake
Added the focusable
attribute to the docs, among a couple others in 0e97847a3ae4614cc1dcb7cf51ece2e63745c97f
Unfortunately this doesn't solve the problem. The window still isn't detected by my WM (yabai) so I can't make it sticky.
Two things have changed from adding the selectable
property: a border appeared around the window, and all text becomes grey unless I click on the window, as if to indicate that the window isn't currently focused.
i guess the border and focus stuff was to be expected, lol. It's kinda weird that it isn't detected by the WM tho,... do you have any way of seeing what makes the WM ignore it?
Nope, I can just ask the WM what it sees, and it just doesn't see it as a proper window
not as a proper window (if so, what exactly does that mean? what does it see it as?) or just not at all?
Oh yeah sorry it just doesn't see it at all.
This might be what we need? https://wiki.gnome.org/Projects/GTK/OSX
@Rougemoot Do you mean the window...
Because if it's 1.
, that's what the default behavior is on my window manager as well.
Vermoots issue here is workspaces, eww on macos is currently not "sticky", and cannot be made such as it isn't seen by yabai at all. That, too, may be fixed by gtk4.
Describe the bug
When on macOS, the eww window is only visible on the one space it's been started from.
Reproducing the issue
Use eww on macOS.
Expected behaviour
The window should be sticky, appearing on all spaces or following the user around
Additional context
I guess that could either be fixed by actually making the window visible on all spaces, or it could also be solved by making the window a proper detectable window according to macOS, which would emable the user to make it sticky through their WM