Mode dontMoveResize from Client to AbstractClient
This commit is contained in:
parent
a15ccc2215
commit
38d3346faa
4 changed files with 9 additions and 9 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
1
client.h
1
client.h
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue