Le 08/04/2023 à 18:51, Stefan Monnier a écrit :
I have two screens with the following layout:
+--------+
| |
+-----------+ |
| | |
| | |
| | |
+-----------+ |
| |
+--------+
where the left screen is "primary".
When I use "f.zoom" on a window in the right screen, its vertical size
is changed so that its bottom is at the bottom of the right screen but
its only extends up to the top of the *left* screen instead of the top
of the right screen.
I.e. before:
+--------+
| |
+-----------+ |
| | +--+ |
| | | | |
| | +--+ |
+-----------+ |
| |
+--------+
after:
+--------+
| |
+-----------+ +--+ |
| | | | |
| | | | |
| | | | |
+-----------+ | | |
| | | |
+--+--+--+
For reference, here is the `xrandr`:
% xrandr
Screen 0: minimum 320 x 200, current 2800 x 1920, maximum 16384 x 16384
VGA-1 disconnected (normal left inverted right x axis y axis)
1920x1200_60.00 60.00
1920x1200_50.00 50.00
HDMI-1 connected 1200x1920+1600+0 left (normal left inverted right x axis
y axis) 546mm x 352mm
1920x1200 59.95*+
1920x1080 60.00
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
HDMI-2 connected primary 1600x1200+0+335 (normal left inverted right x
axis y axis) 432mm x 324mm
1600x1200 60.00*+
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
%
-- Stefan
Hello,
I just tested using virtualbox and the following setup:
Screen 0: minimum 64 x 64, current 1440 x 600, maximum 32766 x 32766
VGA-0 connected 800x600+640+0 0mm x 0mm
800x600 60.00*+ 60.00*
VGA-1 connected primary 640x480+0+60 0mm x 0mm
640x480 60.00*
which should match yours, and it works as expected.
Could you recompile with DEBUG macro set to 1, and copy/paste the
message printed here:
https://github.com/fullermd/ctwm-mirror/blob/master/ctwm_main.c#L459-L462
For the above setup it prints:
Layout: [monitors=[len=2 cap=2 [x=0 y=60 w=640 h=480] [x=640 y=0 w=800
h=600]]
horiz=[len=3 cap=3 [x=0 y=60 w=1440 h=480] [x=640 y=0 w=800 h=60]
[x=640 y=540 w=800 h=60]]
vert=[len=2 cap=2 [x=640 y=0 w=800 h=600] [x=0 y=60 w=640 h=480]]]
Do you use Xrandr rotation for HDMI-1? I didn't succeed to test monitor
rotation using virtualbox...
++
Max.