![]() |
BBC Micro
http://spectrum.myriadcolours.com/~marnanel/bbc-maemo
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.) |
Re: BBC Micro
Quote:
Other than that, it's a cool app :D |
Re: BBC Micro
Quote:
|
Re: BBC Micro
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). |
Re: BBC Micro
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. |
Re: BBC Micro
Whooa! Exile on the n900, that would be so cool!
|
Re: BBC Micro
Quote:
Code:
... Code:
... Yay, confirming: adding SDL_WM_SetIcon call makes the test case lose the input focus. |
Re: BBC Micro
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. |
Re: BBC Micro
Quote:
|
Re: BBC Micro
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 |
All times are GMT. The time now is 21:27. |
vBulletin® Version 3.8.8