1
0
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:
Carlos R. Mafra
2015-07-25 14:23:46 -03:00
parent fee129b181
commit fc437783f9
5 changed files with 7 additions and 7 deletions

View File

@@ -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" },

View File

@@ -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 */

View File

@@ -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

View File

@@ -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;

View File

@@ -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);