Skip to content

Commit

Permalink
Fixed bug #586
Browse files Browse the repository at this point in the history
 Vincent Povirk      2009-09-26 16:58:32 PDT

patch for setting the input hint correctly
  • Loading branch information
slouken committed Sep 27, 2009
1 parent 7595428 commit f524519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11wm.c
Expand Up @@ -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;
Expand Down

0 comments on commit f524519

Please sign in to comment.