[Evaluate] Keep MediaPortal Always On Top Option [second display] (1 Viewer)

AlexRozen

MP Donator
  • Premium Supporter
  • August 27, 2009
    16
    1
    Russian Federation Russian Federation
    MediaPortal Version: 1.1.0 BETA-1 rev23491 + svn-12-24-2009 Rev24553
    Windows Version: Windows 7 x64
    CPU Type: Intel Core 2 Duo
    Memory: 4Gb
    Motherboard: ASUS P5BE Plus
    Video Card: ATI Radeon HD4870 1GB
    Video Card Driver: ATUI Catalys 9.12
    Remote: MCE Remote
    TV: Sony Bravia 32"
    TV - HTPC Connection: HDMI 15m
    Additional Software:IR Server Suite - Test Build 1.4.2.3281

    Hello! I am using MP in dual-screen configuration. My goal is to have MP on the secondary display and all apps on the main desktop to work independently.

    So, my MP is configured to start in fullscreen mode on the second display (extended desktop), "Keep MediaPortal Always On Top" option is disabled, IRSS is configured not to require Media Portal to be focused.

    All works independently, just I want it to be like.

    But when the button "Minimize all windows" is pressed, MediaPortal on the second display is minimized too. Also the occasionally dragged from the main desktop window may overlap the MediaPortal output.

    So, I have tried to use the option "Keep MediaPortal Always On Top", but it seems to be useless for me -- MediaPortal window becomes not topmost, but it becomes to be autofocused and reactivated few times per second. So, I can't use keyboard-driven apps on my primary desktop during the MP is running in such configuration :(

    How can this behaviour be fixed? I want that option to make MP be topmost non-minimisable app, but I don't need it to be always active app.
     

    AlexRozen

    MP Donator
  • Premium Supporter
  • August 27, 2009
    16
    1
    Russian Federation Russian Federation
    Ok. Let's fix it.

    I have digged inside the sources and found out the piece of code that gained such behavior.

    It's a pity, but the issue can't be fixed via any configuration and plugin changes. Only code fix.
    I have built my own version of MediaPortal.exe with such fix. Now MediaPortal works seamlessly on the second display in full-screen and in always-on-top mode without possible minimizing, overlapping and without focus capturing.
    And just the little bonus -- it now provides the normal-speed GUI-animations in Topmost Unfocused mode.

    But I suppose, that it may be better to create the new configuration check in the General section for such behavior.

    P.S. my "debug" patch is attached. It is based on the #24701 revision. May be somebody can propagate that fix into the proper place?
     

    Attachments

    Mr Hipp

    Retired Team Member
  • Premium Supporter
  • April 2, 2006
    1,261
    188
    52
    Malmö
    Sweden Sweden
    This is really a good example of a bad patch. We do not want to have code in MP like this:
    Code:
           // in minitv mode allow to loose focus
           if ((ActiveForm != this) && (alwaysOnTop) && !miniTvMode)
           {
             //Activate();
           }

    If this is ever to be considered, please clean-up the patch.
     

    AlexRozen

    MP Donator
  • Premium Supporter
  • August 27, 2009
    16
    1
    Russian Federation Russian Federation
    This is really a good example of a bad patch. We do not want to have code in MP like this:
    Code:
           // in minitv mode allow to loose focus
           if ((ActiveForm != this) && (alwaysOnTop) && !miniTvMode)
           {
             //Activate();
           }
    If this is ever to be considered, please clean-up the patch.
    I am sure that it is true. It was the debug code, illustrating the idea, originally posted not in the contributor's place.
    You can see in my second post, that I suppose the need of new config option for this behavior.
    I am the novice with MP sources, so I am not sure, that I can provide the correct patch for such a complex change.

    But it seems, that I should try.
     

    tontsa

    Retired Team Member
  • Premium Supporter
  • April 7, 2007
    108
    17
    Finland Finland
    I'm happy with this patch. Video keeps playing in full screen even if you do Win+M in other screen. So +1 from me.
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    Original poster has not been active on forums for a few months so will send a PM but in the meantime...

    I do not have a second screen to test but could do with a little more info...

    Does the patch simply have an option to keep MP on top but not focused? What happens if MP is running on the first screen does this change behaviour there at all.

    I don't want to add more config options if we can avoid it so need to understand exactly what this patch is for.

    Anyone?
     

    AlexRozen

    MP Donator
  • Premium Supporter
  • August 27, 2009
    16
    1
    Russian Federation Russian Federation
    I am sorry for my sleep time. :)

    To tell the truth, I am not using MP right now because of my hardware changes, but I will check it as soon as possible.

    Merry christmas everybody!

    Does the patch simply have an option to keep MP on top but not focused? What happens if MP is running on the first screen does this change behaviour there at all.

    I don't want to add more config options if we can avoid it so need to understand exactly what this patch is for.

    Anyone?

    Yes, this patch addes the option that does not force MP to be permanently refocused when the "keep on top" option is selected.

    Also this patch keeps the smooth animation when MP window is not focused, but the "keep on top" option is selected.
    Otherwise the unfocused window has a very ugly animation.

    Sorry for my pour English.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    H 1.24.0 MP 1.24 high CPU utilization when 'Keep MediaPortal always on top' option enabled Bugreports 4
    L Service keeps crashing General 3
    H MP2 database won't keep in synch with recordings General 8
    B Server service on the service monitor keeps stopping randomly. Client can't see server status. 2.2 Archive 5
    B Episodes to Keep and Priority for Schedules in MP2 General 0
    Symphy Version 0.2.9.0 for MediaPortal 1.25 ASIO music player 0
    doskabouter Installing mediaportal MediaPortal 1 3
    A Mediaportal Allgemeines Support- und Diskussionsforum 0
    G Update von MediaPortal Installationsprobleme? 0
    ajs [News] MediaPortal 1 - 1.25 Released! News and Announcements 1
    horned_reaper Standby is prevented by MediaPortal client General Support 0
    U [solved] MediaPortal crashing on startup General Support 10
    g0rsq Info box randomly popping up when watching TV or other video MediaPortal 2 Newcomers Forum 1
    high [unanswered] Hallo möchte gerne Mediaportal. nutzen kann mich jemand anrufen? contactform feedback and requests 2
    ajs [News] MediaPortal 1.25 Pre-Release ready for testing! News and Announcements 0
    ajs [Rejected] Mediaportal Codename MediaPortal 1 41
    M 2nd (Touch-)Display Support on MediaPortal 2 such MPDisplay++? General 2
    N Steam release of MediaPortal MediaPortal 1 Talk 0
    torone Dritter versuch mit Mediaportal 2 Allgemeines Support- und Diskussionsforum 1
    M Fehlerhafter Link auf der aktuellen MediaPortal Seite Page- und Forumsfeedback 0
    mickb [solved] Mediaportal Stops working General Support 5
    J [solved] Newbie to MediaPortal 2 - Cannot open/run TV programs Newcomers Forum 4
    atlantic How to use Spotify inside Mediaportal? Listen Music 18
    horned_reaper MediaPortal configuration error log message General Support 1
    Rob Hexenmeister Mediaportal Properties #plot etc... General Support 3
    Similar threads

























    Top Bottom