Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FvwmPager: CurrentDeskPerMonitor and two other features. #1002

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

somiaj
Copy link
Collaborator

@somiaj somiaj commented Apr 7, 2024

This adds the following features to FvwmPager. Two features are fairly minor (so grouping them here) and the third is a new way to view the pager.

  • Add option CurrentDeskPerMonitor. This option affects both the icon view of the pager and when the pager is tracking a current desk via fAlwaysCurrentDesk activated by running Module FvwmPager *. This option makes the pager show the windows on the current desktop of each monitor independently. Useful when using per-monitor and the monitors are on different desks, to ensure you always see the windows for each monitor. In addition if DeskLabels and MonitorLabes are enabled, the desk that each monitor is currently viewing is shown in the label.

  • Add option FocusAfterMove. This option will use FlipFocus on any window that is moved by the pager and dropped in the current desktop of the monitor viewing the window. This is an old feature that was in the code, but was always enabled. Not all use cases would want this feature, so instead I disabled it by default, and added this new option to turn it on.

  • Add option CurrentMonitor RandRname. This option configures a current_monitor that is used to determine when the current desktop should update. Without setting this option, the current desktop for icon view, or when using the pager in fAlwaysCurrentDesk, mode Module FvwmPager *, is updated each and every time any monitor changes desktops. This may not be ideal in per-monitor mode, so configuring this option will make the current desktop only update when the specified monitor changes desktops, and ignore all other monitors.

@ThomasAdam ThomasAdam added type:enhancement Augmenting an existing feature relates:module Issue is in module code labels Apr 7, 2024
@ThomasAdam ThomasAdam added this to the 1.1.1 milestone Apr 7, 2024
@somiaj somiaj force-pushed the js/pager-current-desktop branch 2 times, most recently from e331142 to 931ce3c Compare April 7, 2024 16:31
somiaj added 4 commits April 10, 2024 08:25
  Add a new CurrentMonitor setting, which makes the pager only respond
  to the configured monitor when changing desks in both icon view and
  when viewing fAlwaysCurrentDesk is set. This makes what desk the
  pager is showing a bit less random in per-monitor mode.
  This adds a configuration flag that can control how the pager shows
  windows when fAlwaysCurrentDesk is set, and this always affects the
  icon view. If CurrentDeskPerMonitor is set, and using per-monitor
  DesktopConfiguration, the pager will show the windows on the desk
  each monitor is on independently. This makes it so a single
  pager can control two monitors and their current independently.
  This enables older code that would give focus to the window moved
  by the pager if the pager placed the window on the current desktop.
  This behavior is now disabled by default, and this option will enable
  the old behavior.
@somiaj somiaj force-pushed the js/pager-current-desktop branch from 58c4ade to 61f04c2 Compare April 10, 2024 14:42
@ThomasAdam ThomasAdam self-assigned this Apr 10, 2024
@ThomasAdam ThomasAdam merged commit 4112c99 into main Apr 10, 2024
5 checks passed
@ThomasAdam ThomasAdam deleted the js/pager-current-desktop branch April 10, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates:module Issue is in module code type:enhancement Augmenting an existing feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants