Re: FVWM: Own mouse pointers: define hot spot?

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Mon, 12 Aug 2002 16:53:13 +0200

On Mon, Aug 12, 2002 at 04:07:04PM +0200, Felix Kater wrote:
> Hi,
>
> I created an xpm file as a new mouse pointer. This works fine. But can
> you tell me how to define the hotspot?
>
> I guess I should be able do it with a graphics application like the gimp
> and define it inside the xpm file. But up to now I don't find any
> command to do it. Could you tell me how you do it?

I've never found out how to create an xpm with a hotspot. But you
can trick fvwm into using the correct hotspot by using a larger
image and shifting it so that the hotspot is in the middle of the
picture. E.g. if your image looks like this:


  *xx..
  xx...
  x.x..
  ...x.
  ....x

  * = hotspot
  x = black
  . = transparent

Pad it like this:

  .........
  .........
  .........
  .........
  ....*xx..
  ....xx...
  ....x.x..
  .......x.
  ........x

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, mail: dominik.vogt_at_schlund.de, phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Aug 12 2002 - 09:54:25 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST