Re: FVWM: Placement on whole desk, not on viewport only

From: Ruslan Kosolapov <rkosolapov_at_sw-soft.com>
Date: Tue, 29 Jun 2004 00:50:11 +0700

>> How I can do that?
 MG> I don't think you can easily do this in fvwm. You may try to do
 MG> this in X instead; define your screen size 9 times larger than the
 MG> physical size using "Virtual" directive (or something like
 MG> this). Then you should probably define your desk 1x1, not 3x3, so
 MG> it is just one large page.

  Hmm... This behavior is exactly what I want. But how I can scroll
  viewport by fvwm (or by command-line utility) in this case? I failed
  to find solution in google. Also about sticky windows - if I will use
  X features I can't use sticky window, isn't it?

  Now I use Scroll command, and all works nicely:
--8<-------------------------------------------------
DestroyFunc CenterViewPort
AddToFunc CenterViewPort
+ I Current Piperead "echo Scroll \
      $(( $[w.x]-$[vp.width]/2+$[w.width]/2 ))p \
      $(( $[w.y]-$[vp.height]/2+$[w.height]/2 ))p "

DestroyFunc CenterPointer
AddToFunc CenterPointer
+ I Piperead "echo CursorMove \
      $(( -$[pointer.x]+$[vp.width]/2 ))p \
      $(( -$[pointer.y]+$[vp.height]/2 ))p"

DestroyFunc MyFocus
AddToFunc MyFocus
+ I Focus
+ I Raise
+ I Function CenterViewPort
+ I CenterPointer

Key p A 4 Direction North MyFocus
Key n A 4 Direction South MyFocus
Key f A 4 Direction East MyFocus
Key b A 4 Direction West MyFocus
Key l A 4 Function CenterViewPort
----------------------------------------------->8---

  I.e. viewport scrolls for placing focused window in center.

  BTW, why WarpToWindow is not moving mouse but moving viewport when
  viewport is not equal to page? Because of such behaviour I need to
  use CenterPointer function instead WarpToWindow 50 50 or CursorMove 50
  50.

-- 
Ruslan Kosolapov
Plesk QA Department Second Manager
SWsoft, Inc.
E-mail: rkosolapov_at_sw-soft.com
Web Site: www.sw-soft.com
--
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 Jun 28 2004 - 12:52:58 BST

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