all repos — tint2 @ 76bd4baa9c7bf77b6fa7086f42b3df4a62d93264

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Ignore empty areas for mouse events
o9000 mrovi9000@gmail.com
commit

76bd4baa9c7bf77b6fa7086f42b3df4a62d93264

parent

0bd49f42275ebec39cde297e9b07bb670d3534aa

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M src/util/area.csrc/util/area.c

@@ -594,7 +594,7 @@

Area *node = &panel->area; while (node) { - if (!node->on_screen) + if (!node->on_screen || node->width == 0 || node->height == 0) return FALSE; if (node == a) return TRUE;

@@ -603,7 +603,7 @@ GList *l = node->children;

node = NULL; for (; l; l = l->next) { Area *child = l->data; - if (!child->on_screen) + if (!child->on_screen || child->width == 0 || child->height == 0) continue; node = child; break;

@@ -624,7 +624,7 @@

Area *node = &panel->area; while (node) { - if (!node->on_screen) + if (!node->on_screen || node->width == 0 || node->height == 0) return FALSE; if (node == a) return TRUE;

@@ -633,7 +633,7 @@ GList *l = node->children;

node = NULL; for (; l; l = l->next) { Area *child = l->data; - if (!child->on_screen) + if (!child->on_screen || child->width == 0 || child->height == 0) continue; node = child; }

@@ -645,7 +645,7 @@

gboolean area_is_under_mouse(void *obj, int x, int y) { Area *a = obj; - if (!a->on_screen) + if (!a->on_screen || a->width == 0 || a->height == 0) return FALSE; if (a->_is_under_mouse)