|
|
|
@ -484,7 +484,7 @@ current_create() {
|
|
|
|
|
wid=$(xdotool getactivewindow)
|
|
|
|
|
echo "$wid" > /tmp/tdrop/current"$num"
|
|
|
|
|
get_class_name "$wid" > /tmp/tdrop/current"$num"_type
|
|
|
|
|
echo "$wid"
|
|
|
|
|
echo -n "$wid"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wid_toggle() {
|
|
|
|
@ -564,7 +564,7 @@ get_geometry() {
|
|
|
|
|
if [[ -n $(type is_floating 2> /dev/null) ]] && \
|
|
|
|
|
[[ -z $(is_floating "$1") ]]; then
|
|
|
|
|
# window is not floating; don't bother saving geometry
|
|
|
|
|
echo "false"
|
|
|
|
|
echo -n "false"
|
|
|
|
|
else
|
|
|
|
|
local wininfo x y rel_x rel_y
|
|
|
|
|
wininfo=$(xwininfo -id "$1")
|
|
|
|
@ -586,7 +586,7 @@ get_geometry() {
|
|
|
|
|
y=$((y-rel_y))
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
echo -e "X=$x\nY=$y"
|
|
|
|
|
echo -n -e "X=$x\nY=$y"
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -604,7 +604,7 @@ give_geometry() {
|
|
|
|
|
X=$((X-x_fix))
|
|
|
|
|
Y=$((Y-y_fix))
|
|
|
|
|
fi
|
|
|
|
|
echo "$X $Y"
|
|
|
|
|
echo -n "$X $Y"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set_geometry() {
|
|
|
|
|