eww icon indicating copy to clipboard operation
eww copied to clipboard

[BUG] [macOS] Eww window is only visible on one space

Open Vermoot opened this issue 5 years ago • 11 comments

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

Vermoot avatar Nov 25 '20 09:11 Vermoot

@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

elkowar avatar Nov 25 '20 09:11 elkowar

focusable, sorry xD Just noticed my mistake

elkowar avatar Nov 25 '20 09:11 elkowar

Added the focusable attribute to the docs, among a couple others in 0e97847a3ae4614cc1dcb7cf51ece2e63745c97f

elkowar avatar Nov 25 '20 09:11 elkowar

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.

Vermoot avatar Nov 25 '20 09:11 Vermoot

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?

elkowar avatar Nov 25 '20 10:11 elkowar

Nope, I can just ask the WM what it sees, and it just doesn't see it as a proper window

Vermoot avatar Nov 25 '20 10:11 Vermoot

not as a proper window (if so, what exactly does that mean? what does it see it as?) or just not at all?

elkowar avatar Nov 25 '20 10:11 elkowar

Oh yeah sorry it just doesn't see it at all.

Vermoot avatar Nov 25 '20 10:11 Vermoot

This might be what we need? https://wiki.gnome.org/Projects/GTK/OSX

Vermoot avatar Dec 01 '20 13:12 Vermoot

@Rougemoot Do you mean the window...

  1. ...starts in a place, is visible there, and then if you launch a window it gets covered up?
  2. ...always just keeps getting started behind windows?

Because if it's 1., that's what the default behavior is on my window manager as well.

Axarva avatar Jan 20 '21 08:01 Axarva

  1. may be a result of xmonad not respecting the window stacking hints, that may or may not be fixed in the gtk4-version, or may require some xmonad shit that i'll need to investigate.

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.

elkowar avatar Jan 20 '21 10:01 elkowar