Avoid creating documents immediately because there could be a modal dialog open. Modal code often assumes the current doc hasn't changed and calls `document_get_current` at different times.
Fixes #2599. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3395
-- Commit Summary --
* Open CLI docs only once main window is active
-- File Changes --
M src/socket.c (21)
-- Patch Links --
https://github.com/geany/geany/pull/3395.patch https://github.com/geany/geany/pull/3395.diff