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