mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Add option to show floating video on all workspaces
Option to stick the floating mode window to all workspaces. Disabled by default. Can be enabled in player preferences.
This commit is contained in:
10
src/dbus.js
10
src/dbus.js
@@ -19,16 +19,16 @@ let shellProxy = new ShellProxyWrapper(
|
||||
Gio.DBus.session, 'org.gnome.Shell', '/org/gnome/Shell'
|
||||
);
|
||||
|
||||
function callMakeAbove(isAbove)
|
||||
function shellWindowEval(fn, isEnabled)
|
||||
{
|
||||
const un = (isAbove) ? '' : 'un';
|
||||
const un = (isEnabled) ? '' : 'un';
|
||||
|
||||
debug('changing window keep above');
|
||||
debug(`changing ${fn}`);
|
||||
shellProxy.EvalRemote(
|
||||
`global.display.focus_window.${un}make_above()`,
|
||||
`global.display.focus_window.${un}${fn}()`,
|
||||
(out) => {
|
||||
const debugMsg = (out[0])
|
||||
? `window keep above: ${isAbove}`
|
||||
? `window ${fn}: ${isEnabled}`
|
||||
: new Error(out[1]);
|
||||
|
||||
debug(debugMsg);
|
||||
|
Reference in New Issue
Block a user