From 7dc24b8ee6833fe5af96d8f22d6ee5225b6ab344 Mon Sep 17 00:00:00 2001 From: o9000 Date: Fri, 25 Mar 2016 09:51:55 +0100 Subject: [PATCH] Launcher: full width clicks if 1 row or 1 column of icons (issue #572) --- src/launcher/launcher.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/launcher/launcher.c b/src/launcher/launcher.c index 0d4a67f..bbb6663 100644 --- a/src/launcher/launcher.c +++ b/src/launcher/launcher.c @@ -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; }