Mode dontMoveResize from Client to AbstractClient

This commit is contained in:
Martin Gräßlin 2015-12-03 15:27:21 +01:00
parent a15ccc2215
commit 38d3346faa
4 changed files with 9 additions and 9 deletions

View file

@ -1283,6 +1283,14 @@ QSize AbstractClient::resizeIncrements() const
return QSize(1, 1);
}
void AbstractClient::dontMoveResize()
{
setMoveResizePointerButtonDown(false);
stopDelayedMoveResize();
if (isMoveResize())
finishMoveResize(false);
}
AbstractClient::Position AbstractClient::mousePosition() const
{
if (isDecorated()) {

View file

@ -791,6 +791,7 @@ protected:
virtual void doResizeSync();
void handleMoveResize(int x, int y, int x_root, int y_root);
void handleMoveResize(const QPoint &local, const QPoint &global);
void dontMoveResize();
virtual QSize resizeIncrements() const;

View file

@ -1632,14 +1632,6 @@ void Client::syncTabGroupFor(QString property, bool fromThisClient)
tab_group->sync(property.toAscii().data(), fromThisClient ? this : tab_group->current());
}
void Client::dontMoveResize()
{
setMoveResizePointerButtonDown(false);
stopDelayedMoveResize();
if (isMoveResize())
finishMoveResize(false);
}
void Client::setClientShown(bool shown)
{
if (deleting)

View file

@ -328,7 +328,6 @@ public:
* to change the visible client it starts to move-resize the new
* client, this function stops it.
*/
void dontMoveResize();
bool isCurrentTab() const override;
/**