#142058 w3m-img: Overwrites other X windows

Package:
w3m-img
Source:
w3m
Description:
inline image extension support utilities for w3m
Submitter:
Daniel Burrows
Date:
2011-11-15 01:51:04 UTC
Severity:
minor
#142058#5
Date:
2002-04-09 23:14:46 UTC
From:
To:
  When I run a w3m-img-enabled w3m over an ssh connection, it seems to
overwrite random X windows with the images it displays (I can provide
screenshots if necessary)  Actually, not completely random: it's usually
the window that has focus when w3m starts to draw the images.  (rather
than the xterm that I ran w3m in)

  Daniel

#142058#10
Date:
2002-04-10 14:50:51 UTC
From:
To:
At Tue, 9 Apr 2002 19:14:46 -0400,
Daniel Burrows wrote:

Yes, it's known bug, but it is too difficult to fix this because of
w3m-img's implementation.

Regards,
Fumitoshi UKAI

#142058#15
Date:
2005-10-27 01:12:12 UTC
From:
To:
Hi,

This old bug is indeed difficult to fix: the remote w3m-img just can't
know in which terminal it is running. The only guess it can make is that
the X focus is probably on it. And of course, if one runs

A$ ssh B
B$ sleep 10 ; w3m foo.bar.com

and switch focus to another window in the middle of the 10 seconds,
w3m-img will indeed display images on that other window instead of the
xterm.

A solution is to use recent ssh's Send Environment facility: on the
server side, in /etc/ssh/sshd_config, add AcceptEnv WINDOWID, and on
the client side, in /etc/ssh/ssh_config, or in your ~/.ssh/config, add
SendEnv WINDOWID. Now w3m-img on host B can just pick up the $WINDOWID
variable and display images in the right xterm.

Regards,
Samuel

#142058#20
Date:
2007-05-22 12:19:26 UTC
From:
To:
I am observing similar behaviour on my framebuffer console: When
switching consoles while w3m is downloading/displaying images it starts
displaying the images on whichever console I am currently switched too.

Pressing CTRL-L in a non-w3m-running console properly redraws the
console without the w3m images but as soon as w3m has downloaded the
next image it re-displays all of them in whichever console I am in.

I'd assume this is simply a missing am-I-the-active-console? check
somewhere.

Thanks
Karsten