mirror of
https://github.com/labwc/labwc.git
synced 2026-04-08 08:21:09 -04:00
Add allOutputs option to window switcher
Introduces a new configuration option for the window switcher that allows users to filter windows by output (monitor). Changes: - Added `allOutputs` attribute to <windowSwitcher> - Default is "no" (only shows windows on the cursor's output) - When set to "yes", shows windows from all outputs - Introduced LAB_VIEW_CRITERIA_CURSOR_OUTPUT flag to filter views by output - Windows are matched against the output nearest to the cursor - Bit positions of existing criteria flags shifted to accommodate new flag - Modified OSD display behavior to show only on the cursor's output - Previously, the OSD would appear on all outputs simultaneously - Now displays only on the output nearest to the cursor location This provides better multi-monitor support by allowing users to focus on windows relevant to their current screen, reducing visual clutter when working across multiple displays.
This commit is contained in:
parent
0f62648d39
commit
764cd942eb
6 changed files with 43 additions and 16 deletions
|
|
@ -67,16 +67,17 @@ enum lab_view_criteria {
|
|||
* what is visible on the current workspace
|
||||
*/
|
||||
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE = 1 << 0,
|
||||
LAB_VIEW_CRITERIA_CURSOR_OUTPUT = 1 << 1,
|
||||
|
||||
/* Positive criteria */
|
||||
LAB_VIEW_CRITERIA_FULLSCREEN = 1 << 1,
|
||||
LAB_VIEW_CRITERIA_ALWAYS_ON_TOP = 1 << 2,
|
||||
LAB_VIEW_CRITERIA_ROOT_TOPLEVEL = 1 << 3,
|
||||
LAB_VIEW_CRITERIA_FULLSCREEN = 1 << 2,
|
||||
LAB_VIEW_CRITERIA_ALWAYS_ON_TOP = 1 << 3,
|
||||
LAB_VIEW_CRITERIA_ROOT_TOPLEVEL = 1 << 4,
|
||||
|
||||
/* Negative criteria */
|
||||
LAB_VIEW_CRITERIA_NO_ALWAYS_ON_TOP = 1 << 6,
|
||||
LAB_VIEW_CRITERIA_NO_SKIP_WINDOW_SWITCHER = 1 << 7,
|
||||
LAB_VIEW_CRITERIA_NO_OMNIPRESENT = 1 << 8,
|
||||
LAB_VIEW_CRITERIA_NO_ALWAYS_ON_TOP = 1 << 7,
|
||||
LAB_VIEW_CRITERIA_NO_SKIP_WINDOW_SWITCHER = 1 << 8,
|
||||
LAB_VIEW_CRITERIA_NO_OMNIPRESENT = 1 << 9,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue