jwm
jwm copied to clipboard
Resizing Xephyr window does not change available window area
Hello,
I noticed that when using jwm within Xephyr, changes of the Xephyr window size are not detected, even after restarting jwm.
- It should be possible to resize windows to take up the new Xephyr size.
- Maximized windows should automatically take up the new Xephyr size
(For example IceWM does the above)
jwmrc:
<Group>
<Name>Navigator</Name>
<Class>Firefox</Class>
<Option>maximized</Option>
</Group>
shell:
Xephyr :600 -resizeable -no-host-grab -host-cursor &
# allow Xephyr to start
DISPLAY=:600 jwm &
DISPLAY=:600 firefox --new-instance --no-remote --profile ~/.mozilla/firefox/*test
# You may need to `pkill Xephyr` before testing again.
jwm 3d20128 xorg-server 1.19.5
I'll need to look into this more, but I'm guessing that JWM is forgetting that the window is supposed to be maximized.
I think that jwm assumes that the screen size does not change. (IIRC Xephyr is another xserver that runs in a window of another running xserver)... Does jwm remaximize windows after an xrandr resize? if it does, i don't recall seeing the code.
Edit: I think this is related to #446
I'll need to look into this more, but I'm guessing that JWM is forgetting that the window is supposed to be maximized.
It doesn't seem to me that this is the case. For example, if one takes these steps:
- Start Xephyr, jwm and firefox (Xephyr window size: A)
- Make the Xephyr window bigger (Xephyr window size: B > A)
- (Un-maximize and) maximize firefox
You will find that the maximized window of firefox only takes area A.