summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhondres <liu.gam3@gmail.com>2016-02-04 00:39:53 +0100
committerhondres <liu.gam3@gmail.com>2016-02-04 00:39:53 +0100
commit61c1b6f60e36c0db041264c337ddc1c8867a7204 (patch)
treeb79e70574a0e5ce8a90617eeaa5eebbef73c96dc
parentf4fa74fe28bc57205461c1937fb6f7ad15886a84 (diff)
x11: set _net_wm_name property
-rw-r--r--platform/x11/os_x11.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index 7c4c625dbc..0148872a0d 100644
--- a/platform/x11/os_x11.cpp
+++ b/platform/x11/os_x11.cpp
@@ -574,6 +574,10 @@ Point2 OS_X11::get_mouse_pos() const {
void OS_X11::set_window_title(const String& p_title) {
XStoreName(x11_display,x11_window,p_title.utf8().get_data());
+
+ Atom _net_wm_name = XInternAtom(x11_display, "_NET_WM_NAME", false);
+ Atom utf8_string = XInternAtom(x11_display, "UTF8_STRING", false);
+ XChangeProperty( x11_display, x11_window, _net_wm_name, utf8_string, 8, PropModeReplace, (unsigned char*) p_title.utf8().get_data(), p_title.utf8().length());
}
void OS_X11::set_video_mode(const VideoMode& p_video_mode,int p_screen) {