joewing / jwm

Joe's Window Manager
http://joewing.net/projects/jwm
MIT License
517 stars 85 forks source link

Resizing Xephyr window does not change available window area #420

Open dset0x opened 6 years ago

dset0x commented 6 years ago

Hello,

I noticed that when using jwm within Xephyr, changes of the Xephyr window size are not detected, even after restarting jwm.

(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

joewing commented 6 years ago

I'll need to look into this more, but I'm guessing that JWM is forgetting that the window is supposed to be maximized.

technosaurus commented 6 years ago

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

dset0x commented 5 years ago

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:

You will find that the maximized window of firefox only takes area A.