WIP Windows DirectX 11 upgrade test thread
(2015-06-19, 10:17)afedchin Wrote: If you was able to work on screen #0 while Kodi in full screen on screen #1 then Kodi is not in fullscreen actually. Kodi "thinks" what it stays in full screen but OS (DXGI actually) switch it silently to windowed mode. There is not possible ways to stay in true fullscreen if window is not foreground. Currently Kodi handles this and continue works.

Figured it out.

With my patch (if also using the test batch), Kodi can set topmost and full screen state, but somehow it ends up in WA_INACTIVE state. So neither a WM_KILLFOCUS nor a WM_ACTIVATE message will reach it when I focus another window, because it wasn't active in the first place. Therefore, it keeps running just like I want it to. With your patch, Kodi starts focussed/active, therefore all WMs will reach it and it behaves "as designed".

So if I remove all the WM_SETFOCUS/WM_KILLFOCUS and WA_INACTIVE handling, I get it to behave like I want it to, ie. I can work on display #0 while Kodi is in true full screen on display #1.

Is there a reason why you replicated the DX9 behavior "minimize-on-losing-focus" in the DX11 version, although not necessary?

Have a look at this patch: http://pastebin.com/HsTKWPzM
First commit could likely remove even more obsolete code, but I tried to remove as little as possible (for now).
As for the second commit, there might be a more elegant way to do it, but I don't really know anything about DirectX coding...
Reply
 
Thread Rating:
  • 6 Vote(s) - 3.5 Average


Messages In This Thread
New build 14/02/2015 - by afedchin - 2015-02-14, 15:16
RE: Windows DirectX 11 upgrade test thread - by Shine - 2015-06-20, 14:40


Logout Mark Read Team Forum Stats Members Help
Windows DirectX 11 upgrade test thread3.56