From ab49ed37e6db6034680efaedfe9c9c9cc19024fd Mon Sep 17 00:00:00 2001 From: Huynh Huu Long Date: Thu, 23 Oct 2008 15:42:44 +0000 Subject: [PATCH] Improve the windowshape for antialiased window corners. This prevents accidently clicking the "Destroy my harddrive" button below them. svn path=/trunk/KDE/kdebase/workspace/; revision=875191 --- clients/oxygen/oxygenclient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 1d453050e9..5ecbadea2a 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -424,7 +424,9 @@ void OxygenClient::updateWindowShape() else { QRegion mask(6, 1, w-12, h-2); mask += QRegion(1, 6, w-2, h-12); - mask += QRegion(5, 5, w-10, h-10); + mask += QRegion(3, 3, w-6, h-6); + mask += QRegion(4, 2, w-8, h-4); + mask += QRegion(2, 4, w-4, h-8); setMask(mask); }