mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Skip no_appicon apps in the application icon list
We want to avoid having to consider the position of an appicon whose application has no_appicon set. The appicon is not "painted" so it does not appear on the screen. But if the appicon is still added to the list of application icons, the wArrangeIcons() function gets confused and ends up creating holes in the icon positions which correspond to the no_appicon apps. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
@@ -247,12 +247,17 @@ static WAppIcon *wAppIconCreate(WWindow * leader_win)
|
|||||||
aicon->yindex = -1;
|
aicon->yindex = -1;
|
||||||
aicon->xindex = -1;
|
aicon->xindex = -1;
|
||||||
|
|
||||||
aicon->prev = NULL;
|
/* When no_appicon is set we want to avoid having it on the list
|
||||||
aicon->next = scr->app_icon_list;
|
* because otherwise there will be a hole when the icons are
|
||||||
if (scr->app_icon_list)
|
* arranged with wArrangeIcons() */
|
||||||
scr->app_icon_list->prev = aicon;
|
if (!WFLAGP(leader_win, no_appicon)) {
|
||||||
|
aicon->prev = NULL;
|
||||||
|
aicon->next = scr->app_icon_list;
|
||||||
|
if (scr->app_icon_list)
|
||||||
|
scr->app_icon_list->prev = aicon;
|
||||||
|
|
||||||
scr->app_icon_list = aicon;
|
scr->app_icon_list = aicon;
|
||||||
|
}
|
||||||
|
|
||||||
if (leader_win->wm_class)
|
if (leader_win->wm_class)
|
||||||
aicon->wm_class = wstrdup(leader_win->wm_class);
|
aicon->wm_class = wstrdup(leader_win->wm_class);
|
||||||
|
|||||||
Reference in New Issue
Block a user