[kstyle] Update blur region even if Breeze has no X11 support

Summary:
KWindowEffects provides a platform-independent API for enabling blur,
which requires neither Xlib nor XCB.

Test Plan: Compiles.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26631
wilder-5.18
Vlad Zahorodnii 6 years ago
parent d336cca26b
commit e1710bd680
  1. 5
      kstyle/breezeblurhelper.cpp
  2. 4
      kstyle/breezeblurhelper.h

@ -89,7 +89,6 @@ namespace Breeze
//___________________________________________________________
void BlurHelper::update(QWidget* widget) const
{
#if BREEZE_HAVE_X11
/*
directly from bespin code. Supposedly prevent playing with some 'pseudo-widgets'
that have winId matching some other -random- window
@ -103,9 +102,5 @@ namespace Breeze
if (widget->isVisible()) {
widget->update();
}
#else
Q_UNUSED( widget )
#endif
}
}

@ -37,10 +37,6 @@
#include <QHash>
#include <QObject>
#if BREEZE_HAVE_X11
#include <xcb/xcb.h>
#endif
namespace Breeze
{
class BlurHelper: public QObject

Loading…
Cancel
Save