summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2018-09-30 17:18:42 +0200
committerSlávek Banko <[email protected]>2018-09-30 18:41:42 +0200
commite8ece5f266a9e0e32101897c2ede7b5a0051a8d7 (patch)
treeb08fc776ea6a2e805930e8e6db257f02c031aeb3 /src/main.cpp
parentb736cc351a989ec232c1d4520b9f6d018cf263c6 (diff)
downloadkvkbd-e8ece5f266a9e0e32101897c2ede7b5a0051a8d7.tar.gz
kvkbd-e8ece5f266a9e0e32101897c2ede7b5a0051a8d7.zip
clean up header in CMakeList, remove unused variable, this fixes issue #3
Signed-off-by: gregory guy <[email protected]> (cherry picked from commit 43706e2965ee2f6cd32da2baa770a3942c394ae0)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7f95969..d080452 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -45,8 +45,8 @@ static TDECmdLineOptions options[] =
void findAloneWindow()
{
- unsigned int numkids, i,mapped,scrn;
- Window r, p;
+ unsigned int numkids, scrn;
+ Window root_id, parent_id;
Window *kids=0;
//XWindowAttributes attr;
Window root;
@@ -59,11 +59,11 @@ void findAloneWindow()
scrn = DefaultScreen(dipsy);
root = RootWindow(dipsy, scrn);
- mapped = 0;
- XQueryTree(dipsy, root, &r, &p, &kids, &numkids);
+
+ XQueryTree(dipsy, root, &root_id, &parent_id, &kids, &numkids);
- for (i = 0; i < numkids; ++i)
+ for (unsigned int i = 0; i < numkids; ++i)
{
XFetchName(dipsy, kids[i], &win_name);
TQString c(win_name);