When an Aurorae theme provides the "decoration-maximized-center" element, this element is displayed at the top-left of the window decoration superimposed on top of the "decoration-top" element (see attached screenshot). The "decoration-top" should be stretched to fit the maximized window's horizontal size, as I understand. Reproducible: Always Steps to Reproduce: 1. Install and activate the "air-oxygen" window decoration. (In System Settings -> Workspace Appearance -> Window Decorations, click "Get New Decorations..." to search for and install "air-oxygen". Then activate it) 2. Maximize a window. Actual Results: The "decoration-maximized-center" element is placed at the top-left of the window decoration, appearing as an extra-light section of the title bar. The "decoration-top" element appears to be used in the title bar simultaneously, and this element is stretched to fit the window size. Expected Results: The "decoration-maximized-center" element should be stretched horizontally to fit the window size. ** My System ** OS: Kubuntu 12.04 64-bit w/ KDE SC 4.12.2 (from Kubuntu backports PPA) Motherboard: ASRock X58 Extreme3 (Intel X58 chipset) CPU: Intel Core i7 930 (2.8 GHz quad-core) RAM: 12GB DDR3 Video: NVIDIA GeForce 7900 GS w/ 256 MB RAM (PCI Express) Linux Kernel: 3.5.0-46-generic NVIDIA video driver: 304.116 Screen #1 Resolution: 1280 x 960 @ 100 Hz Screen #2 Resolution: 1024 x 768 @ 75 Hz
Created attachment 85308 [details] screenshot showing the bug
See http://forum.kde.org/viewtopic.php?f=111&t=120953#p309602 There seems an issue with svg parsing in either plasma components, or qt/qml or some svg lib or the combination of all. If you can confirm the "workaround" as well, this is most likely not a bug in KWin/Aurorae but somewhere deeper.
I read through the linked thread, and decided to do some testing. All I have to say is: there is something *really weird* going on here. Here are my test results: 1. Every theme I own that contains the "decoration-maximized-center" element exhibits this bug. I decided to do my testing using a theme that I am currently developing called "Frosty". I can provide the files for this theme if necessary, but I would bet that the behavior I discovered can be reproduced with any theme containing the "decoration-maximized-center" element. 2. Aurorae seems to use some caching of the SVG elements, and I found it necessary to disable and then re-enable compositing (shift-alt-F12) to refresh these elements. All-in-all, my steps between each change to the decoration.svgz file included: a) Changing the window decoration to Oxygen and then back to Frosty. After this step, Aurorae still wouldn't show the changes I had made. b) Disabling and re-enabling compositing. Now Aurorae would show the changes I had made. 3. I made a backup of the decoration.svgz file to "decoration.svgz.BROKEN", then followed the steps in the forum thread linked in comment #2: a) Changed the color of the "decoration-maximized-center" element. Result: the color changed, but the bug still remained. b) Renamed the "decoration-maximized-center" element to "decoration-maximized-top". Result: no change. c) Renamed it back to "decoration-maximized-center". Result: no change. 4. I was about to post that following the steps had made no difference for me when I decided to play with the SVG element some more. I tried the following things in this order: a) removed a couple of the group elements b) removed everything from the group except one object and named that object "decoration-maximized-center" (i.e., no group present, just naming the individual object) c) adding a couple more elements to the group d) playing around with the naming some more (named it "poop", then back to "decoration-maximized-center") 5. It was after step "d" above that suddenly Aurorae began stretching the "decoration-maximized-center" element. I remember being puzzled, because this was after one of many attempts at renaming the maximized SVG element. Why did it work *this time* and not the others? 6. I made a backup of this version of the decoration.svgz to "decoration.svgz.WORKS", then I removed the additional elements from the maximized SVG group I had added in 4.c above. Result: the maximized decoration still worked. 7. I decided to see if the problem really was with the svgz file, so I replaced the decoration.svgz with the original backup. Result: decoration is still stretched, even with the old svgz! WTF?! 8. I figured that perhaps the Aurorae cache wasn't being fully updated since the backup decoration.svgz had an older timestamp, so I made a quick change to the file and saved it to update the timestamp: Result: decoration still stretched. 9. I moved my "Frosty" theme to a new folder, which I renamed "Frosty-blah", and I updated the theme name in the "metadata.desktop" and "Frostyrc" files (which I renamed "Frosty-blahrc") as well. I then loaded this new theme. Result: bug returns; maximized element is no longer stretched. 10. I then replaced "decoration.svgz" with the backup of the svgz that had supposedly fixed the bug. Result: bug still remains. Needless to say, I am thoroughly confused. Perhaps there is something weird with the caching going on?
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
I can no longer reproduce this bug using KDE neon Developer Edition Git-Unstable. Closing as fixed.