Skip to content
Snippets Groups Projects
Commit c23f9b86 authored by Alexander Tuxen's avatar Alexander Tuxen Committed by Felix Gerking
Browse files

Changed getScreen to send a broadcast on success.

parent 7011c025
No related branches found
No related tags found
1 merge request!48Rework Compositor
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment