File: Wait.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 (61 lines) | stat: -rw-r--r-- 1,882 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
49
50
51
52
53
54
55
56
57
58
59
60
61
<?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='Wait'>
<title>Wait</title>

<cmdsynopsis>
	<command>Wait</command
	><arg choice='plain'
		><replaceable>window</replaceable
	></arg>
</cmdsynopsis>

<para>This command is intended to be used in fvwm functions only.  It
causes execution of a function to pause until a new window matching
<replaceable>window</replaceable>
appears.  This can be a window's name, class, or resource string.
It may contain the wildcards '*' and '?', which are matched in the
usual Unix filename manner.  This is particularly useful in the
"InitFunction" if you are trying to start windows on specific desktops:</para>

<programlisting>
<fvwmref cmd="AddToFunc"/> InitFunction
 + I <fvwmref cmd="Exec"/> exec xterm -geometry 80x64+0+0
 + I Wait xterm
 + I <fvwmref cmd="GotoDesk"/> 0 2
 + I <fvwmref cmd="Exec"/> exec xmh -font fixed -geometry \
       507x750+0+0
 + I Wait xmh
 + I <fvwmref cmd="GotoDesk"/> 0 0
</programlisting>

<para>The above function starts an xterm on the current desk, waits for
it to map itself, then switches to desk 2 and starts an xmh.
After the xmh window appears control moves to desk 0.</para>

<para>Fvwm remains partially functional during a wait, but any input
from the modules is queued up and processed only after the window
appears or the command is aborted.  For example, windows can not
be focused with <fvwmref mod="FvwmIconMan"/> or
<fvwmref mod="FvwmPager"/> during a wait.</para>

<para>You can escape from a
<emphasis remap='B'>Wait</emphasis>
pause by pressing
<keysym>Ctrl-Alt-Escape</keysym>
(where
<keysym>Alt</keysym>
is the first modifier).  To redefine this key sequence see the
<fvwmref cmd="EscapeFunc"/>
command.</para>


</section>