jwm icon indicating copy to clipboard operation
jwm copied to clipboard

Layers and Chromium

Open ghost opened this issue 8 years ago • 6 comments

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?

ghost avatar May 25 '16 23:05 ghost

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.

joewing avatar May 26 '16 02:05 joewing

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

joewing avatar May 27 '16 02:05 joewing

How can I change the default layer to below? (For all windows).

ghost avatar May 27 '16 14:05 ghost

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>

joewing avatar May 29 '16 15:05 joewing

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.

ataraxia937 avatar Sep 22 '18 23:09 ataraxia937

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.

ataraxia937 avatar Sep 23 '18 03:09 ataraxia937