Skip to content

Commit

Permalink
fixed window title
Browse files Browse the repository at this point in the history
  • Loading branch information
W-Christoph committed Apr 23, 2023
1 parent 87d2618 commit 440d5a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ export const WebSocketProvider = ({ roomId, children, matches }) => {
state.userlist.value = [];
state.chatMessages.value = [];
state.remoteInfo.value.remote = false;
windowTitle.value = "CozyCast: Low latency screen capture via WebRTC";
})
route('/', true);
}
Expand Down
8 changes: 4 additions & 4 deletions cozycast-worker/worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ end
local worker = {}

function worker.get_active_window_title()
local xprop = io.popen('xprop -id $(xprop -root _NET_ACTIVE_WINDOW | grep -oiP \"0x.{7}\") WM_NAME | sed \"s/WM_NAME(STRING) = //\"', 'r')
local stdout = xprop:read("*a")
xprop:close()
return stdout
local windowName = io.popen('xdotool getactivewindow getwindowname 2>/dev/null');
local stdout = windowName:read("*a")
windowName:close()
return stdout;
end

function worker.mouse_move(mouseX, mouseY)
Expand Down

0 comments on commit 440d5a8

Please sign in to comment.