Hi there, I'm trying to get gtk-window-decorator to respect metacity's button_layout gconf key, and basing my work on a patch posted on the forums a while back: http://forum.go-compiz.org/viewtopic.php?p=1306&highlight=#1306 The patch works perfectly by itself against compiz 0.3.4, but against 0.3.6, it results in no buttons or titlebar text being drawn in the window decoration. What I've noticed is that if I edit the gtk-window-decorator source and even manually try any layout other than the default, the the window decoration becomes blank. Any ideas on what could be causing this, or how to begin debugging it? Thanks, -Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/compiz/attachments/20070112/12b0521f/attachment.html
> Hi there, > > I'm trying to get gtk-window-decorator to respect metacity's > button_layout gconf key, and basing my work on a patch posted on the > forums a while back: > > http://forum.go-compiz.org/viewtopic.php?p=1306&highlight=#1306 > <http://forum.go-compiz.org/viewtopic.php?p=1306&highlight=#1306> > > The patch works perfectly by itself against compiz 0.3.4, but against > 0.3.6, it results in no buttons or titlebar text being drawn in the > window decoration. What I've noticed is that if I edit the > gtk-window-decorator source and even manually try any layout other than > the default, the the window decoration becomes blank. > > Any ideas on what could be causing this, or how to begin debugging it?Hey, I'm working on the same patch, it works here with the latest version of gwd, but has some issues which i'm trying to solve. What doesn't work atm is: * decoration goes blank if either minimize, maximize or close is missing. (menu works) * the position of the action_menu doesn't get updated. i can place the icon anywhere, but the menu still pops up on the left. * if i move a button to the left before the action_menu - blank again. after the menu it works. i guess this is related to position thing. I'll post the patch if i can reslove those things, or maybe someone with more clue beats me to it. Gerd
On Fri, 2007-01-12 at 12:38 -0800, Joe Barnett wrote:> Hi there, > > I'm trying to get gtk-window-decorator to respect metacity's > button_layout gconf key, and basing my work on a patch posted on the > forums a while back: > > http://forum.go-compiz.org/viewtopic.php?p=1306&highlight=#1306great, I've very interested in including this.> > The patch works perfectly by itself against compiz 0.3.4, but against > 0.3.6, it results in no buttons or titlebar text being drawn in the > window decoration. What I've noticed is that if I edit the > gtk-window-decorator source and even manually try any layout other > than the default, the the window decoration becomes blank. > > Any ideas on what could be causing this, or how to begin debugging it?hm, gwd uses the location of buttons to figure out what stretch offset to use the titlebar decoration and if that code is not adjusted correctly it might be causing issues. if you send your current patch to the list and I can have a look at it. -David