mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Add config option to supress focus requests across workspaces
In commit d6c134f420 ("Do not switch
workspace to follow new windows in others") the default behavior
was changed, and workspace switching to follow focus requests was
strictly forbidden.
Although that seems to be a sane thing to do by default, that raises
concerns about whether Window Maker could be more flexible in that
respect -- allowing the user to choose which applications are or
are not allowed to do that.
This patch adds such configuration, located in the "Advanced Options"
submenu of the top-level "Attributes" menu.
This commit is contained in:
@@ -78,6 +78,7 @@ static WMPropList *AStartMaximized;
|
||||
static WMPropList *AStartHidden; /* app */
|
||||
static WMPropList *ADontSaveSession; /* app */
|
||||
static WMPropList *AEmulateAppIcon;
|
||||
static WMPropList *ADontFocusAcrossWorkspace;
|
||||
static WMPropList *AFullMaximize;
|
||||
static WMPropList *ASharedAppIcon; /* app */
|
||||
#ifdef XKB_BUTTON_HINT
|
||||
@@ -116,6 +117,7 @@ static void init_wdefaults(WScreen * scr)
|
||||
AStartMaximized = WMCreatePLString("StartMaximized");
|
||||
ADontSaveSession = WMCreatePLString("DontSaveSession");
|
||||
AEmulateAppIcon = WMCreatePLString("EmulateAppIcon");
|
||||
ADontFocusAcrossWorkspace = WMCreatePLString("DontFocusAcrossWorkspace");
|
||||
AFullMaximize = WMCreatePLString("FullMaximize");
|
||||
ASharedAppIcon = WMCreatePLString("SharedAppIcon");
|
||||
#ifdef XKB_BUTTON_HINT
|
||||
@@ -304,6 +306,9 @@ wDefaultFillAttributes(WScreen * scr, char *instance, char *class,
|
||||
value = get_value(dw, dc, dn, da, AEmulateAppIcon, No, useGlobalDefault);
|
||||
APPLY_VAL(value, emulate_appicon, AEmulateAppIcon);
|
||||
|
||||
value = get_value(dw, dc, dn, da, ADontFocusAcrossWorkspace, No, useGlobalDefault);
|
||||
APPLY_VAL(value, dont_focus_across_wksp, ADontFocusAcrossWorkspace);
|
||||
|
||||
value = get_value(dw, dc, dn, da, AFullMaximize, No, useGlobalDefault);
|
||||
APPLY_VAL(value, full_maximize, AFullMaximize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user