Launcher: full width clicks if 1 row or 1 column of icons (issue #572)

This commit is contained in:
o9000 2016-03-25 09:51:55 +01:00
parent 6e6dff2ca3
commit 7dc24b8ee6

View file

@ -294,6 +294,16 @@ gboolean resize_launcher(void *obj)
}
}
if ((panel_horizontal && icons_per_column == 1) || (!panel_horizontal && icons_per_row == 1)) {
launcher->area._is_under_mouse = full_width_area_is_under_mouse;
for (GSList *l = launcher->list_icons; l; l = l->next)
((LauncherIcon *)l->data)->area._is_under_mouse = full_width_area_is_under_mouse;
} else {
launcher->area._is_under_mouse = NULL;
for (GSList *l = launcher->list_icons; l; l = l->next)
((LauncherIcon *)l->data)->area._is_under_mouse = NULL;
}
return TRUE;
}