aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Slit.cc15
-rw-r--r--src/main.cc5
2 files changed, 4 insertions, 16 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index dbbb3ac..7716813 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -515,19 +515,12 @@ void Slit::addClient(Window w) {
515 515
516 XWindowAttributes attrib; 516 XWindowAttributes attrib;
517 517
518#ifdef KDE
519 if (screen().isKdeDockapp(w)) 518 if (screen().isKdeDockapp(w))
520 client->resize(24, 24); 519 client->resize(24, 24);
521 else 520 else if (XGetWindowAttributes(disp, client->window(), &attrib))
522#endif // KDE 521 client->resize(attrib.width, attrib.height);
523 522 else // set default size if we failed to get window attributes
524 { 523 client->resize(64, 64);
525 if (XGetWindowAttributes(disp, client->window(), &attrib)) {
526 client->resize(attrib.width, attrib.height);
527 } else { // set default size if we failed to get window attributes
528 client->resize(64, 64);
529 }
530 }
531 524
532 // disable border for client window 525 // disable border for client window
533 XSetWindowBorderWidth(disp, client->window(), 0); 526 XSetWindowBorderWidth(disp, client->window(), 0);
diff --git a/src/main.cc b/src/main.cc
index 677ed0e..01b7d6e 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -126,11 +126,6 @@ static void showInfo(ostream &ostr) {
126#endif // HAVE_IMLIB2 126#endif // HAVE_IMLIB2
127 "IMLIB2"<<endl<< 127 "IMLIB2"<<endl<<
128 128
129#ifndef KDE
130 NOT<<
131#endif // KDE
132 "KDE"<<endl<<
133
134#ifndef NLS 129#ifndef NLS
135 NOT<< 130 NOT<<
136#endif // NLS 131#endif // NLS