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

Method createWindow

src/layershellv1integration.cpp:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void LayerShellV1Integration::createWindow(LayerSurfaceV1Interface *shellSurface)
33{
34 LogicalOutput *output;
35 if (OutputInterface *preferredOutput = shellSurface->output()) {
36 if (preferredOutput->isRemoved()) {
37 shellSurface->sendClosed();
38 return;
39 }
40 output = preferredOutput->handle();
41 } else {
42 output = workspace()->activeOutput();
43 }
44
45 Q_EMIT windowCreated(new LayerShellV1Window(shellSurface, output, this));
46}
47
48void LayerShellV1Integration::recreateWindow(LayerSurfaceV1Interface *shellSurface)
49{

Callers 7

initMethod · 0.45
initMethod · 0.45
testCreateAfterUnmapMethod · 0.45
testParentWindowMethod · 0.45
testPidMethod · 0.45
initMethod · 0.45

Calls 6

workspaceFunction · 0.85
activeOutputMethod · 0.80
outputMethod · 0.45
isRemovedMethod · 0.45
sendClosedMethod · 0.45
handleMethod · 0.45

Tested by 6

initMethod · 0.36
initMethod · 0.36
testCreateAfterUnmapMethod · 0.36
testParentWindowMethod · 0.36
testPidMethod · 0.36
initMethod · 0.36