diff options
Diffstat (limited to 'src/Slit.cc')
-rw-r--r-- | src/Slit.cc | 15 |
1 files changed, 4 insertions, 11 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); |