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) |
986 | 986 | flags |= Qt::MSWindowsOwnDC; |
987 | 987 | #endif |
988 | 988 | |
989 | | setWindowFlags(flags); |
990 | 989 | |
991 | 990 | if (d->does_fill_screen && !GetMythUI()->IsGeometryOverridden()) |
992 | 991 | { |
993 | 992 | LOG(VB_GENERAL, LOG_INFO, "Using Full Screen Window"); |
994 | 993 | setWindowState(Qt::WindowFullScreen); |
| 994 | flags |= Qt::WindowStaysOnTopHint; |
995 | 995 | } |
996 | 996 | |
| 997 | setWindowFlags(flags); |
| 998 | |
997 | 999 | d->screenRect = QRect(d->xbase, d->ybase, d->screenwidth, d->screenheight); |
998 | 1000 | d->uiScreenRect = QRect(0, 0, d->screenwidth, d->screenheight); |
999 | 1001 | |