Changeset View
Changeset View
Standalone View
Standalone View
xdgshellclient.cpp
Show First 20 Lines • Show All 1254 Lines • ▼ Show 20 Line(s) | 1247 | { | |||
---|---|---|---|---|---|
1255 | updatePendingGeometry(); | 1255 | updatePendingGeometry(); | ||
1256 | 1256 | | |||
1257 | setDepth((surface()->buffer()->hasAlphaChannel() && !isDesktop()) ? 32 : 24); | 1257 | setDepth((surface()->buffer()->hasAlphaChannel() && !isDesktop()) ? 32 : 24); | ||
1258 | markAsMapped(); | 1258 | markAsMapped(); | ||
1259 | } | 1259 | } | ||
1260 | 1260 | | |||
1261 | void XdgShellClient::resizeWithChecks(int w, int h, ForceGeometry_t force) | 1261 | void XdgShellClient::resizeWithChecks(int w, int h, ForceGeometry_t force) | ||
1262 | { | 1262 | { | ||
1263 | Q_UNUSED(force) | | |||
1264 | QRect area = workspace()->clientArea(WorkArea, this); | 1263 | QRect area = workspace()->clientArea(WorkArea, this); | ||
1265 | // don't allow growing larger than workarea | 1264 | // don't allow growing larger than workarea | ||
1266 | if (w > area.width()) { | 1265 | if (w > area.width()) { | ||
1267 | w = area.width(); | 1266 | w = area.width(); | ||
1268 | } | 1267 | } | ||
1269 | if (h > area.height()) { | 1268 | if (h > area.height()) { | ||
1270 | h = area.height(); | 1269 | h = area.height(); | ||
1271 | } | 1270 | } | ||
1272 | if (m_xdgShellSurface) { | 1271 | setGeometry(x(), y(), w, h, force); | ||
1273 | m_xdgShellSurface->configure(xdgSurfaceStates(), QSize(w, h)); | | |||
1274 | } | | |||
1275 | } | 1272 | } | ||
1276 | 1273 | | |||
1277 | void XdgShellClient::unmap() | 1274 | void XdgShellClient::unmap() | ||
1278 | { | 1275 | { | ||
1279 | m_unmapped = true; | 1276 | m_unmapped = true; | ||
1280 | if (isMoveResize()) { | 1277 | if (isMoveResize()) { | ||
1281 | leaveMoveResize(); | 1278 | leaveMoveResize(); | ||
1282 | } | 1279 | } | ||
▲ Show 20 Lines • Show All 658 Lines • Show Last 20 Lines |