File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,14 +81,14 @@ static void event_mouse_up(void* context) {
81
81
wid ,
82
82
& window );
83
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
84
if (!bar_item || bar_item -> type == BAR_COMPONENT_GROUP ) {
89
85
bar_item = bar_manager_get_item_by_point (& g_bar_manager , point , & window );
90
86
}
91
87
88
+ struct bar * bar = bar_manager_get_bar_by_wid (& g_bar_manager , wid );
89
+ struct popup * popup = bar_manager_get_popup_by_wid (& g_bar_manager , wid );
90
+ if (!bar_item && !popup && !bar ) return ;
91
+
92
92
CGPoint point_in_window_coords = CGPointZero ;
93
93
if (bar_item && window ) {
94
94
point_in_window_coords .x = point .x - window -> origin .x ;
You can’t perform that action at this time.
0 commit comments