]> Dogcows Code - chaz/tint2/commitdiff
Disable mouse hover events when the launcher tooltip is disabled
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 25 Oct 2011 09:57:21 +0000 (09:57 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 25 Oct 2011 09:57:21 +0000 (09:57 +0000)
Do not use g_slist_free_full since it requires glib 2.28

src/launcher/launcher.c
src/panel.c

index ab4ca29d67526e62192b9d40bf87a9b3627577dc..cb4aa9ba1aa93ba180666f25f9646a1388d7805e 100644 (file)
@@ -104,6 +104,7 @@ void init_launcher_panel(void *p)
 void cleanup_launcher()
 {
        int i;
+       GSList *l;
 
        if (xsettings_client)
                xsettings_client_destroy(xsettings_client);
@@ -112,7 +113,10 @@ void cleanup_launcher()
                Launcher *launcher = &panel->launcher;          
                cleanup_launcher_theme(launcher);
        }
-       g_slist_free_full(panel_config.launcher.list_apps, free);
+       for (l = panel_config.launcher.list_apps; l ; l = l->next) {
+               free(l->data);
+       }
+       g_slist_free(panel_config.launcher.list_apps);
        panel_config.launcher.list_apps = NULL;
        free(icon_theme_name);
        icon_theme_name = 0;
index becc2aa6596026d6d5bb30a8735d93dcc07d63e5..b136ff34bf11404194f75c1c1b7853111fef8be2 100644 (file)
@@ -199,7 +199,7 @@ void init_panel()
                p->main_win = XCreateWindow(server.dsp, server.root_win, p->posx, p->posy, p->area.width, p->area.height, 0, server.depth, InputOutput, server.visual, mask, &att);
 
                long event_mask = ExposureMask|ButtonPressMask|ButtonReleaseMask|ButtonMotionMask;
-               if (p->g_task.tooltip_enabled || p->clock.area._get_tooltip_text || p->launcher.area.on_screen)
+               if (p->g_task.tooltip_enabled || p->clock.area._get_tooltip_text || (launcher_enabled && launcher_tooltip_enabled))
                        event_mask |= PointerMotionMask|LeaveWindowMask;
                if (panel_autohide)
                        event_mask |= LeaveWindowMask|EnterWindowMask;
This page took 0.023796 seconds and 4 git commands to generate.