Skip to content

Commit

Permalink
Merge pull request #88519 from bruvzg/mac_conf_mode
Browse files Browse the repository at this point in the history
[macOS] Ignore window decorations in confined mouse mode to match other platforms.
  • Loading branch information
akien-mga committed Feb 18, 2024
2 parents 8cf1cfd + 606a475 commit d0f4f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/macos/display_server_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2559,7 +2559,7 @@
}

// Confine mouse position to the window, and update delta.
NSRect frame = [p_wd.window_object frame];
NSRect frame = [p_wd.window_view frame];
NSPoint conf_pos = r_mpos;
conf_pos.x = CLAMP(conf_pos.x + r_delta.x, 0.f, frame.size.width);
conf_pos.y = CLAMP(conf_pos.y - r_delta.y, 0.f, frame.size.height);
Expand Down

0 comments on commit d0f4f58

Please sign in to comment.