GNOME Bugzilla – Bug 725751
Fix handling of dynamic updates to colors/font/etc.
Last modified: 2014-03-05 22:22:01 UTC
Since the introduction of frame sync in GTK+, updates to titlebar font and colors haven't been working because GTK+ counts on the frame clock to do style updates, and the frame clock doesn't run for an unmapped GdkWindow. (It's possible that GtkStyleContext changes subsequent to the introduction of the frame clock were also needed to fully break things.) We actually need to map the MetaFrames GdkWindow and let the compositor code send out the frame sync messages in order to pick up style changes. Hopefully no bad side effects will occur from this - we make the window override-redirect, 1x1, and outside the bounds of the screen.
Created attachment 271031 [details] [review] Fix handling of dynamic updates to colors/font/etc.
Review of attachment 271031 [details] [review]: Looks good. ::: src/ui/frames.c @@ +529,3 @@ + NULL); + + gtk_window_move (GTK_WINDOW (frames), -200, -200); Add a comment about how -200,-200 was picked arbitrarily, and how it's *not* -100,-100 because that's what meta_create_offscreen_window uses, and we need to manage this window.
Attachment 271031 [details] pushed as 4a8f7aa - Fix handling of dynamic updates to colors/font/etc.