Ticket #12137: 0001-Force-mythfrontend-to-be-on-top-when-running-in-full.patch

File 0001-Force-mythfrontend-to-be-on-top-when-running-in-full.patch, 1.2 KB (added by superm1@…, 10 years ago)
  • mythtv/libs/libmythui/mythmainwindow.cpp

    From 8d5fcfec785ffa93f049f6c2679da47e5f960100 Mon Sep 17 00:00:00 2001
    From: Mario Limonciello <superm1@ubuntu.com>
    Date: Fri, 9 May 2014 14:38:34 -0500
    Subject: [PATCH] Force mythfrontend to be on top when running in fullscreen
     mode.
    
    Prevents update manager, apport and anything else from popping up
    above mythtv and bothering.
    ---
     mythtv/libs/libmythui/mythmainwindow.cpp |    4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmythui/mythmainwindow.cpp b/mythtv/libs/libmythui/mythmainwindow.cpp
    index c4794a0..0b85bd5 100644
    a b void MythMainWindow::Init(QString forcedpainter) 
    986986    flags |= Qt::MSWindowsOwnDC;
    987987#endif
    988988
    989     setWindowFlags(flags);
    990989
    991990    if (d->does_fill_screen && !GetMythUI()->IsGeometryOverridden())
    992991    {
    993992        LOG(VB_GENERAL, LOG_INFO, "Using Full Screen Window");
    994993        setWindowState(Qt::WindowFullScreen);
     994        flags |= Qt::WindowStaysOnTopHint;
    995995    }
    996996
     997    setWindowFlags(flags);
     998
    997999    d->screenRect = QRect(d->xbase, d->ybase, d->screenwidth, d->screenheight);
    9981000    d->uiScreenRect = QRect(0, 0, d->screenwidth, d->screenheight);
    9991001