summaryrefslogtreecommitdiffstats
path: root/platform/x11/os_x11.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-19 13:43:28 +0200
committerGitHub <noreply@github.com>2017-08-19 13:43:28 +0200
commit08eada8f4351dcf4ec433ddffb7965aee308a15e (patch)
treeb0ddc3a8c535b3b4813fcb4b10bcaa08f9592d65 /platform/x11/os_x11.cpp
parent43d91faa2e0e3ea8cc554b1842829f7c7d35ee76 (diff)
parent398e0930dcec5a870fa2ee7a1f81a8c8b3158c33 (diff)
downloadredot-engine-08eada8f4351dcf4ec433ddffb7965aee308a15e.tar.gz
Merge pull request #10430 from radenling/fix-wm-class
Set the X11 class hint before mapping the window
Diffstat (limited to 'platform/x11/os_x11.cpp')
-rw-r--r--platform/x11/os_x11.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index ade3a0a0c5..a23f2f1320 100644
--- a/platform/x11/os_x11.cpp
+++ b/platform/x11/os_x11.cpp
@@ -351,20 +351,9 @@ void OS_X11::initialize(const VideoMode &p_desired, int p_video_driver, int p_au
XChangeWindowAttributes(x11_display, x11_window, CWEventMask, &new_attr);
- XClassHint *classHint;
-
/* set the titlebar name */
XStoreName(x11_display, x11_window, "Godot");
- /* set the name and class hints for the window manager to use */
- classHint = XAllocClassHint();
- if (classHint) {
- classHint->res_name = (char *)"Godot_Engine";
- classHint->res_class = (char *)"Godot";
- }
- XSetClassHint(x11_display, x11_window, classHint);
- XFree(classHint);
-
wm_delete = XInternAtom(x11_display, "WM_DELETE_WINDOW", true);
XSetWMProtocols(x11_display, x11_window, &wm_delete, 1);