# HG changeset patch # User drewp@bigasterisk.com # Date 1370475055 0 # Node ID d5ba3e20f666a8d1cf7e8e20afb5a3a7213891c9 # Parent df3220bb7a2d3614d6a69baf3c9d833187cca83a remerge toplevelat changes Ignore-this: 2c8d368635f657541f77657045eb5399 diff -r df3220bb7a2d -r d5ba3e20f666 light9/uihelpers.py --- a/light9/uihelpers.py Wed Jun 05 23:28:07 2013 +0000 +++ b/light9/uihelpers.py Wed Jun 05 23:30:55 2013 +0000 @@ -62,12 +62,13 @@ def savePos(ev): geo = tl.geometry() - - # todo: need a way to filter out the startup window sizes that - # weren't set by the user - if geo.startswith("1x1") or geo.startswith(("378x85", "378x86")): + if not isinstance(ev.widget, Tkinter.Tk): + # I think these are due to internal widget size changes, + # not the toplevel changing return - if geo == lastSaved[0]: + # this is trying to not save all the startup automatic window + # sizes. I don't have a better plan for this yet. + if graphSetTime[0] == 0 or time.time() < graphSetTime[0] + 3: return if not setOnce[0]: return