Branch: r14.0.x

e8ece5f2 2018-09-30 11:41:42 gregory guy
clean up header in CMakeList, remove unused variable, this fixes issue #3

Signed-off-by: gregory guy <g-gregory@...>
(cherry picked from commit 43706e2965ee2f6cd32da2baa770a3942c394ae0)
M src/CMakeLists.txt
M src/main.cpp

src/CMakeLists.txt

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 @@
         main.cpp
         numpadvbutton.cpp
         resizabledragwidget.cpp
-        resizabledragwidget.h
   LINK
      tdecore-shared
      tdeui-shared

src/main.cpp

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 @@
 
 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 @@
 	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);