Skip to content

Commit

Permalink
Added an environment variable SDL_VIDEO_X11_WMCLASS
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 19, 2002
1 parent f176d22 commit 250f5cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/video/x11/SDL_x11video.c
Expand Up @@ -350,8 +350,12 @@ static void create_aux_windows(_THIS)
XClassHint *classhints;
classhints = XAllocClassHint();
if(classhints != NULL) {
classhints->res_name = "SDL_App";
classhints->res_class = "SDL_App";
char *classname = getenv("SDL_VIDEO_X11_WMCLASS");
if ( ! classname ) {
classname = "SDL_App";
}
classhints->res_name = classname;
classhints->res_class = classname;
XSetClassHint(SDL_Display, WMwindow, classhints);
XFree(classhints);
}
Expand Down

0 comments on commit 250f5cb

Please sign in to comment.