Browse Source

Merge pull request #1542 from jotson/wmclass

Reverted change to classHint
Juan Linietsky 10 years ago
parent
commit
c68563aeb4
1 changed files with 2 additions and 3 deletions
  1. 2 3
      platform/x11/os_x11.cpp

+ 2 - 3
platform/x11/os_x11.cpp

@@ -300,9 +300,8 @@ void OS_X11::initialize(const VideoMode& p_desired,int p_video_driver,int p_audi
 	/* set the name and class hints for the window manager to use */
 	classHint = XAllocClassHint();
 	if (classHint) {
-		char wmclass[] = "Godot";
-		classHint->res_name = wmclass;
-		classHint->res_class = wmclass;
+		classHint->res_name = "Godot";
+		classHint->res_class = "Godot";
 	}
 	XSetClassHint(x11_display, x11_window, classHint);
 	XFree(classHint);