File: PointerKey.xml

package info (click to toggle)
fvwm 1%3A2.5.30.ds-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 17,960 kB
  • ctags: 15,640
  • sloc: ansic: 165,504; xml: 17,516; perl: 11,498; sh: 5,243; makefile: 1,345; yacc: 688; lex: 188; sed: 11
file content (58 lines) | stat: -rw-r--r-- 1,618 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
<?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: PointerKey.xml,v 1.3 2007/06/16 12:38:46 griph Exp $ -->

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

<cmdsynopsis>
	<command>PointerKey</command
	><arg choice='opt'
		>(<replaceable>window</replaceable
	>)</arg
	><arg choice='plain'
		><replaceable>Keyname</replaceable
	></arg
	><arg choice='plain'
		><replaceable>Context</replaceable
	></arg
	><arg choice='plain'
		><replaceable>Modifiers</replaceable
	></arg
	><arg choice='plain'
		><replaceable>Function</replaceable
	></arg>
</cmdsynopsis>

<para>This command works exactly like the
<fvwmref cmd="Key"/>
command.  The only difference is that the binding operates on the
window under the pointer.  Normal key bindings operate on the
focused window instead.  The
<emphasis remap='B'>PointerKey</emphasis>
command can for example be used to bind keys to the root window if
you are using
<fvwmref cmd="Style" opt="SloppyFocus"/> or
<fvwmref cmd="Style" opt="ClickToFocus"/>.
However, some applications (xterm is one example) are unable to
handle this key anymore, even if the pointer is over the xterm
window.  It is recommended to use the
<emphasis remap='B'>PointerKey</emphasis>
command only for key combinations that are not needed in any
application window.</para>

<para>Example:</para>

<programlisting>
<fvwmref cmd="Style"/> * <fvwmref cmd="Style" opt="SloppyFocus"/>
PointerKey f1 a m <fvwmref cmd="Menu"/> MainMenu
</programlisting>


</section>