Changeset View
Changeset View
Standalone View
Standalone View
deleted.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 116 | if (Decoration::Renderer *renderer = client->decoratedClient()->renderer()) { | |||
---|---|---|---|---|---|
118 | m_decorationRenderer->reparent(this); | 118 | m_decorationRenderer->reparent(this); | ||
119 | } | 119 | } | ||
120 | } | 120 | } | ||
121 | } | 121 | } | ||
122 | m_wasClient = true; | 122 | m_wasClient = true; | ||
123 | m_minimized = client->isMinimized(); | 123 | m_minimized = client->isMinimized(); | ||
124 | m_modal = client->isModal(); | 124 | m_modal = client->isModal(); | ||
125 | m_mainClients = client->mainClients(); | 125 | m_mainClients = client->mainClients(); | ||
126 | foreach (AbstractClient *c, m_mainClients) { | 126 | foreach (AbstractClient *c, m_mainClients) { | ||
davidedmundson: may as well put it here | |||||
127 | connect(c, &AbstractClient::windowClosed, this, &Deleted::mainClientClosed); | 127 | connect(c, &AbstractClient::windowClosed, this, &Deleted::mainClientClosed); | ||
128 | } | 128 | } | ||
129 | m_fullscreen = client->isFullScreen(); | 129 | m_fullscreen = client->isFullScreen(); | ||
130 | m_wasCurrentTab = client->isCurrentTab(); | 130 | m_wasCurrentTab = client->isCurrentTab(); | ||
131 | m_keepAbove = client->keepAbove(); | 131 | m_keepAbove = client->keepAbove(); | ||
132 | m_keepBelow = client->keepBelow(); | 132 | m_keepBelow = client->keepBelow(); | ||
133 | m_caption = client->caption(); | 133 | m_caption = client->caption(); | ||
134 | 134 | | |||
135 | m_wasActive = client->isActive(); | 135 | m_wasActive = client->isActive(); | ||
136 | 136 | | |||
137 | const auto *x11Client = qobject_cast<Client *>(client); | 137 | const auto *x11Client = qobject_cast<Client *>(client); | ||
138 | m_wasGroupTransient = x11Client && x11Client->groupTransient(); | 138 | m_wasGroupTransient = x11Client && x11Client->groupTransient(); | ||
139 | 139 | | |||
140 | if (m_wasGroupTransient) { | 140 | if (client->isTransient()) { | ||
141 | const auto members = x11Client->group()->members(); | 141 | const auto mainClients = client->mainClients(); | ||
142 | for (Client *member : members) { | 142 | for (AbstractClient *mainClient : mainClients) { | ||
143 | if (member != client) { | 143 | addTransientFor(mainClient); | ||
144 | addTransientFor(member); | | |||
145 | } | | |||
146 | } | | |||
147 | } else { | | |||
148 | AbstractClient *transientFor = client->transientFor(); | | |||
149 | if (transientFor != nullptr) { | | |||
150 | addTransientFor(transientFor); | | |||
151 | } | 144 | } | ||
152 | } | 145 | } | ||
153 | } | 146 | } | ||
154 | 147 | | |||
155 | m_wasWaylandClient = qobject_cast<ShellClient *>(c) != nullptr; | 148 | m_wasWaylandClient = qobject_cast<ShellClient *>(c) != nullptr; | ||
156 | m_wasX11Client = !m_wasWaylandClient; | 149 | m_wasX11Client = !m_wasWaylandClient; | ||
157 | } | 150 | } | ||
158 | 151 | | |||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |
may as well put it here