We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29c924f commit f519812Copy full SHA for f519812
src/event.c
@@ -81,14 +81,14 @@ static void event_mouse_up(void* context) {
81
wid,
82
&window );
83
84
- struct bar* bar = bar_manager_get_bar_by_wid(&g_bar_manager, wid);
85
- struct popup* popup = bar_manager_get_popup_by_wid(&g_bar_manager, wid);
86
- if (!bar_item && !popup && !bar) return;
87
-
88
if (!bar_item || bar_item->type == BAR_COMPONENT_GROUP) {
89
bar_item = bar_manager_get_item_by_point(&g_bar_manager, point, &window);
90
}
91
+ struct bar* bar = bar_manager_get_bar_by_wid(&g_bar_manager, wid);
+ struct popup* popup = bar_manager_get_popup_by_wid(&g_bar_manager, wid);
+ if (!bar_item && !popup && !bar) return;
+
92
CGPoint point_in_window_coords = CGPointZero;
93
if (bar_item && window) {
94
point_in_window_coords.x = point.x - window->origin.x;
0 commit comments