From: Reginald Kennedy Date: Wed, 23 Mar 2016 02:38:38 +0000 (+0800) Subject: Fix possible delay on uniconify/search_win/search_workspace. X-Git-Tag: SPECTRWM_3_0_0~23 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/37f7ee73cc676ce1c964c8d0455ef75f669e60f8 Fix possible delay on uniconify/search_win/search_workspace. --- diff --git a/spectrwm.c b/spectrwm.c index 3809446..f5b4eac 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -11613,6 +11613,9 @@ noconfig: } } + if (search_resp) + search_do_resp(); + num_readable = poll(pfd, bar_extra ? 2 : 1, 1000); if (num_readable == -1) { DNPRINTF(SWM_D_MISC, "poll failed: %s", @@ -11625,9 +11628,6 @@ noconfig: if (restart_wm) restart(NULL, NULL, NULL); - if (search_resp) - search_do_resp(); - if (!running) goto done;