From fc437783f990c03519821ccfb655cd637db003dc Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sat, 25 Jul 2015 14:23:46 -0300 Subject: [PATCH] Disable pager by default New features like this one should be disabled by default. --- WPrefs.app/Expert.c | 4 ++-- src/WindowMaker.h | 2 +- src/defaults.c | 4 ++-- src/event.c | 2 +- src/workspace.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/WPrefs.app/Expert.c b/WPrefs.app/Expert.c index 616f9ec8..0c5df943 100644 --- a/WPrefs.app/Expert.c +++ b/WPrefs.app/Expert.c @@ -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" }, diff --git a/src/WindowMaker.h b/src/WindowMaker.h index 99751ff8..21da64da 100644 --- a/src/WindowMaker.h +++ b/src/WindowMaker.h @@ -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 */ diff --git a/src/defaults.c b/src/defaults.c index 6f9edfd6..caa428e1 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -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 diff --git a/src/event.c b/src/event.c index a6a54026..e7ee074f 100644 --- a/src/event.c +++ b/src/event.c @@ -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; diff --git a/src/workspace.c b/src/workspace.c index c6052b3f..e3efcfdf 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -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); -- 2.11.4.GIT