Remove dead code path from GeometryTip
Ctor parameter save_under is always false. In additon include proper needed header instead of client.h. REVIEW: 110272
This commit is contained in:
parent
49e734f743
commit
8bd3b28335
3 changed files with 5 additions and 9 deletions
|
@ -2510,7 +2510,7 @@ void Client::positionGeometryTip()
|
|||
return; // some effect paints this for us
|
||||
if (options->showGeometryTip()) {
|
||||
if (!geometryTip) {
|
||||
geometryTip = new GeometryTip(&xSizeHint, false);
|
||||
geometryTip = new GeometryTip(&xSizeHint);
|
||||
}
|
||||
QRect wgeom(moveResizeGeom); // position of the frame, size of the window itself
|
||||
wgeom.setWidth(wgeom.width() - (width() - clientSize().width()));
|
||||
|
|
|
@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
namespace KWin
|
||||
{
|
||||
|
||||
GeometryTip::GeometryTip(const XSizeHints* xSizeHints, bool save_under):
|
||||
GeometryTip::GeometryTip(const XSizeHints* xSizeHints):
|
||||
QLabel(0)
|
||||
{
|
||||
setObjectName(QLatin1String("kwingeometry"));
|
||||
|
@ -35,11 +35,6 @@ GeometryTip::GeometryTip(const XSizeHints* xSizeHints, bool save_under):
|
|||
setAlignment(Qt::AlignCenter | Qt::AlignTop);
|
||||
setWindowFlags(Qt::X11BypassWindowManagerHint);
|
||||
sizeHints = xSizeHints;
|
||||
if (save_under) {
|
||||
XSetWindowAttributes attr;
|
||||
attr.save_under = True; // use saveunder if possible to avoid weird effects in transparent mode
|
||||
XChangeWindowAttributes(display(), winId(), CWSaveUnder, &attr);
|
||||
}
|
||||
}
|
||||
|
||||
GeometryTip::~GeometryTip()
|
||||
|
|
|
@ -22,7 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define KWIN_GEOMETRY_TIP_H
|
||||
|
||||
#include <QLabel>
|
||||
#include "client.h"
|
||||
#include <X11/Xutil.h>
|
||||
#include <fixx11h.h>
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
@ -31,7 +32,7 @@ class GeometryTip: public QLabel
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GeometryTip(const XSizeHints* xSizeHints, bool save_under);
|
||||
GeometryTip(const XSizeHints* xSizeHints);
|
||||
~GeometryTip();
|
||||
void setGeometry(const QRect& geom);
|
||||
|
||||
|
|
Loading…
Reference in a new issue