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