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