Changeset View
Changeset View
Standalone View
Standalone View
workspace.cpp
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Line(s) | 295 | if (!c->isInternal()) { | |||
---|---|---|---|---|---|
296 | QRect area = clientArea(PlacementArea, Screens::self()->current(), c->desktop()); | 296 | QRect area = clientArea(PlacementArea, Screens::self()->current(), c->desktop()); | ||
297 | bool placementDone = false; | 297 | bool placementDone = false; | ||
298 | if (c->isInitialPositionSet()) { | 298 | if (c->isInitialPositionSet()) { | ||
299 | placementDone = true; | 299 | placementDone = true; | ||
300 | } | 300 | } | ||
301 | if (c->isFullScreen()) { | 301 | if (c->isFullScreen()) { | ||
302 | placementDone = true; | 302 | placementDone = true; | ||
303 | } | 303 | } | ||
304 | if (c->rules()->checkPosition(invalidPoint, true) != invalidPoint) { | ||||
305 | placementDone = true; | ||||
306 | } | ||||
304 | if (!placementDone) { | 307 | if (!placementDone) { | ||
305 | c->placeIn(area); | 308 | c->placeIn(area); | ||
306 | } | 309 | } | ||
307 | m_allClients.append(c); | 310 | m_allClients.append(c); | ||
308 | if (!unconstrained_stacking_order.contains(c)) | 311 | if (!unconstrained_stacking_order.contains(c)) | ||
309 | unconstrained_stacking_order.append(c); // Raise if it hasn't got any stacking position yet | 312 | unconstrained_stacking_order.append(c); // Raise if it hasn't got any stacking position yet | ||
310 | if (!stacking_order.contains(c)) // It'll be updated later, and updateToolWindows() requires | 313 | if (!stacking_order.contains(c)) // It'll be updated later, and updateToolWindows() requires | ||
311 | stacking_order.append(c); // c to be in stacking_order | 314 | stacking_order.append(c); // c to be in stacking_order | ||
▲ Show 20 Lines • Show All 1468 Lines • Show Last 20 Lines |