Only set currently hovered window when not over title bar or border
This commit is contained in:
parent
6ad4f495d6
commit
68ef054676
1 changed files with 1 additions and 1 deletions
|
|
@ -1261,7 +1261,7 @@ mouse_event(const int button, int modifiers, int action) {
|
|||
return;
|
||||
}
|
||||
MouseRegion r = mouse_region(true, true);
|
||||
set_currently_hovered_window(w ? w->id : 0, modifiers);
|
||||
set_currently_hovered_window(w && !r.window_border && !r.in_title_bar ? w->id : 0, modifiers);
|
||||
|
||||
if (r.in_tab_bar || global_state.tab_being_dragged.id) {
|
||||
mouse_cursor_shape = POINTER_POINTER;
|
||||
|
|
|
|||
Loading…
Reference in a new issue