From b04f3e61ae6f729cd61f23172749d834ef7a3961 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 3 Nov 2008 17:57:33 +0000 Subject: [PATCH] (x-initialize-window-system): Call x-wm-set-size-hint after initialization. --- lisp/term/x-win.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 2770fad84e6..dc491704249 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -1540,6 +1540,12 @@ The value nil is the same as this list: ;; Don't let Emacs suspend under X. (add-hook 'suspend-hook 'x-win-suspend-error) + ;; During initialization, we defer sending size hints to the window + ;; manager, because that can induce a race condition: + ;; http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00033.html + ;; Send the size hints once initialization is done. + (add-hook 'after-init-hook 'x-wm-set-size-hint) + ;; Turn off window-splitting optimization; X is usually fast enough ;; that this is only annoying. (setq split-window-keep-point t) -- 2.39.2