summaryrefslogtreecommitdiffstats
path: root/klaptopdaemon/xautolock_diy.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /klaptopdaemon/xautolock_diy.c
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klaptopdaemon/xautolock_diy.c')
-rw-r--r--klaptopdaemon/xautolock_diy.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/klaptopdaemon/xautolock_diy.c b/klaptopdaemon/xautolock_diy.c
index b9df2f8..1aacf5e 100644
--- a/klaptopdaemon/xautolock_diy.c
+++ b/klaptopdaemon/xautolock_diy.c
@@ -95,24 +95,24 @@ static void
selectEvents (Window window, Bool substructureOnly)
{
Window root; /* root window of the window */
- Window parent; /* parent of the window */
- Window* children; /* children of the window */
- unsigned nofChildren = 0; /* number of children */
+ Window tqparent; /* tqparent of the window */
+ Window* tqchildren; /* tqchildren of the window */
+ unsigned nofChildren = 0; /* number of tqchildren */
unsigned i; /* loop counter */
XWindowAttributes attribs; /* attributes of the window */
if( xautolock_ignoreWindow( window ))
return;
/*
- * Start by querying the server about the root and parent windows.
+ * Start by querying the server about the root and tqparent windows.
*/
- if (!XQueryTree (queue.display, window, &root, &parent,
- &children, &nofChildren))
+ if (!XQueryTree (queue.display, window, &root, &tqparent,
+ &tqchildren, &nofChildren))
{
return;
}
- if (nofChildren) (void) XFree ((char*) children);
+ if (nofChildren) (void) XFree ((char*) tqchildren);
/*
* Build the appropriate event mask. The basic idea is that we don't
@@ -132,7 +132,7 @@ selectEvents (Window window, Bool substructureOnly)
}
else
{
- if (parent == None) /* the *real* rootwindow */
+ if (tqparent == None) /* the *real* rootwindow */
{
attribs.all_event_masks =
attribs.do_not_propagate_mask = KeyPressMask;
@@ -168,7 +168,7 @@ selectEvents (Window window, Bool substructureOnly)
}
/*
- * Now ask for the list of children again, since it might have changed
+ * Now ask for the list of tqchildren again, since it might have changed
* in between the last time and us selecting SubstructureNotifyMask.
*
* There is a (very small) chance that we might process a subtree twice:
@@ -178,21 +178,21 @@ selectEvents (Window window, Bool substructureOnly)
* XGrabServer(), but that'd be an impolite thing to do, and since it
* isn't required...
*/
- if (!XQueryTree (queue.display, window, &root, &parent,
- &children, &nofChildren))
+ if (!XQueryTree (queue.display, window, &root, &tqparent,
+ &tqchildren, &nofChildren))
{
return;
}
/*
- * Now do the same thing for all children.
+ * Now do the same thing for all tqchildren.
*/
for (i = 0; i < nofChildren; ++i)
{
- selectEvents (children[i], substructureOnly);
+ selectEvents (tqchildren[i], substructureOnly);
}
- if (nofChildren) (void) XFree ((char*) children);
+ if (nofChildren) (void) XFree ((char*) tqchildren);
}
#if 0