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

List:       kwin
Subject:    kdebase/kwin/clients/b2
From:       Luciano Montanaro <mikelima () cirulla ! net>
Date:       2004-10-25 10:18:00
Message-ID: 20041025101800.1240E16C3B () office ! kde ! org
[Download RAW message or body]

CVS commit by montanaro: 

Worked around the isResizable() problem: check if the window is resizable
only when initializing the decoration for a given window.
CCMAIL: kwin@kde.org


  M +3 -2      b2client.cpp   1.86
  M +1 -0      b2client.h   1.42


--- kdebase/kwin/clients/b2/b2client.cpp  #1.85:1.86
@@ -404,4 +404,5 @@ void B2Client::init()
     titlebar->recalcBuffer();
     titlebar->installEventFilter(this);
+    resizable = isResizable();
 }
 
@@ -484,5 +485,5 @@ void B2Client::addButtons(const QString&
             break;
         case 'R': // Resize button
-            if (isResizable() && !button[BtnResize]) {
+            if (resizable && !button[BtnResize]) {
                 button[BtnResize] = new B2Button(this, tb, tips[BtnResize]);
                 button[BtnResize]->setPixmaps(P_RESIZE);
@@ -504,5 +505,5 @@ bool B2Client::mustDrawHandle() const 
         return false;
     } else {
-        return do_draw_handle && isResizable();
+        return do_draw_handle & resizable;
     }
 }

--- kdebase/kwin/clients/b2/b2client.h  #1.41:1.42
@@ -145,4 +145,5 @@ private:
     int in_unobs;
     QTime time;
+    bool resizable;
 };
 


_______________________________________________
Kwin mailing list
Kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin
[prev in list] [next in list] [prev in thread] [next in thread] 

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