]> Dogcows Code - chaz/tint2/blobdiff - src/panel.c
fix clock to update even if it is on line two
[chaz/tint2] / src / panel.c
index f9593777d0c6bd1516c7dd1c07c3689991a5f396..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)
+               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;
@@ -699,16 +699,10 @@ Area* click_area(Panel *panel, int x, int y)
                GSList* it = result->list;
                while (it) {
                        Area* a = it->data;
-                       if (panel_horizontal) {
-                               if (a->on_screen && x >= a->posx && x <= (a->posx + a->width)) {
-                                       new_result = a;
-                                       break;
-                               }
-                       } else {
-                               if (a->on_screen && y >= a->posy && y <= (a->posy + a->height)) {
-                                       new_result = a;
-                                       break;
-                               }
+                       if (a->on_screen && x >= a->posx && x <= (a->posx + a->width)
+                                       && y >= a->posy && y <= (a->posy + a->height)) {
+                               new_result = a;
+                               break;
                        }
                        it = it->next;
                }
This page took 0.022542 seconds and 4 git commands to generate.