diff options
| author | Dana Jansens <danakj@orodu.net> | 2011-10-06 10:03:52 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2011-10-06 12:01:30 -0400 |
| commit | 303cbe76dc2dc273cd7e68a5eaf96c2af3b5d7ab (patch) | |
| tree | cceb0953d299e07fb76e6ba23aea9aa151fa84f3 /openbox/event.c | |
| parent | a23954ec17c17259f75e0f4e647975bbf4ede058 (diff) | |
Don't show prompts inside the message handler to prevent recursion
Showing prompts causes messages to be created which causes the glib message
handler to abort(). Save the messages and show them when done all other
processing for the current event.
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c index ba156da6..b9ec1c51 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -736,6 +736,9 @@ static void event_process(const XEvent *ec, gpointer data) used = event_handle_prompt(prompt, e); } + /* show any debug prompts that are queued */ + ob_debug_show_prompts(); + /* if something happens and it's not from an XEvent, then we don't know the time, so clear it here until the next event is handled */ event_curtime = event_sourcetime = CurrentTime; |
