[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kwin/clients/b2
From: Luciano Montanaro <mikelima () cirulla ! net>
Date: 2004-09-26 10:29:24
Message-ID: 20040926102924.6DF47126DA () office ! kde ! org
[Download RAW message or body]
CVS commit by montanaro:
Fixed glitch on first uresizable window opening.
M +5 -2 b2client.cpp 1.83
M +0 -1 b2client.h 1.41
--- kdebase/kwin/clients/b2/b2client.cpp #1.82:1.83
@@ -78,4 +78,5 @@ static bool pixmaps_created = false;
static bool colored_frame = false;
static bool do_draw_handle = true;
+static bool drawSmallBorders = false;
// =====================================
@@ -106,4 +107,6 @@ static void read_config(B2ClientFactory
colored_frame = conf.readBoolEntry("UseTitleBarBorderColors", false);
do_draw_handle = conf.readBoolEntry("DrawGrabHandle", true);
+ drawSmallBorders = !options()->moveResizeMaximizedWindows();
+
QString opString = conf.readEntry("MenuButtonDoubleClickOperation", "NoOp");
if (opString == "Close") {
@@ -499,9 +502,8 @@ void B2Client::addButtons(const QString&
bool B2Client::mustDrawHandle() const
{
- bool drawSmallBorders = !options()->moveResizeMaximizedWindows();
if (drawSmallBorders && (maximizeMode() & MaximizeVertical)) {
return false;
} else {
- return draw_handle && isResizable();
+ return do_draw_handle && isResizable();
}
}
@@ -695,4 +697,5 @@ void B2Client::doShape()
} else {
mask -= QRect(0, height() - 1, 1, 1); // bottom left point
+ mask -= QRect(width() - 1, height() - 1, 1, 1); //bottom right point
}
--- kdebase/kwin/clients/b2/b2client.h #1.40:1.41
@@ -145,5 +145,4 @@ private:
int in_unobs;
QTime time;
- bool draw_handle;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic