From: Chong Yidong Date: Mon, 3 Nov 2008 17:57:33 +0000 (+0000) Subject: (x-initialize-window-system): Call x-wm-set-size-hint after X-Git-Tag: emacs-pretest-23.0.90~2000 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b04f3e61ae6f729cd61f23172749d834ef7a3961;p=emacs.git (x-initialize-window-system): Call x-wm-set-size-hint after initialization. --- 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)