MCPcopy Create free account
hub / github.com/KDE/kwin / addInternalWindow

Method addInternalWindow

src/workspace.cpp:2168–2189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2166}
2167
2168void Workspace::addInternalWindow(InternalWindow *window)
2169{
2170 Q_ASSERT(!m_windows.contains(window));
2171 m_windows.append(window);
2172 addToStack(window);
2173
2174 setupWindowConnections(window);
2175 window->updateLayer();
2176
2177 if (window->isPlaceable()) {
2178 const RectF area = clientArea(PlacementArea, window, workspace()->activeOutput());
2179 if (const auto placement = m_placement->place(window, area)) {
2180 window->place(*placement);
2181 }
2182 }
2183
2184 updateStackingOrder(true);
2185 if (window->isOutline() && moveResizeWindow()) {
2186 constrain(moveResizeWindow(), window);
2187 }
2188 Q_EMIT windowAdded(window);
2189}
2190
2191void Workspace::removeInternalWindow(InternalWindow *window)
2192{

Callers 1

markAsMappedMethod · 0.80

Calls 9

workspaceFunction · 0.85
appendMethod · 0.80
updateLayerMethod · 0.80
activeOutputMethod · 0.80
moveResizeWindowFunction · 0.70
containsMethod · 0.45
isPlaceableMethod · 0.45
placeMethod · 0.45
isOutlineMethod · 0.45

Tested by

no test coverage detected