You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Remove duplicate utf8() calls
This commit is contained in:
@@ -1939,7 +1939,8 @@ void DisplayServerX11::window_set_title(const String &p_title, WindowID p_window
|
||||
Atom _net_wm_name = XInternAtom(x11_display, "_NET_WM_NAME", false);
|
||||
Atom utf8_string = XInternAtom(x11_display, "UTF8_STRING", false);
|
||||
if (_net_wm_name != None && utf8_string != None) {
|
||||
XChangeProperty(x11_display, wd.x11_window, _net_wm_name, utf8_string, 8, PropModeReplace, (unsigned char *)p_title.utf8().get_data(), p_title.utf8().length());
|
||||
CharString utf8_title = p_title.utf8();
|
||||
XChangeProperty(x11_display, wd.x11_window, _net_wm_name, utf8_string, 8, PropModeReplace, (unsigned char *)utf8_title.get_data(), utf8_title.length());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user