Temporary, unsatisfactory fix for alt-drag freezing kwin and just about
everything else. kwin assumes you want it to mess with the cursor, and provide edge-based resize etc. You can't override it easily. In fact, I still haven't found out how. svn path=/trunk/kdebase/kwin/; revision=49114
This commit is contained in:
parent
5029a1389a
commit
69c7133c9d
2 changed files with 30 additions and 10 deletions
|
@ -136,12 +136,6 @@ Manager::maximizeNoRaise()
|
|||
maximize(MaximizeFull);
|
||||
}
|
||||
|
||||
void
|
||||
Manager::resize(int w, int h)
|
||||
{
|
||||
Client::resize(w, h);
|
||||
}
|
||||
|
||||
void
|
||||
Manager::updateDisplay()
|
||||
{
|
||||
|
@ -178,6 +172,33 @@ Manager::paintEvent(QPaintEvent * e)
|
|||
p.drawLine(width() - 1, r.top(), width() - 1, r.bottom());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Manager::mouseMoveEvent(QMouseEvent * e)
|
||||
{
|
||||
if ((e->pos().x() == 0) || (e->pos().y() == 0))
|
||||
return;
|
||||
|
||||
Client::mouseMoveEvent(e);
|
||||
}
|
||||
|
||||
void
|
||||
Manager::mousePressEvent(QMouseEvent * e)
|
||||
{
|
||||
if ((e->pos().x() == 0) || (e->pos().y() == 0))
|
||||
return;
|
||||
|
||||
Client::mousePressEvent(e);
|
||||
}
|
||||
|
||||
void
|
||||
Manager::mouseReleaseEvent(QMouseEvent * e)
|
||||
{
|
||||
if ((e->pos().x() == 0) || (e->pos().y() == 0))
|
||||
return;
|
||||
|
||||
Client::mouseReleaseEvent(e);
|
||||
}
|
||||
|
||||
} // End namespace
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ class Manager : public Client
|
|||
void maximizeVertically();
|
||||
void maximizeAndRaise();
|
||||
void maximizeNoRaise();
|
||||
void resize(int, int);
|
||||
|
||||
void setShade(bool);
|
||||
|
||||
|
@ -55,9 +54,9 @@ class Manager : public Client
|
|||
void activeChange(bool);
|
||||
void maximizeChange(bool);
|
||||
void paintEvent(QPaintEvent *);
|
||||
void mouseMoveEvent(QMouseEvent *) {} // Disabled
|
||||
void mousePressEvent(QMouseEvent *) {} // Disabled
|
||||
void mouseReleaseEvent(QMouseEvent *) {} // Disabled
|
||||
void mouseMoveEvent(QMouseEvent *);
|
||||
void mousePressEvent(QMouseEvent *);
|
||||
void mouseReleaseEvent(QMouseEvent *);
|
||||
|
||||
protected slots:
|
||||
|
||||
|
|
Loading…
Reference in a new issue