mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
wmaker: Moved variable Ignore Wks Change into the workspace object in the global namespace
Took the opportunity to change its type: it was an integer, but it is actually holding a yes/no status, so it is now defined as a boolean.
This commit is contained in:
committed by
Carlos R. Mafra
parent
b6423a7b4f
commit
c3c2d8d7f1
@@ -59,7 +59,6 @@
|
||||
#define MAX_SHORTCUT_LENGTH 32
|
||||
#define WORKSPACE_NAME_DISPLAY_PADDING 32
|
||||
|
||||
extern int ignore_wks_change;
|
||||
extern WShortKey wKeyBindings[WKBD_LAST];
|
||||
|
||||
static WMPropList *dWorkspaces = NULL;
|
||||
@@ -441,7 +440,7 @@ void wWorkspaceRelativeChange(WScreen * scr, int amount)
|
||||
* still "flying" to its final position and we don't want to
|
||||
* change workspace before the animation finishes, otherwise
|
||||
* the window will land in the new workspace */
|
||||
if (ignore_wks_change)
|
||||
if (w_global.workspace.ignore_change)
|
||||
return;
|
||||
|
||||
w = w_global.workspace.current + amount;
|
||||
|
||||
Reference in New Issue
Block a user