# HG changeset patch # User Sam Lantinga # Date 1029728444 0 # Node ID 8a687496061f875d241d95fb4b0a87b76dcef17b # Parent 323c766f5a467c88c055014e45be6bf95733a36a Added an environment variable SDL_VIDEO_X11_WMCLASS diff -r 323c766f5a46 -r 8a687496061f src/video/x11/SDL_x11video.c --- a/src/video/x11/SDL_x11video.c Mon Aug 19 03:09:25 2002 +0000 +++ b/src/video/x11/SDL_x11video.c Mon Aug 19 03:40:44 2002 +0000 @@ -350,8 +350,12 @@ 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); }