From f5245191ae8e6bbbabc4ddb5e1f430c48504b57b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 27 Sep 2009 01:31:30 +0000 Subject: [PATCH] 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11wm.c b/src/video/x11/SDL_x11wm.c index 1c09c0e0a..99bd0ab8d 100644 --- a/src/video/x11/SDL_x11wm.c +++ b/src/video/x11/SDL_x11wm.c @@ -224,9 +224,10 @@ void X11_SetIcon(_THIS, SDL_Surface *icon, Uint8 *mask) /* Set the window icon to the icon pixmap (and icon window) */ wmhints = XAllocWMHints(); - wmhints->flags = (IconPixmapHint | IconMaskHint); + wmhints->flags = (IconPixmapHint | IconMaskHint | InputHint); wmhints->icon_pixmap = icon_pixmap; wmhints->icon_mask = mask_pixmap; + wmhints->input = True; if(icon_window != None) { wmhints->flags |= IconWindowHint; wmhints->icon_window = icon_window;