GNOME Bugzilla – Bug 747808
window: fix initial shadow width for maximized/fullscreen windows
Last modified: 2015-04-17 02:26:20 UTC
See attached patch for details.
Created attachment 301495 [details] [review] window: fix initial shadow width for maximized/fullscreen windows To calculate the shadow width, we look at the value of priv->fullscreen and priv->maximized. Those fields will have the actual value only after GTK receives back a window state event though, so they will be wrong in _realize(). Look at priv->fullscreen_initially and priv->maximize_initially too, to avoid the size changing right after realize, which would make the window flicker if maximized at startup.
Review of attachment 301495 [details] [review]: Good catch! But I'm a little worried that always looking at those initially bits might be risky, and maybe we should consider them only if !mapped. Looking e.g. at gtk_window_maximize, we do set maximize_initially, regardless of whether we're already mapped or not.
Attachment 301495 [details] pushed as 740bcf5 - window: fix initial shadow width for maximized/fullscreen windows