gtkwindow: Clean up the code for an optimization

Desktop / GNOME / GTK - Jasper St. Pierre [mecheye.net] - 15 July 2014 13:49 UTC

It's hard to figure out what the "expected_reply" means except under close examination -- it's actually talking about whether this was a reply to a ConfigureRequest or not. The inversion in the check doesn't help either.

Make the code cleaner by moving it above the freeze/thaw case, and making the check more explicit and without a confusing variable. If we haven't sent any ConfigureRequests out, then it must be a gratuitous ConfigureNotify.

2e4018c gtkwindow: Clean up the code for an optimization
gtk/gtkwindow.c | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)

Upstream: git.gnome.org


  • Share