commit | 18f788d741b0e4757b23ea4c87960cb7aef42865 | [log] [tgz] |
---|---|---|
author | Daniel Erat <derat@chromium.org> | Thu Mar 25 23:36:42 2010 |
committer | Daniel Erat <derat@chromium.org> | Thu Mar 25 23:36:42 2010 |
tree | 2d7d68824ef1a1195e8666c144fa8639ae21db6c | |
parent | 74240a61da82d0aa0603805139ca59e66075de46 [diff] |
autox: Fix race condition and add get_screen_size(). python-xlib reuses IDs for subsequent windows, which is very handy for finding buggy code. :-( When we create a new window, there may be an in-flight DestroyNotify event about a previous window sharing its ID. Sync before creating the new window to make sure that we don't misinterpret which window the event is about. BUG=none TEST=none Review URL: http://codereview.chromium.org/1386002