Workspace::adjustClientSize operates on AbstractClient
And now also during resizing clients snap to ShellClients.
This commit is contained in:
parent
47d2b4cb49
commit
6dc211dfaf
2 changed files with 3 additions and 4 deletions
|
@ -582,7 +582,7 @@ QPoint Workspace::adjustClientPosition(AbstractClient* c, QPoint pos, bool unres
|
|||
return pos;
|
||||
}
|
||||
|
||||
QRect Workspace::adjustClientSize(Client* c, QRect moveResizeGeom, int mode)
|
||||
QRect Workspace::adjustClientSize(AbstractClient* c, QRect moveResizeGeom, int mode)
|
||||
{
|
||||
//adapted from adjustClientPosition on 29May2004
|
||||
//this function is called when resizing a window and will modify
|
||||
|
@ -683,8 +683,7 @@ QRect Workspace::adjustClientSize(Client* c, QRect moveResizeGeom, int mode)
|
|||
if (snap) {
|
||||
deltaX = int(snap);
|
||||
deltaY = int(snap);
|
||||
QList<Client *>::ConstIterator l;
|
||||
for (l = clients.constBegin(); l != clients.constEnd(); ++l) {
|
||||
for (auto l = m_allClients.constBegin(); l != m_allClients.constEnd(); ++l) {
|
||||
if ((*l)->isOnDesktop(VirtualDesktopManager::self()->current()) &&
|
||||
!(*l)->isMinimized()
|
||||
&& (*l) != c) {
|
||||
|
|
|
@ -173,7 +173,7 @@ public:
|
|||
void setClientIsMoving(AbstractClient* c);
|
||||
|
||||
QPoint adjustClientPosition(AbstractClient* c, QPoint pos, bool unrestricted, double snapAdjust = 1.0);
|
||||
QRect adjustClientSize(Client* c, QRect moveResizeGeom, int mode);
|
||||
QRect adjustClientSize(AbstractClient* c, QRect moveResizeGeom, int mode);
|
||||
void raiseClient(AbstractClient* c, bool nogroup = false);
|
||||
void lowerClient(AbstractClient* c, bool nogroup = false);
|
||||
void raiseClientRequest(AbstractClient* c, NET::RequestSource src = NET::FromApplication, xcb_timestamp_t timestamp = 0);
|
||||
|
|
Loading…
Reference in a new issue