Re: Help on heads



Jeremy Hankins said:     (by the date of Fri, 09 Oct 2009 14:46:13 -0500)

> Sure.  There's (screen-width) and (screen-height), which give you the
> dimensions of the viewport.  Then (head-offset (pointer-head)) and
> (head-dimensions (pointer-head)) will give you the offset and dimensions
> of the head with the pointer -- so run those twice each, once for each
> head.

There you go!


   Left head:

user> (screen-width)
3520
user> (screen-height)
1200
user> (head-offset (pointer-head))
(0 . 0)
user> (head-dimensions (pointer-head))
(1600 . 1200)

   Right head:

user> (screen-width)
3520
user> (screen-height)
1200
user> (head-offset (pointer-head))
(1600 . 0)
user> (head-dimensions (pointer-head))
(1920 . 1200)
user> 



> I'm pretty sure that if I'm right about the first bit I'm right here.
> Unless it's possible to have one head in one viewport and the other in
> some other viewport?

definitely impossible :) Although there have been such feature requests, just look at 

http://sawfish.wikia.com/wiki/Proposed_Goals#Better_Multi-Head_support

which will be useful with both workspace or viewports.

-- 
Janek Kozicki                                                         |


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]