Browse Source

X11: Send IME update notification deferred

HolonProduction 1 year ago
parent
commit
bf45d3ae24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/linuxbsd/x11/display_server_x11.cpp

+ 1 - 1
platform/linuxbsd/x11/display_server_x11.cpp

@@ -3875,7 +3875,7 @@ void DisplayServerX11::_xim_preedit_draw_callback(::XIM xim, ::XPointer client_d
 			ds->im_selection = Point2i();
 		}
 
-		OS_Unix::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_OS_IME_UPDATE);
+		OS_Unix::get_singleton()->get_main_loop()->call_deferred(SNAME("notification"), MainLoop::NOTIFICATION_OS_IME_UPDATE);
 	}
 }