[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kwin/clients/b2
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2003-04-29 11:40:39
[Download RAW message or body]

CVS commit by lunakl: 

Fix #57690 - don't let the dragable area of titlebar vanish completely.


  M +5 -2      b2client.cpp   1.34


--- kdebase/kwin/clients/b2/b2client.cpp  #1.33:1.34
@@ -920,5 +920,8 @@ void B2Client::positionButtons()
 {
     QFontMetrics fm(options->font(isActive()));
-    int textLen = fm.width(caption());
+    QString cap = caption();
+    if( cap.length() < 5 ) // make sure the titlebar has sufficiently wide
+        cap = "XXXXX";     // area for dragging the window
+    int textLen = fm.width( cap );
 
     QRect t = titlebar->captionSpacer->geometry();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic