Skip to content

Commit

Permalink
#459 ..
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Jun 7, 2020
1 parent 67c77b0 commit aabbac2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,12 +1052,12 @@ static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_MOVED)
}
} else {
uint32_t cursor_did = display_manager_point_display_id(point);
if (g_display_manager.current_display_id != cursor_did) {
CGRect menu = display_manager_menu_bar_rect(cursor_did);
if (cgrect_contains_point(menu, point)) return EVENT_SUCCESS;
if (g_display_manager.current_display_id == cursor_did) return EVENT_SUCCESS;

display_manager_focus_display_with_point(cursor_did, point, false);
}
CGRect menu = display_manager_menu_bar_rect(cursor_did);
if (cgrect_contains_point(menu, point)) return EVENT_SUCCESS;

display_manager_focus_display_with_point(cursor_did, point, false);
}

return EVENT_SUCCESS;
Expand Down

0 comments on commit aabbac2

Please sign in to comment.