From d4304445d5548f431e107f3452a8e1b7a0e6ea00 Mon Sep 17 00:00:00 2001 From: Malte Starostik Date: Sun, 13 May 2001 06:58:29 +0000 Subject: [PATCH] Support for resizing windows on the top border svn path=/trunk/kdebase/kwin/; revision=96759 --- clients/web/Web.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/clients/web/Web.cpp b/clients/web/Web.cpp index 8bcb5092bb..c22ad73c6a 100644 --- a/clients/web/Web.cpp +++ b/clients/web/Web.cpp @@ -262,7 +262,14 @@ Web::mousePosition(const QPoint & p) const if (y < titleSpacer_->geometry().height()) { - return Client::Center; + if ((y < 4 && x < 20) || x < 4) + return Client::TopLeft; + else if ((y < 4 && x > width() - 20) || x > width() - 4) + return Client::TopRight; + else if (y < 4) + return Client::Top; + else + return Client::Center; } else if (y < height() - 20) {