mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
Variable current_workspace moved to workspace object in global namespace
The variable current_workspace, that contains the current workspace is moved to the global workspace properties. Now the screen is not needed to know the workspace_count.
This commit is contained in:
committed by
Carlos R. Mafra
parent
e5ae684d02
commit
c610b8d7ce
@@ -440,8 +440,8 @@ static void appiconBalloon(WObjDescriptor *object)
|
||||
|
||||
/* Show balloon if it is the Clip and the workspace name is > 5 chars */
|
||||
if (object->parent == scr->clip_icon) {
|
||||
if (strlen(scr->workspaces[scr->current_workspace]->name) > 5) {
|
||||
scr->balloon->text = wstrdup(scr->workspaces[scr->current_workspace]->name);
|
||||
if (strlen(scr->workspaces[w_global.workspace.current]->name) > 5) {
|
||||
scr->balloon->text = wstrdup(scr->workspaces[w_global.workspace.current]->name);
|
||||
} else {
|
||||
wBalloonHide(scr);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user