File: WarpToWindow.xml

package info (click to toggle)
fvwm 1%3A2.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,908 kB
  • sloc: ansic: 145,836; xml: 17,096; perl: 7,237; sh: 5,100; makefile: 1,101; yacc: 688; lex: 187; sed: 11
file content (48 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "../docbook-xml/docbookx.dtd"
[
<!ENTITY % myents SYSTEM "../fvwm.ent" >
%myents;
]>

<!-- $Id$ -->

<section id='WarpToWindow'>
<title>WarpToWindow</title>

<cmdsynopsis>
	<command>WarpToWindow</command
	><group choice='opt'
		><arg choice='plain'>!raise</arg
		><arg choice='plain'>raise</arg
	></group
	><arg choice='plain'
		><replaceable>x</replaceable
		><optional>p</optional
	></arg
	><arg choice='plain'
		><replaceable>y</replaceable
		><optional>p</optional
	></arg>
</cmdsynopsis>

<para>Warps the cursor to the associated window and raises it
(unless the option <fvwmopt cmd="WarpToWindow" opt="!raise"/> is
present).  The parameters
<replaceable>x</replaceable> and <replaceable>y</replaceable>
default to percentage of window down and in from the upper left
hand corner (or number of pixels down and in if
'<fvwmopt cmd="WarpToWindow" opt="p"/>'
is appended to the numbers).  If a number is negative the opposite
edge is used and the direction reversed.  This command works also
with windows that are not managed by fvwm.  In this case fvwm does
not bring the window onto the screen if it is not visible.  For
example it is possible to warp the pointer to the center of the
root window on screen 1:</para>

<programlisting>
<fvwmref cmd="WindowId"/> root 1 WarpToWindow 50 50
</programlisting>

</section>