clean up header in CMakeList, remove unused variable, this fixes issue #3

Signed-off-by: gregory guy <g-gregory@gmx.fr>
(cherry picked from commit 43706e2965)
r14.0.x
gregory guy 6 years ago committed by Slávek Banko
parent b736cc351a
commit e8ece5f266
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -23,7 +23,6 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
main.cpp main.cpp
numpadvbutton.cpp numpadvbutton.cpp
resizabledragwidget.cpp resizabledragwidget.cpp
resizabledragwidget.h
LINK LINK
tdecore-shared tdecore-shared
tdeui-shared tdeui-shared

@ -45,8 +45,8 @@ static TDECmdLineOptions options[] =
void findAloneWindow() void findAloneWindow()
{ {
unsigned int numkids, i,mapped,scrn; unsigned int numkids, scrn;
Window r, p; Window root_id, parent_id;
Window *kids=0; Window *kids=0;
//XWindowAttributes attr; //XWindowAttributes attr;
Window root; Window root;
@ -59,11 +59,11 @@ void findAloneWindow()
scrn = DefaultScreen(dipsy); scrn = DefaultScreen(dipsy);
root = RootWindow(dipsy, scrn); 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); XFetchName(dipsy, kids[i], &win_name);
TQString c(win_name); TQString c(win_name);

Loading…
Cancel
Save