|
#1
|
||||
|
||||
|
Ten minutes' hacking around brings the Beeb to the N900. It has some keyboard focus issues which need seeing to. Also, beebem uses f12 to bring up an emulator menu, and the N900 has no f12. But with a little work we could see Elite running on this thing. (If this was ever a serious project, some serious thought would have to be given to copyright issues about the MOS, the DFS, and BASIC: you can't do anything without the MOS, you can't do much without BASIC, and life without the DFS is painful. But they are all still © Acorn, whoever that is these days.) |
|
#2
|
||||
|
||||
|
I'm also having those (DOSBox), and for now I have not yet identified the reason (to be honest I've not put too much though into the issue yet). So if you can guess why it seems to affect some apps only please tell
![]() Other than that, it's a cool app
|
| The Following User Says Thank You to javispedro For This Useful Post: | ||
|
#3
|
||||
|
||||
|
Quote:
|
| The Following User Says Thank You to marnanel For This Useful Post: | ||
|
#4
|
|||
|
|||
|
Quote:
![]() Just kidding (about the implicit license), but Acorn was behind not only the beloved Beeb but also the incredibly successful ARM CPU (almost 3 billion a year sold.. quite a lot more than Intel has managed so far).
__________________
N800/OS2007|N900/Maemo5 -- Metalayer-crawler delenda est. -- Current state: Fed up with everything MeeGo. |
|
#5
|
||||
|
||||
|
Quote:
![]() 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...": For Beebem: WM_HINTS(WM_HINTS):whereas for, say, mediaplayer we'd get: WM_HINTS(WM_HINTS):I believe this is a problem with libsdl, but I haven't dug down any further to find why it's not setting this bit. |
| The Following User Says Thank You to marnanel For This Useful Post: | ||
|
#6
|
||||
|
||||
|
Whooa! Exile on the n900, that would be so cool!
__________________
Life on the edge....always waiting to fall |
|
#7
|
||||
|
||||
|
Quote:
Code:
... WM_CLASS(STRING) = "dosbox", "dosbox" WM_HINTS(WM_HINTS): bitmap id # to use for icon: 0xc0000d bitmap id # of mask for icon: 0xc0000b Code:
... WM_CLASS(STRING) = "test-i386", "test-i386" WM_HINTS(WM_HINTS): Client accepts input or input focus: True 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 |
|
#8
|
||||
|
||||
|
Quote:
One rather interesting point is that a very quick perusal of Metacity's sources seems to indicate that Metacity will give focus if WM_TAKE_FOCUS is present or InputHint is set. Matchbox2, however, appears to give focus if and only if InputHint is set (it only checks WM_TAKE_FOCUS in order to tell whether to send WM_TAKE_FOCUS when focussing a window). According to the ICCCM, having WM_TAKE_FOCUS present but not InputHint means that a client "wants to prevent the window manager from setting the input focus to any of its windows", so Matchbox2 is technically correct here. It is possible, of course, that Metacity behaves that way because it solves some problem in a particular subset of clients, so perhaps it would be good to change Matchbox2's behaviour. Either way, it wouldn't solve the current problem, since the SDL apps in question set neither WM_TAKE_FOCUS nor InputHint. |
| The Following 3 Users Say Thank You to marnanel For This Useful Post: | ||
|
#9
|
||||
|
||||
|
Woot, good catch!
|
|
#10
|
||||
|
||||
|
I believe this is "our man":
SDL_x11wm.c, line 232 As a workaround, ifdef'ing the SDL_WM_SetIcon call out will work, since Maemo gets the icons from other sources either way. If you believe Matchbox is right here, then this is a SDL bug :S Last edited by javispedro; 2009-09-16 at 17:58. Reason: fixed link |
| The Following User Says Thank You to javispedro For This Useful Post: | ||
![]() |
| Tags |
| bbc micro, bugs, n900, sdl |
|
|