mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
wmaker: Restore multi screen functionality by reverting wrong commits
Revert patches that moved variables from WMScreen to global level because this broke X displays with multiple independent screens and caused dock and clip icons to become mixed up. When managing multiple screens each screen used to have it's own state/dock and clip. This commit restores that by reverting mainly the commits listed below (and those that are invalidated by reverting these) and fixing up later commits to apply after the revert. Reverted commits:f60e65001bMoved 'workspace_name_font' from the Screen to a Workspace object in the global namespace9e103a46e9Variable workspace_count moved to the workspace object in the global namespacee5ae684d02Variable last_workspace moved to workspace object in global namespacec610b8d7ceVariable current_workspace moved to workspace object in global namespacef0c5073600Array of workspaces moved to the workspace object in the global namespace9c252988f8Variable workspace_menu moved to workspace object in global namespacee86b8dcb2fClip, Dock and Drawers menu moved to appropriate global namespace074092f319Removed WScreen args not used4a7daf2322AppIcon list moved out of WScreen2103fe390bVariable clip_icon moved to clip object in the global namespace014bc52531wClipIconPaint appicon argument removed40e1ea08b8Varible session_state moved to global namespace6987d4aa40Removed WScreen argument0de3e590ceshortcutWindows moved to w_global2e64831fb6Removed unused variable wapp_listb6423a7b4fwmaker: Moved variable Screen Count into the global namespace Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
e3dcadde30
commit
cb3702559a
@@ -511,43 +511,12 @@ extern struct wmaker_global_variables {
|
||||
/* Screens related */
|
||||
int screen_count;
|
||||
|
||||
/* Workspace related */
|
||||
struct {
|
||||
struct WWorkspace **array; /* data for the workspaces */
|
||||
|
||||
int count; /* number of workspaces */
|
||||
int current; /* current workspace number */
|
||||
int last_used; /* last used workspace number */
|
||||
|
||||
WMFont *font_for_name; /* used during workspace switch */
|
||||
|
||||
/*
|
||||
* Ignore Workspace Change:
|
||||
* this variable is used to prevent workspace switch while certain
|
||||
* operations are ongoing.
|
||||
*/
|
||||
Bool ignore_change;
|
||||
|
||||
/* Menus */
|
||||
struct WMenu *menu; /* workspace operation */
|
||||
struct WMenu *submenu; /* workspace list for window_menu */
|
||||
} workspace;
|
||||
|
||||
/* Clip related */
|
||||
struct {
|
||||
struct WAppIcon *icon; /* The clip main icon, or the dock's, if they are merged */
|
||||
|
||||
struct WMenu *menu; /* Menu for clips */
|
||||
struct WMenu *submenu; /* Workspace list for clips */
|
||||
struct WMenu *opt_menu; /* Options for Clip */
|
||||
struct WMenu *ws_menu; /* workspace menu for clip */
|
||||
} clip;
|
||||
|
||||
/* Dock related */
|
||||
struct {
|
||||
struct WMenu *pos_menu; /* menu for position of the dock */
|
||||
struct WMenu *drawer_menu; /* menu for the drawers */
|
||||
} dock;
|
||||
/*
|
||||
* Ignore Workspace Change:
|
||||
* this variable is used to prevent workspace switch while certain
|
||||
* operations are ongoing.
|
||||
*/
|
||||
Bool ignore_workspace_change;
|
||||
|
||||
#ifdef HAVE_INOTIFY
|
||||
struct {
|
||||
@@ -635,9 +604,6 @@ extern struct wmaker_global_variables {
|
||||
int dummy;
|
||||
} xext;
|
||||
|
||||
/* Session related */
|
||||
WMPropList *session_state;
|
||||
|
||||
/* Keyboard and shortcuts */
|
||||
struct {
|
||||
/*
|
||||
@@ -645,13 +611,7 @@ extern struct wmaker_global_variables {
|
||||
* impact the shortcuts (typically: CapsLock, NumLock, ScrollLock)
|
||||
*/
|
||||
unsigned int modifiers_mask;
|
||||
|
||||
WMArray *windows[MAX_WINDOW_SHORTCUTS];
|
||||
} shortcut;
|
||||
|
||||
/* Application related */
|
||||
struct WAppIcon *app_icon_list; /* list of all aplication icons */
|
||||
|
||||
} w_global;
|
||||
|
||||
/****** Notifications ******/
|
||||
|
||||
Reference in New Issue
Block a user