Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

libmythui: Stop the main window background from automatically painting.

This sets 2 properties on the MythMainWindow widget (N.B. not the
painter widget) to prevent Qt from continually repainting the theme

Mythfrontend startup is now noticably faster and the brief flash of the
theme background when starting video playback is gone, giving a slight
speed improvement there as well.

I can't see any adverse effects on the several frontends tested with a
variety of different video drivers and render options.
  • Loading branch information...
commit 72976f3bbd1164e4d4f0778e33c6b4349f5a098a 1 parent fed0d91
mark-kendall authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  mythtv/libs/libmythui/mythmainwindow.cpp
2  mythtv/libs/libmythui/mythmainwindow.cpp
@@ -850,6 +850,8 @@ void MythMainWindow::Init(void)
+ setAttribute(Qt::WA_NoSystemBackground);
+ setAutoFillBackground(false);
if (!GetMythDB()->GetNumSetting("HideMouseCursor", 0))
setMouseTracking(true); // Required for mouse cursor auto-hide
Please sign in to comment.
Something went wrong with that request. Please try again.