Skip to content

Commit b3ec82a

Browse files
author
Dennis Kasprzyk
committed
Dummy
1 parent b2834d3 commit b3ec82a

File tree

4 files changed

+567
-0
lines changed

4 files changed

+567
-0
lines changed

compiz-mousepoll.pc.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=@prefix@
2+
exec_prefix=@prefix@
3+
libdir=@libdir@
4+
includedir=@includedir@
5+
6+
Name: compiz-mousepoll
7+
Description: Mousepoll plugin for compiz
8+
Version: @VERSION@
9+
10+
Requires:
11+
Libs:
12+
Cflags: @COMPIZ_CFLAGS@

include/compiz-mousepoll.h

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
*
3+
* Compiz mouse position polling plugin
4+
*
5+
* Copyright : (C) 2008 by Dennis Kasprzyk
6+
* E-mail : [email protected]
7+
*
8+
*
9+
* This program is free software; you can redistribute it and/or
10+
* modify it under the terms of the GNU General Public License
11+
* as published by the Free Software Foundation; either version 2
12+
* of the License, or (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
*/
20+
21+
#ifndef _COMPIZ_MOUSEPOLL_H
22+
#define _COMPIZ_MOUSEPOLL_H
23+
24+
#define MOUSEPOLL_ABIVERSION 20080116
25+
26+
typedef int PositionPollingHandle;
27+
28+
typedef void (*PositionUpdateProc) (CompScreen *s,
29+
int x,
30+
int y);
31+
32+
typedef PositionPollingHandle
33+
(*AddPositionPollingProc) (CompScreen *s,
34+
PositionUpdateProc update);
35+
36+
typedef void
37+
(*RemovePositionPollingProc) (CompScreen *s,
38+
PositionPollingHandle id);
39+
40+
typedef void
41+
(*GetCurrentPositionProc) (CompScreen *s,
42+
int *x,
43+
int *y);
44+
45+
typedef struct _MousePollFunc {
46+
AddPositionPollingProc addPositionPolling;
47+
RemovePositionPollingProc removePositionPolling;
48+
GetCurrentPositionProc getCurrentPosition;
49+
} MousePollFunc;
50+
51+
#endif

metadata/mousepoll.xml.in

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<compiz>
3+
<plugin name="mousepoll">
4+
<_short>Mouse position polling</_short>
5+
<_long>Updates the mouse pointer position from the xserver</_long>
6+
<category>Utility</category>
7+
<display>
8+
<option name="abi" type="int" read_only="true"/>
9+
<option name="index" type="int" read_only="true"/>
10+
<group>
11+
<_short>Misc</_short>
12+
<option type="int" name="mouse_poll_interval">
13+
<_short>Mouse Poll Interval</_short>
14+
<_long>How often to poll the mouse position, in miliseconds. Reduce this to reduce choppy behavior.</_long>
15+
<default>10</default>
16+
<min>1</min>
17+
<max>500</max>
18+
</option>
19+
</group>
20+
</display>
21+
</plugin>
22+
</compiz>

0 commit comments

Comments
 (0)