fvwmorg / fvwm3

FVWM version 3 -- the successor to fvwm2
Other
488 stars 75 forks source link

FvwmPager: New mode IsShared for DesktopConfiguration shared. #1003

Closed somiaj closed 2 months ago

somiaj commented 2 months ago

First this cleans up FvwmPager's handling of DesktopConfiguration shared. It should now correctly show the location of all windows and monitors when using shared mode, along with limit what clicks do. Only clicks in a desktop that a monitor is currently occupied will move through the pages, of the monitor on that desk. To move different monitors between desks MonitorLabels should be used.

Here is a screenshot of the normal mode and IsShared mode when using DesktopConfiguration shared showing 4 desks in a 2x2 grid. Each desk is further split up into 2x2 pages.

mpv-shot0001

The pager on the left is what shared mode looks like in a regular pager. As you can see there is a lot of blank space for each desktop for the other monitor, and since only a single monitor can view the desktop at a time, the space won't be used. The pager on the right is using the shared mode, only showing a single monitor at a time. In this case the unused space is no longer shown and the MonitorLabels can be used to move monitors between the desks.

Note, this is built on top of #1002, so needs to be merged after.