Kodi Community Forum
[Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) (/showthread.php?tid=258640)

Pages: 1 2 3 4 5


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - fabd - 2016-07-05

can anyone explain me how to setup these patch a windows kodi 16.1 ?

Do i need to DL the full kodi patched version and installed it ??

thanks


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - HTPC-ASR - 2016-10-04

up to Kodi 17! Smile


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Shine - 2016-10-04

Here's the patch for Krypton. I'll be adding compiled builds once I consider v17 stable enough for my daily use.


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - HTPC-ASR - 2016-10-04

(2016-10-04, 10:29)Shine Wrote: Here's the patch for Krypton. I'll be adding compiled builds once I consider v17 stable enough for my daily use.

You are the boss! Smile

Thank you, tell us when compiled builds will be ready and i forward your work to my friend...we are waiting! Smile

I really don't understand why they not consider your work for official release...i asked for it but....no answer.


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Shine - 2016-10-04

(2016-10-04, 16:22)HTPC-ASR Wrote: I really don't understand why they not consider your work for official release...i asked for it but....no answer.
I never PR'd it, that's why.


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Paxxi - 2016-10-07

As one of the windows developers I'm not sure this belongs in Kodi, we try to avoid too many settings for specific use cases and non-htpc setups. It can be achieved using e.g. Autoit3 https://www.autoitscript.com/autoit3/docs/functions/WinSetOnTop.htm


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Shine - 2016-10-08

(2016-10-07, 20:20)Paxxi Wrote: As one of the windows developers I'm not sure this belongs in Kodi, we try to avoid too many settings for specific use cases and non-htpc setups. It can be achieved using e.g. Autoit3 https://www.autoitscript.com/autoit3/docs/functions/WinSetOnTop.htm
Nope, does not work, not in true fullscreen mode at least, which is the primary usage scenario for this patch. In true fullscreen mode, vanilla Kodi actively minimizes as soon as it loses focus, first of all to mimic the old DX9 behavior and second, to prevent DXGI_STATUS_OCCLUDED which would result in auto-switching back to fake fullscreen mode.

Either way, if you read my previous posts, I cannot fully prevent DXGI_STATUS_OCCLUDED when other topmost windows try to compete with Kodi, so I don't consider the patch merge-worthy at this time anyway.

P.S. Even in fake fullscreen mode, there are so many places in the code where vanilla Kodi would reset the window properties to non-topmost, that a simple one-time change to the topmost flag using Autoit or any other way wouldn't really work.


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Shine - 2016-10-28

(2016-10-04, 06:32)HTPC-ASR Wrote: up to Kodi 17! :)
See first post. Enjoy!


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Blackkatt - 2016-11-02

About time someone did something about this. Trying it out now. Many thanks Shine!

(2016-10-07, 20:20)Paxxi Wrote: As one of the windows developers I'm not sure this belongs in Kodi, we try to avoid too many settings for specific use cases and non-htpc setups. It can be achieved using e.g. Autoit3 https://www.autoitscript.com/autoit3/docs/functions/WinSetOnTop.htm

You are dead wrong on this. It's so needed. Should be default.


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Blackkatt - 2016-11-02

Can't delete my own post. That's so lame


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - firewater - 2016-11-11

This is really cool, but is there any way you can turn this into an add-on? Devs are bound to abandon their projects at some moment, and since this looks like won't get added to the official build, we would get stuck forever on whatever was the last version you updated.

edit: oh boy, it doesn't work for my purposes. I run a .bat through Kodi's autoexec.py with the following code:

Code:
import xbmc
xbmc.executebuiltin('XBMC.System.Exec(""C:\\Users\\firewater\\Kodi\\portable_data\\userdata\\nfo.bat"")')

Losing it, still.


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Shine - 2016-11-11

(2016-11-11, 06:41)firewater Wrote: This is really cool, but is there any way you can turn this into an add-on?
Unfortunately, no, as this changes Kodi core behavior, which cannot be achieved from within an add-on.

(2016-11-11, 06:41)firewater Wrote: Devs are bound to abandon their projects at some moment, and since this looks like won't get added to the official build, we would get stuck forever on whatever was the last version you updated.
Yes, that might of course happen once I lose interest in Kodi or my use case changes. However, the benefit of Open Source is that everybody can read, change or re-use the code. So you can always take my patch and adapt it to new versions, improve it, do whatever you like with it, as long as you comply with the GPLv2.

(2016-11-11, 06:41)firewater Wrote: edit: oh boy, it doesn't work for my purposes. I run a .bat through Kodi's autoexec.py with the following code:

Code:
import xbmc
xbmc.executebuiltin('XBMC.System.Exec(""C:\\Users\\firewater\\Kodi\\portable_data\\userdata\\nfo.bat"")')

Losing it, still.
Oops, my bad. I forgot to take care of restoring topmost state after running external programs (which is what you are doing). I'll look into it, should be fixed in the next build.

In the meantime, you could use the following code instead, if you don't need to see the output of your BAT file:

Code:
import subprocess
subprocess.call(['C:\\Users\\firewater\\Kodi\\portable_data\\userdata\\nfo.bat'])

This won't minimize Kodi while the BAT is running, so the topmost state isn't lost.


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - MrDartay - 2016-11-18

Hello and thank you for providing this custom build! It's working nicely on my triple monitor setup.

I have noticed however, that sometimes when I am running this custom build, suddenly the windows on my other monitors (win explorer, chrome, notepad etc.) become transparent and unclickable/unusable/undraggable. The only thing that helps in this case is exiting Kodi which restores functionality to the windows on the other monitors. I am running Windows 7.

Before trying this build I was running into issues with Kodi (set to windowed fullscreen) jumping to other monitors for no reason. This hasn't happened after trying your build. Could the two things be related? Hope to hear from you.


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Shine - 2016-12-12

(2016-11-18, 14:06)MrDartay Wrote: Before trying this build I was running into issues with Kodi (set to windowed fullscreen) jumping to other monitors for no reason. This hasn't happened after trying your build. Could the two things be related? Hope to hear from you.
You should first try to get this original problem fixed, as this sounds like a problem with your system, not with Kodi. If you're confident that it's a problem with Kodi, you might want to submit a bug report. Please do not use my build when submitting a bug report, use the official version instead - my build is completely unsupported and no one will help you!


RE: [Windows] Keep Kodi Always-on-Top (instead of minimizing on focus loss) - Cryps - 2016-12-13

Any chance this can be patched to Isengard without DX11?

Great work btw.