From c23f9b8684c52800d7c6b4bed4c3aff02c42c3b3 Mon Sep 17 00:00:00 2001 From: Alexander Tuxen <tuxen@silpion.de> Date: Mon, 5 Dec 2022 14:41:02 +0100 Subject: [PATCH] Changed getScreen to send a broadcast on success. --- multiscreen-compositor/qml/main.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/multiscreen-compositor/qml/main.qml b/multiscreen-compositor/qml/main.qml index 22c3989..6877152 100644 --- a/multiscreen-compositor/qml/main.qml +++ b/multiscreen-compositor/qml/main.qml @@ -488,7 +488,16 @@ WaylandCompositor { function onGetScreen(windowid){ cleanUpApplist(); console.log("Received a getScreen Signal for window ID: ", windowid) - server.returnStatus(getScreenFromIviId(windowid)) + var screenid = getScreenFromIviId(windowid); + if (screenid >= 0) + { + server.returnStatus(0) + server.sendMessage("Screen", windowid, screenid); + } + else + { + server.returnStatus(screenid) + } } // This seems to be unused. -- GitLab