Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 1205 Lines • ▼ Show 20 Line(s) | 1195 | { | |||
---|---|---|---|---|---|
1206 | emit windowHidden(this); | 1206 | emit windowHidden(this); | ||
1207 | } | 1207 | } | ||
1208 | 1208 | | |||
1209 | void ShellClient::installPlasmaShellSurface(PlasmaShellSurfaceInterface *surface) | 1209 | void ShellClient::installPlasmaShellSurface(PlasmaShellSurfaceInterface *surface) | ||
1210 | { | 1210 | { | ||
1211 | m_plasmaShellSurface = surface; | 1211 | m_plasmaShellSurface = surface; | ||
1212 | auto updatePosition = [this, surface] { | 1212 | auto updatePosition = [this, surface] { | ||
1213 | QRect rect = QRect(surface->position(), m_clientSize + QSize(borderLeft() + borderRight(), borderTop() + borderBottom())); | 1213 | QRect rect = QRect(surface->position(), m_clientSize + QSize(borderLeft() + borderRight(), borderTop() + borderBottom())); | ||
1214 | // Shell surfaces of internal windows are sometimes desync to current value. | ||||
1215 | // Make sure to not set window geometry of internal windows to invalid values (bug 386304). | ||||
1216 | // This is a workaround. | ||||
1217 | if (!m_internal || rect.isValid()) { | ||||
1214 | doSetGeometry(rect); | 1218 | doSetGeometry(rect); | ||
1219 | } | ||||
1215 | }; | 1220 | }; | ||
zzag: Please mention this is a workaround. | |||||
1216 | auto updateRole = [this, surface] { | 1221 | auto updateRole = [this, surface] { | ||
1217 | NET::WindowType type = NET::Unknown; | 1222 | NET::WindowType type = NET::Unknown; | ||
1218 | switch (surface->role()) { | 1223 | switch (surface->role()) { | ||
1219 | case PlasmaShellSurfaceInterface::Role::Desktop: | 1224 | case PlasmaShellSurfaceInterface::Role::Desktop: | ||
1220 | type = NET::Desktop; | 1225 | type = NET::Desktop; | ||
1221 | break; | 1226 | break; | ||
1222 | case PlasmaShellSurfaceInterface::Role::Panel: | 1227 | case PlasmaShellSurfaceInterface::Role::Panel: | ||
1223 | type = NET::Dock; | 1228 | type = NET::Dock; | ||
▲ Show 20 Lines • Show All 666 Lines • Show Last 20 Lines |
Please mention this is a workaround.