Skip to content

Commit

Permalink
general: Fix issue with images flashing in termite.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jan 30, 2019
1 parent 8649429 commit 16bd43b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fff
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ draw_img() {
# shellcheck source=/dev/null
source <(xdotool getactivewindow getwindowgeometry --shell %1)

clear_screen

# Get the image size in pixels.
read -r img_width img_height < <("$w3m" <<< "5;${list[scroll]}")

Expand All @@ -376,8 +378,6 @@ draw_img() {
((img_height=HEIGHT))
}

clear_screen

# Display the image.
printf '0;1;%s;%s;%s;%s;;;;;%s\n3;\n4\n' \
"${FFF_W3M_XOFFSET:-0}" \
Expand Down

0 comments on commit 16bd43b

Please sign in to comment.