diff options
Diffstat (limited to 'wayland/democompositor/qml/main.qml')
-rw-r--r-- | wayland/democompositor/qml/main.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wayland/democompositor/qml/main.qml b/wayland/democompositor/qml/main.qml index 8c0c621..75d1adc 100644 --- a/wayland/democompositor/qml/main.qml +++ b/wayland/democompositor/qml/main.qml @@ -57,6 +57,7 @@ WaylandCompositor { property var primarySurfacesArea: null Screen { + id: mainScreen compositor: comp } @@ -69,6 +70,13 @@ WaylandCompositor { WlShell { id: defaultShell onWlShellSurfaceCreated: { + const pid = shellSurface.surface.client.processId; + const appState = mainScreen.appLauncher.appStateForPid(pid); + if (!appState) { + console.log("shellSurface of unknown application. Continuing. PID=" + pid); + } else { + console.log("shellSurface belonging to " + appState.appEntry.executableName); + } chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": shellSurface } ); defaultOutput.relayout(); } |