diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py b/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py index 0a933ec9..c347b40c 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py @@ -59,7 +59,17 @@ class flomniGuiTools: pos_x = self._SCREEN_WIDTH - self._WINDOW_WIDTH geometry = (pos_x, self._WINDOW_TOP_MARGIN, self._WINDOW_WIDTH, self._WINDOW_HEIGHT) self.flomni_window = self.gui.new("flomni", geometry=geometry) - time.sleep(1) + # The RPC response for gui.new() confirms the server has created the + # window object, not that it has actually settled at the requested + # geometry on screen (window-manager-level resize can lag behind + # that, worse over a remote desktop session) -- the very first dock + # added right after this (e.g. flomnigui_show_xeyealign()'s + # OMNY_XRayEye) can otherwise get laid out against a still-settling + # window, squeezing it down until the operator manually moves or + # resizes the window (which forces a relayout, masking the real + # timing issue rather than fixing it). Was 1s; bumped to 2s -- + # this is a pragmatic guess, not a confirmed-sufficient bound. + time.sleep(2) def flomnigui_stop_gui(self): self.gui.flomni.hide()