]> icculus.org git repositories - mikachu/openbox.git/commit
fix a focus race condition in two ways:
authorDana Jansens <danakj@orodu.net>
Fri, 11 Jan 2008 19:40:58 +0000 (14:40 -0500)
committerDana Jansens <danakj@orodu.net>
Fri, 11 Jan 2008 19:40:58 +0000 (14:40 -0500)
commit0ce14a727968736e57fb3fabba3794b46903875f
tree47919ce820037090a407995f227348cd6e079a5b
parentb447f16f6080e1a92c3ea6a5848609a7a96ea3ce
fix a focus race condition in two ways:

1. when focusing a window, ignore any enter events up until the serial of the X event causing the focus, not up until the last thing sent to the server.  if we get 2 enters very quickly, then we don't want to ignore the second one just because we are focusing the first window.
2. there is a race if you check (focus_client != d->client) in the delay_focus_func, because the current focused window might change by the time this focus_client would take effect, so don't check that.
openbox/event.c