Bug 209274

Summary: Window opacity setting not checked after minimize and restore
Product: [Plasma] kwin Reporter: Rich Johnson <rjohnson>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ubuntu
Priority: LO    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rich Johnson 2009-10-03 10:05:48 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    Ubuntu Packages

This is a copy from a report filed in Launchpad at https://bugs.launchpad.net/bugs/424715. Myself and others on IRC were able to confirm the issue was in various distros as well as in the latest trunk build. To reproduce this issue, perform the following steps:

1) Open up an application (I used Konqueror)
2) Right click on the title bar
3) Select Opacity >  (select a different percentage than what is selected (100% by default))
4) Minimize the window
5) Restore the window
6) Go back and look at opacity settings, there is no longer a checkmark in the percentage you selected.
Comment 1 Martin Flöser 2009-10-03 10:11:01 UTC
yes reproducable and interesting bug ;-)
Comment 2 Rich Johnson 2009-10-03 10:21:18 UTC
Here is a comment just left in the Launchpad report that I didn't test:

"Well, it also forgets opacity in the sense that windows tend to get slightly more transparent over time than the originally selected transparency."

If anyone can test that, it would be greatly appreciated, as I am going to bed for the evening :)
Comment 3 Martin Flöser 2009-10-03 10:31:48 UTC
(In reply to comment #2)
> "Well, it also forgets opacity in the sense that windows tend to get slightly
> more transparent over time than the originally selected transparency."
> 
> If anyone can test that, it would be greatly appreciated, as I am going to bed
> for the evening :)
Yes we just already figured that one out. And I must say I love it :-D We have to promote it as a feature and close that bug report as invalid :-P

No serious: that's probably related. The decreasing opacity causes the check mark to be removed.
Comment 4 lucas 2009-10-03 11:11:09 UTC
SVN commit 1030828 by lmurray:

Fix double->int conversions to prevent incorrect rounding of window
opacity at KWin start and window focus change.
BUG: 209274


 M  +3 -1      activation.cpp  
 M  +2 -2      rules.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1030828
Comment 5 lucas 2009-10-03 11:14:23 UTC
SVN commit 1030835 by lmurray:

Backport r1030828:
Fix double->int conversions to prevent incorrect rounding of window
opacity at KWin start and window focus change.
CCBUG: 209274


 M  +3 -1      activation.cpp  
 M  +2 -2      rules.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1030835
Comment 6 lucas 2009-10-16 02:29:03 UTC
*** Bug 210735 has been marked as a duplicate of this bug. ***