Commit 86d23fea authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #586

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

patch for setting the input hint correctly

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403918
parent 0f710e40
...@@ -224,9 +224,10 @@ void X11_SetIcon(_THIS, SDL_Surface *icon, Uint8 *mask) ...@@ -224,9 +224,10 @@ void X11_SetIcon(_THIS, SDL_Surface *icon, Uint8 *mask)
/* Set the window icon to the icon pixmap (and icon window) */ /* Set the window icon to the icon pixmap (and icon window) */
wmhints = XAllocWMHints(); wmhints = XAllocWMHints();
wmhints->flags = (IconPixmapHint | IconMaskHint); wmhints->flags = (IconPixmapHint | IconMaskHint | InputHint);
wmhints->icon_pixmap = icon_pixmap; wmhints->icon_pixmap = icon_pixmap;
wmhints->icon_mask = mask_pixmap; wmhints->icon_mask = mask_pixmap;
wmhints->input = True;
if(icon_window != None) { if(icon_window != None) {
wmhints->flags |= IconWindowHint; wmhints->flags |= IconWindowHint;
wmhints->icon_window = icon_window; wmhints->icon_window = icon_window;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment