No need for a hard reset for SettingButtons changes, KCommonDecoration can handle button reset.

svn path=/trunk/kdebase/kwin/; revision=399854
This commit is contained in:
Sandro Giessl 2005-03-22 23:08:50 +00:00
parent e70e385bf9
commit 2fd48c13e9
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,5 @@
/* Plastik KWin window decoration
Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
based on the window decoration "Web":
Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>
@ -120,6 +120,9 @@ bool PlastikHandler::reset(unsigned long changed)
if (changed & SettingColors || changed & SettingFont)
{
needHardReset = false;
} else if (changed & SettingButtons) {
// handled by KCommonDecoration
needHardReset = false;
}
if (needHardReset) {

View file

@ -1,5 +1,5 @@
/* Plastik KWin window decoration
Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
based on the window decoration "Web":
Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>