Skip to content

Commit

Permalink
Changed method for finding active window. FIX #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyre221 authored Nov 23, 2023
1 parent 003cb90 commit cdfde13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dolphin=""
#controls which dolphin window is active
for w in $windows; do

is_active_window=$(dbus-send --session --print-reply --type=method_call --dest=$w /dolphin/Dolphin_1 org.qtproject.Qt.QWidget.isActiveWindow)
is_active_window=$(dbus-send --session --print-reply --dest=$w /dolphin/Dolphin_1 org.freedesktop.DBus.Properties.Get string:org.qtproject.Qt.QWidget string:isActiveWindow)
[ "$?" != "0" ] && exit 1
[ "$( echo $is_active_window | grep -i true)" ] && dolphin="$w"

Expand Down

0 comments on commit cdfde13

Please sign in to comment.