mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
Disable pager by default
New features like this one should be disabled by default.
This commit is contained in:
@@ -47,8 +47,8 @@ static const struct {
|
|||||||
{ N_("Ignore decoration hints for GTK applications."),
|
{ N_("Ignore decoration hints for GTK applications."),
|
||||||
/* default: */ False, OPTION_WMAKER, "IgnoreGtkHints" },
|
/* default: */ False, OPTION_WMAKER, "IgnoreGtkHints" },
|
||||||
|
|
||||||
{ N_("Disable workspace pager."),
|
{ N_("Enable workspace pager."),
|
||||||
/* default: */ False, OPTION_WMAKER, "DisableWorkspacePager" },
|
/* default: */ False, OPTION_WMAKER, "EnableWorkspacePager" },
|
||||||
|
|
||||||
{ N_("Do not set non-WindowMaker specific parameters (do not use xset)."),
|
{ N_("Do not set non-WindowMaker specific parameters (do not use xset)."),
|
||||||
/* default: */ False, OPTION_USERDEF, "NoXSetStuff" },
|
/* default: */ False, OPTION_USERDEF, "NoXSetStuff" },
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ extern struct WPreferences {
|
|||||||
char sticky_icons; /* If miniwindows will be onmipresent */
|
char sticky_icons; /* If miniwindows will be onmipresent */
|
||||||
char dont_confirm_kill; /* do not confirm Kill application */
|
char dont_confirm_kill; /* do not confirm Kill application */
|
||||||
char disable_miniwindows;
|
char disable_miniwindows;
|
||||||
char disable_workspace_pager;
|
char enable_workspace_pager;
|
||||||
char ignore_gtk_decoration_hints;
|
char ignore_gtk_decoration_hints;
|
||||||
|
|
||||||
char dont_blink; /* do not blink icon selection */
|
char dont_blink; /* do not blink icon selection */
|
||||||
|
|||||||
@@ -363,8 +363,8 @@ WDefaultEntry staticOptionList[] = {
|
|||||||
NULL, getBool, setClipMergedInDock, NULL, NULL},
|
NULL, getBool, setClipMergedInDock, NULL, NULL},
|
||||||
{"DisableMiniwindows", "NO", NULL,
|
{"DisableMiniwindows", "NO", NULL,
|
||||||
&wPreferences.disable_miniwindows, getBool, NULL, NULL, NULL},
|
&wPreferences.disable_miniwindows, getBool, NULL, NULL, NULL},
|
||||||
{"DisableWorkspacePager", "NO", NULL,
|
{"EnableWorkspacePager", "NO", NULL,
|
||||||
&wPreferences.disable_workspace_pager, getBool, NULL, NULL, NULL}
|
&wPreferences.enable_workspace_pager, getBool, NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NUM2STRING_(x) #x
|
#define NUM2STRING_(x) #x
|
||||||
|
|||||||
@@ -1622,7 +1622,7 @@ static void handleKeyPress(XEvent * event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WKBD_WORKSPACEMAP:
|
case WKBD_WORKSPACEMAP:
|
||||||
if (!wPreferences.disable_workspace_pager)
|
if (wPreferences.enable_workspace_pager)
|
||||||
StartWorkspaceMap(scr);
|
StartWorkspaceMap(scr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ void wWorkspaceForceChange(WScreen * scr, int workspace)
|
|||||||
if (workspace >= MAX_WORKSPACES || workspace < 0)
|
if (workspace >= MAX_WORKSPACES || workspace < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!wPreferences.disable_workspace_pager && !w_global.process_workspacemap_event)
|
if (wPreferences.enable_workspace_pager && !w_global.process_workspacemap_event)
|
||||||
wWorkspaceMapUpdate(scr);
|
wWorkspaceMapUpdate(scr);
|
||||||
|
|
||||||
SendHelperMessage(scr, 'C', workspace + 1, NULL);
|
SendHelperMessage(scr, 'C', workspace + 1, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user