Kodi Community Forum
Focus Stealing - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: Focus Stealing (/showthread.php?tid=165511)



Focus Stealing - zuiko - 2013-05-23

I leave my HTPC running XBMC 24x7... the problem is something will occasionally pop up and steal focus when I am not looking. And then when someone turns on the TV they see the desktop with a minimized XBMC. Then I have to go and restore the XBMC window with the keyboard and mouse because I don't have a way to do it with the remote. I turned off all systray notifications which cut down on this behavior, but it still happens occasionally. As far as I know, there's no way for me to know what is stealing focus unless I witness it happen... and it may only happen once or twice a week.

I'm thinking an easy fix might be if there was a simple add-on that would check the window status and give focus back to XBMC every x minutes. Anything like that exist? Any other suggestions?

Thanks.


RE: Focus Stealing - Ned Scott - 2013-05-23

FocusBitch (wiki)


RE: Focus Stealing - Kib - 2013-05-23

Moved to Windows forum.


RE: Focus Stealing - baijuxavior - 2013-05-23

I wrote this little program for this feature. http://forum.xbmc.org/showthread.php?tid=136798

It has additional features also. If you don't want these features then just edit the script.


RE: Focus Stealing - jjd-uk - 2013-05-23

Better solution is to try & find what's causing it, so maybe try something like WinFocusMon


RE: Focus Stealing - WiSo - 2013-05-23

No additional app needed. Just turn on debug logging and have a look into it when it happens again. You should see something like:
18:32:42 T:6240 DEBUG: CWinEventsWin32::WndProc: Focus switched to process [path to exe which is running]