diff options
author | Ken Moore <ken@ixsystems.com> | 2017-03-03 14:25:29 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-03-03 14:25:29 -0500 |
commit | e51eb7f9b51dc29be83a00abf2ebf95cc17d0ba7 (patch) | |
tree | 65276d138bec55ca4a37e5788269aaf027eb0a9f /src-qt5/core/libLumina/RootWindow.cpp | |
parent | Update the .gitignore file a bit. (diff) | |
download | lumina-e51eb7f9b51dc29be83a00abf2ebf95cc17d0ba7.tar.gz lumina-e51eb7f9b51dc29be83a00abf2ebf95cc17d0ba7.tar.bz2 lumina-e51eb7f9b51dc29be83a00abf2ebf95cc17d0ba7.zip |
Another large batch of updates to the Native Window "plumbing":
1) Handle all property changes in bulk groups for efficiency
2) Add simplification functions for changing single properties.
3) Automatically prune redundant property settings from signals
4) Add another property or two, and simplify the number of "extra" signals/functions for non-property changes/requests.
5) Starting cleaning up the new NativeWindowSystem class to use the new plumbing, and get it ready for the XCB "guts" to be copied in.
Diffstat (limited to 'src-qt5/core/libLumina/RootWindow.cpp')
-rw-r--r-- | src-qt5/core/libLumina/RootWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/RootWindow.cpp b/src-qt5/core/libLumina/RootWindow.cpp index 0758653b..b1f740d3 100644 --- a/src-qt5/core/libLumina/RootWindow.cpp +++ b/src-qt5/core/libLumina/RootWindow.cpp @@ -11,7 +11,7 @@ #include <QDebug> // === PUBLIC === -RootWindow::RootWindow() : QMdiArea(0){ //QWidget(0, Qt::Window | Qt::BypassWindowManagerHint | Qt::WindowStaysOnBottomHint){ +RootWindow::RootWindow() : QWidget(0, Qt::Window | Qt::BypassWindowManagerHint | Qt::WindowStaysOnBottomHint){ qRegisterMetaType<WId>("WId"); autoResizeTimer = 0; } @@ -191,7 +191,7 @@ void RootWindow::CloseWindow(WId win){ void RootWindow::paintEvent(QPaintEvent *ev){ //qDebug() << "RootWindow: PaintEvent:" << ev->rect(); //<< QDateTime::currentDateTime()->toString(QDateTime::ShortDate); bool found = false; - QPainter painter(this->viewport()); + QPainter painter(this); for(int i=0; i<WALLPAPERS.length(); i++){ if(WALLPAPERS[i].area.intersects(ev->rect()) ){ found = true; |