Improvement #41: Enable/disable redirection through D-Bus
- Add "redirected_force" to D-Bus opts_get to forcefully redirect/unredirect windows. - Add D-Bus method "repaint", to, namely, repaint the screen.
This commit is contained in:
@ -51,3 +51,13 @@ dbus-send --print-reply --dest="$service" "$object" "${interface}.opts_get" stri
|
||||
sleep 3
|
||||
dbus-send --print-reply --dest="$service" "$object" "${interface}.reset"
|
||||
|
||||
# Undirect window
|
||||
sleep 3
|
||||
dbus-send --print-reply --dest="$service" "$object" "${interface}.opts_set" string:redirected_force uint16:0
|
||||
|
||||
# Revert back to auto
|
||||
sleep 3
|
||||
dbus-send --print-reply --dest="$service" "$object" "${interface}.opts_set" string:redirected_force uint16:2
|
||||
|
||||
# Force repaint
|
||||
dbus-send --print-reply --dest="$service" "$object" "${interface}.repaint"
|
||||
|
Reference in New Issue
Block a user