1
0
Fork 0

[macOS] Hide input accessory popups when no text control selected.

This commit is contained in:
Pāvels Nadtočajevs 2026-01-30 08:45:08 +02:00
parent 80a4af1cc7
commit 6b67059d94
No known key found for this signature in database
GPG Key ID: 8413210218EF35D2
1 changed files with 4 additions and 0 deletions

View File

@ -258,6 +258,10 @@
}
DisplayServerMacOS::WindowData &wd = ds->get_window(window_id);
if (!wd.im_active) {
return NSMakeRect(0, 0, 0, 0);
}
const NSRect content_rect = [wd.window_view frame];
const float scale = ds->screen_get_max_scale();
NSRect point_in_window_rect = NSMakeRect(wd.im_position.x / scale, content_rect.size.height - (wd.im_position.y / scale) - 1, 0, 0);