|
@@ -6276,7 +6276,7 @@ DisplayServerX11::WindowID DisplayServerX11::_create_window(WindowMode p_mode, V
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (wd.is_popup || wd.no_focus || wd.embed_parent) {
|
|
|
+ if (wd.is_popup || wd.no_focus || (wd.embed_parent && !kde5_embed_workaround)) {
|
|
|
// Set Utility type to disable fade animations.
|
|
|
Atom type_atom = XInternAtom(x11_display, "_NET_WM_WINDOW_TYPE_UTILITY", False);
|
|
|
Atom wt_atom = XInternAtom(x11_display, "_NET_WM_WINDOW_TYPE", False);
|
|
@@ -6422,6 +6422,7 @@ DisplayServerX11::DisplayServerX11(const String &p_rendering_driver, WindowMode
|
|
|
KeyMappingX11::initialize();
|
|
|
|
|
|
xwayland = OS::get_singleton()->get_environment("XDG_SESSION_TYPE").to_lower() == "wayland";
|
|
|
+ kde5_embed_workaround = OS::get_singleton()->get_environment("XDG_CURRENT_DESKTOP").to_lower() == "kde" && OS::get_singleton()->get_environment("KDE_SESSION_VERSION") == "5";
|
|
|
|
|
|
native_menu = memnew(NativeMenu);
|
|
|
context = p_context;
|