mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
fixed a bug with switch panel
added updated de.po
This commit is contained in:
@@ -345,7 +345,8 @@ WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, int workspace)
|
||||
}
|
||||
|
||||
panel->current= WMGetFirstInArray(panel->windows, curwin);
|
||||
changeImage(panel, panel->current, 1);
|
||||
if (panel->current >= 0)
|
||||
changeImage(panel, panel->current, 1);
|
||||
|
||||
return panel;
|
||||
}
|
||||
@@ -381,6 +382,9 @@ WWindow *wSwitchPanelSelectNext(WSwitchPanel *panel, int back)
|
||||
WWindow *wwin;
|
||||
int count = WMGetArrayItemCount(panel->windows);
|
||||
|
||||
if (count == 0)
|
||||
return NULL;
|
||||
|
||||
if (panel->win)
|
||||
changeImage(panel, panel->current, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user