jwm
jwm copied to clipboard
Layers and Chromium
With normal layer I can't move tabs in Chromium. I need to change it to below or above, but I don't like to have a window in another layer. Is there another way to solve it?
Thanks for reporting this. I'm not quite sure why it's not possible to move tabs between windows when the layer is set to normal, but I'm looking into it.
I can reproduce this issue, but it doesn't seem to be related to the layer necessarily. Sometimes it works and sometimes it doesn't, no matter what layer. Also, it seems like it will sometimes partially work, in that the tabs can be moved, but only after several attempts.
I'm not completely sure this is an issue related to JWM. It doesn't seem like JWM should be doing anything that would cause this sort of behavior (though it's hard to say for sure since I'm not sure how Chromium handles moving tabs). There have been similar issues with Chromium in the past:
- https://bugs.chromium.org/p/chromium/issues/detail?id=224606
- https://bugs.chromium.org/p/chromium/issues/detail?id=124209
- https://bugs.chromium.org/p/chromium/issues/detail?id=168481
- https://bugs.chromium.org/p/chromium/issues/detail?id=132706
How can I change the default layer to below
? (For all windows).
You can set the default layer with a group option that applies to all windows:
<Group>
<Option>layer:below</Option>
</Group>
There is also a layer
attribute for trays that you can set:
<Tray layer="below" ...>
...
</Tray>
I've found a pattern with this problem. Tab dragging works correctly when chromium is the only un-minimized window in its layer. For instance, I have a terminal open behind chromium, and tab moving won't work. And then I minimize the terminal, and it starts working. Note that the terminal was not actually mapped on the screen, as the chromium window was completely covering it. Hope this helps.
Even more specific - If there is another window behind the tab area of chromium, it doesn't work. I put a small Sakura terminal behind only the right half of the tab bar, and found that tab moving works exactly when the terminal is not behind that part of the tab bar.