| 30 | } |
| 31 | |
| 32 | void 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 | |
| 48 | void LayerShellV1Integration::recreateWindow(LayerSurfaceV1Interface *shellSurface) |
| 49 | { |