summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2018-09-30 17:18:42 +0200
committergregory guy <g-gregory@gmx.fr>2018-09-30 17:18:42 +0200
commit43706e2965ee2f6cd32da2baa770a3942c394ae0 (patch)
treea3df04a9c1b927599a17b87eef0187e938f8f8d3 /src
parentf39f545444a1c3b4c315029fbedb118d24010dd0 (diff)
downloadkvkbd-43706e2965ee2f6cd32da2baa770a3942c394ae0.tar.gz
kvkbd-43706e2965ee2f6cd32da2baa770a3942c394ae0.zip
clean up header in CMakeList, remove unused variable, this fixes issue #3
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/main.cpp10
2 files changed, 5 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ca7a8df..82c1669 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -23,7 +23,6 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
main.cpp
numpadvbutton.cpp
resizabledragwidget.cpp
- resizabledragwidget.h
LINK
tdecore-shared
tdeui-shared
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);