Thread: BBC Micro
View Single Post
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#7
Originally Posted by marnanel View Post
The problem is that there's a bit in WM_HINTS which (in both apps) isn't set. You can see this using "xprop -id 0x..."
No, thank you instead, you're completely right (and sorry for dirtying your thread, but at least now I know I should probably file a bug about this...). The problem seems to be the missing WM_HINTS bit, but, while on DOSBox that bit is not set:
Code:
...
WM_CLASS(STRING) = "dosbox", "dosbox"
WM_HINTS(WM_HINTS):
		bitmap id # to use for icon: 0xc0000d
		bitmap id # of mask for icon: 0xc0000b
It is definitely set on a simpler SDL testcase I made:
Code:
...
WM_CLASS(STRING) = "test-i386", "test-i386"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
I have this suspicion this may be related to the window icon, but this is a wild guess just by looking at the above.

Yay, confirming: adding SDL_WM_SetIcon call makes the test case lose the input focus.

Last edited by javispedro; 2009-09-16 at 17:37. Reason: confirming
 

The Following 2 Users Say Thank You to javispedro For This Useful Post: