mirror of https://github.com/godotengine/godot
[macOS] Hide input accessory popups when no text control selected.
This commit is contained in:
parent
80a4af1cc7
commit
6b67059d94
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue