[prev in list] [next in list] [prev in thread] [next in thread]
List: kwin
Subject: patch for #167138 (opacity rules ignored)
From: Thomas =?iso-8859-1?q?L=FCbking?= <thomas.luebking () web ! de>
Date: 2009-07-23 21:00:29
Message-ID: 200907232300.30150.thomas.luebking () web ! de
[Download RAW message or body]
attached...
can please so test and commit or permit me to?
Regards,
Thomas
["bug167138.diff" (text/x-patch)]
Index: activation.cpp
===================================================================
--- activation.cpp (Revision 996638)
+++ activation.cpp (Arbeitskopie)
@@ -861,6 +861,8 @@
if ( active == act )
return;
active = act;
+ const int ruledOpacity = active ? rules()->checkOpacityActive(opacity()*100) : \
rules()->checkOpacityInactive(opacity()*100); + setOpacity( ruledOpacity/100.0 );
workspace()->setActiveClient( act ? this : NULL, Allowed );
if ( active )
Index: rules.cpp
===================================================================
--- rules.cpp (Revision 996638)
+++ rules.cpp (Arbeitskopie)
@@ -853,7 +853,12 @@
setShortcut( rules()->checkShortcut( shortcut().toString()));
// see also Client::setActive()
if( isActive())
+ {
+ setOpacity( rules()->checkOpacityActive(opacity()*100)/100.0 );
workspace()->disableGlobalShortcutsForClient( \
rules()->checkDisableGlobalShortcuts( false )); + }
+ else
+ setOpacity( rules()->checkOpacityInactive(opacity()*100)/100.0 );
}
void Client::updateWindowRules()
Index: effects.cpp
===================================================================
--- effects.cpp (Revision 996638)
+++ effects.cpp (Arbeitskopie)
@@ -210,6 +210,8 @@
void EffectsHandlerImpl::windowOpacityChanged( EffectWindow* c, double old_opacity )
{
+ if (!c)
+ return;
if( static_cast<EffectWindowImpl*>(c)->window()->opacity() == old_opacity )
return;
foreach( const EffectPair &ep, loaded_effects )
_______________________________________________
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