GNOME Bugzilla – Bug 608511
Theme, button background, left_middle drawn for left_right
Last modified: 2014-06-09 18:08:12 UTC
Created attachment 152620 [details] Example theme draw_ops specified for button function=left_middle_background are also drawn for button function=left_right_background. draw_ops specified for button function=left_right_background are then drawn over this. This makes some theme ideas extremely hard to realize (transparent corners of buttons for left_left and left_right, but not for left_middle).
Created attachment 152621 [details] Screenshot, magnification, red is left_middle_background drawn behind left_right_background
Created attachment 152623 [details] Screenshot, magnification, right_middle_background drawn behind right_right_background This also happens for button function=right_middle_background being drawn behind button function=right_right_background.
Commited a patch on Launchpad for this problem. https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/535088 You can get then patch here : http://launchpadlibrarian.net/40918098/Metacity-2.28.1-patch
Created attachment 156312 [details] [review] Metacity 2.28.1 button background patch This patch correct multiple problems : - Transparent backgrounds which overlap - Background applied when only one button - Left button clickable by clicking on his left when window is maximised
Updated patch. Added some comments where I made modifications. Reported modifications I made for the left side to the right side. Rolled back some modifications I made, which didn't seems to do anything so I prefer to leave code unmodified in this case. You can again find the bug report here : https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/535088 And the new patch here : http://launchpadlibrarian.net/41414008/Metacity-2.28.1-20100320.patch If you need more comments on the modifications I made, feel free to ask for.
I'm working on implementing light-themes into Debian and I have a problem which this patch fixes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610936 However apparently this patch hasn't been pushed upstream yet, could you please do so? Thanks, Adnan
https://git.gnome.org/browse/metacity/commit/?id=113b965f8cc260117fc4690be2dcc60b8a77deb1