Fixed bug #586 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Sep 2009 01:31:30 +0000
branchSDL-1.2
changeset 4247ee58103d5354
parent 4246 8b8314cc34a6
child 4248 a9c6e65c1416
Fixed bug #586

Vincent Povirk 2009-09-26 16:58:32 PDT

patch for setting the input hint correctly
src/video/x11/SDL_x11wm.c
     1.1 --- a/src/video/x11/SDL_x11wm.c	Sat Sep 26 23:17:08 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11wm.c	Sun Sep 27 01:31:30 2009 +0000
     1.3 @@ -224,9 +224,10 @@
     1.4  
     1.5  	/* Set the window icon to the icon pixmap (and icon window) */
     1.6  	wmhints = XAllocWMHints();
     1.7 -	wmhints->flags = (IconPixmapHint | IconMaskHint);
     1.8 +	wmhints->flags = (IconPixmapHint | IconMaskHint | InputHint);
     1.9  	wmhints->icon_pixmap = icon_pixmap;
    1.10  	wmhints->icon_mask = mask_pixmap;
    1.11 +	wmhints->input = True;
    1.12  	if(icon_window != None) {
    1.13  		wmhints->flags |= IconWindowHint;
    1.14  		wmhints->icon_window = icon_window;