Have scroll events when mouse if over titlebar delivered to the window belonging to the titlebar

This commit is contained in:
Kovid Goyal 2026-03-05 17:07:46 +05:30
parent 5599a5c5ca
commit 6ad4f495d6
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1400,7 +1400,7 @@ scroll_event(const GLFWScrollEvent *ev) {
osw->mouse_x = mouse_x * osw->viewport_x_ratio;
osw->mouse_y = mouse_y * osw->viewport_y_ratio;
}
MouseRegion r = mouse_region(false, false);
MouseRegion r = mouse_region(false, true);
Window *w = r.window;
if (!w && !r.in_tab_bar) {
// fallback to last active window