Re: FVWM: avoiding crosshair when thumbnailing

Thomas Adam <[email protected]>
Newsgroups gmane.comp.window-managers.fvwm
Message-ID <[email protected]>
On Thu, Dec 26, 2019 at 12:26:03AM +0000, Peter Holm wrote:

Hi Peter,

> To get thumbnails within fvwmpager, I do as following.
> DestroyFunc Mini_Thumbnail
> AddToFunc Mini_Thumbnail
> + I Raise
> + I SetEnv MiniIcon-$[w.id] $[w.MiniIconFile]
> + I ThisWindow (!Shaded,  !FvwmPager, !Iconic) PipeRead \
>     "$[FVWM_USERDIR]/bin/thumb $[w.id] $[fvwm_mini_icon_size]
> $[FVWM_USERDIR]/tmp/mini_icon.tmp.$[w.id].png $[w..MiniIconFile]\
> 		&& echo WindowStyle EWMHMiniIconOverride, MiniIcon
> $[FVWM_USERDIR]/tmp/mini_icon.tmp.$[w.id].png || echo Nop"
> #-----
> 
> But the call to ThisWindow gives me a crosshair in thoose cases where
> there is no window below the mousepointer.
> How do I avoid the crosshair.?

You're seeing the crosshair because the way you've invoked Mini_Thumbnail is
not in a window context which means FVWM has no idea which window to operate
on.

How are you invoking this function?

Kindly,
Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.