ProfessorKaos64/RetroRig — pull request #136 by beaumanvienna (2014-10-23 21:06:30+00:00)
Title: xbmc pl11

[New in xbmc](https://github.com/beaumanvienna/xbmc/commit/b8dc0b668557a6a889c1c6dbc87860cb3aa4c4f9):

* path of `setResolution` changed from `~/.retrorig/RetroRig/scripts` to `~/.retrorig/scripts`
* new function raiseMainWindow called in toggleFullscreenRoot ()
* new splash screens

I've added `XRaiseWindow` from XLib to `toggleFullscreenRoot`. That's the function that is called from RCB before and after a game launch that had put it in windowed mode before. In RCB I've commented the first of the two calls. So now only on game exit `toggleFullscreenRoot` will be called. Toggling fullscreen mode is still disabled, xbmc will only be raised to the foreground.

I've also deleted some compiled python scripts and my former attempt to raise xbmc `bringOnTop.sh`.

Furthermore I've changed `setup.sh` to test for existing system files before copying (rescan/retro-icon.ong/startXBMC.sh and so on). Folder `$scriptdir/scripts` is not linked to `$rootdir/scripts anymore`, only to `$config_home/scripts`. This way `scripts` is hidden from the end-user.

This should fix your issue with xbmc and the Ubuntu launch or status bar. I had difficulties reproducing this bug tonight, though I've seen this myself many times before. I only managed to lower xbmc in windowed mode behind a different application. On game exit it was correctly moved to the top.

Man, it's good you mentioned this bug, it's been annoying me for a long time. And I'm glad that it's finally squashed! I'm pretty positive that this will work with all desktops and window managers.