diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-09-16 11:27:51 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-09-16 11:27:51 +0400 |
commit | f8eb15727ae6a5c629e27ab9755e638766b27822 (patch) | |
tree | fd4dd11557da34b948a5f4ee4e85168005097922 /src/frame.h | |
parent | 578c21bc0316661f211dd73a9eb65c8213bd372f (diff) |
Fix X event waiting to handle multiple frames.
* frame.h (struct frame) [HAVE_X_WINDOWS]: New member wait_event_type.
* xterm.c (pending_event_wait): Remove. Adjust users.
(x_detect_focus_change): Pass frame arg.
(handle_one_xevent): Find related frame early and clear per-frame
wait_event_type only if this is an event for the relevant frame.
(x_wait_for_event): Use per-frame wait_event_type.
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index d8a6d38009..c5ad71628a 100644 --- a/src/frame.h +++ b/src/frame.h @@ -328,6 +328,11 @@ struct frame unsigned int external_menu_bar : 1; #endif +#if defined (HAVE_X_WINDOWS) + /* Used by x_wait_for_event when watching for an X event on this frame. */ + int wait_event_type; +#endif + /* Next two bitfields are mutually exclusive. They might both be zero if the frame has been made invisible without an icon. */ |