[kwin] Call QQuickWindow::setDefaultAlphaBuffer before creating first window
We want to have the QQuickWindows using translucency.
This commit is contained in:
parent
5d5673ebc0
commit
a360d0b96e
1 changed files with 4 additions and 0 deletions
4
main.cpp
4
main.cpp
|
@ -47,6 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include <QDialogButtonBox>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QQuickWindow>
|
||||
#include <QStandardPaths>
|
||||
#include <QVBoxLayout>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
@ -222,6 +223,9 @@ void Application::start()
|
|||
});
|
||||
connect(&owner, SIGNAL(lostOwnership()), SLOT(lostSelection()));
|
||||
connect(&owner, &KSelectionOwner::claimedOwnership, [this]{
|
||||
// we want all QQuickWindows with an alpha buffer
|
||||
QQuickWindow::setDefaultAlphaBuffer(true);
|
||||
|
||||
installNativeEventFilter(m_eventFilter.data());
|
||||
// first load options - done internally by a different thread
|
||||
options = new Options;
|
||||
|
|
Loading…
Reference in a new issue