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 | QRect area = workspace()->clientArea(WorkArea, this); | 1263 | const QRect area = workspace()->clientArea(WorkArea, this); | ||
1264 | // don't allow growing larger than workarea | 1264 | // don't allow growing larger than workarea | ||
1265 | if (w > area.width()) { | 1265 | if (w > area.width()) { | ||
1266 | w = area.width(); | 1266 | w = area.width(); | ||
1267 | } | 1267 | } | ||
1268 | if (h > area.height()) { | 1268 | if (h > area.height()) { | ||
1269 | h = area.height(); | 1269 | h = area.height(); | ||
1270 | } | 1270 | } | ||
1271 | setGeometry(x(), y(), w, h, force); | 1271 | setGeometry(x(), y(), w, h, force); | ||
▲ Show 20 Lines • Show All 666 Lines • Show Last 20 Lines |