[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

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);