window: fix initial shadow width for maximized/fullscreen windows
authorCosimo Cecchi <cosimo@endlessm.com>
Mon, 13 Apr 2015 22:31:10 +0000 (15:31 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Apr 2015 02:12:56 +0000 (22:12 -0400)
commit740bcf5fe0ff9dd25856e5d000faff80bcf44eea
treeeafdc751fec1450db365f1628c5bf69b34318c1a
parent5dbccc868e2c066a2b260f22cac2de8ac705f2ba
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.

https://bugzilla.gnome.org/show_bug.cgi?id=747808
gtk/gtkwindow.c