diff lisp/term/x-win.el @ 99348:16244bb150a1

(x-initialize-window-system): Call x-wm-set-size-hint after initialization.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 03 Nov 2008 17:57:33 +0000
parents e826c0ef09ff
children 3291f859ce65
line wrap: on
line diff
--- a/lisp/term/x-win.el	Mon Nov 03 17:57:21 2008 +0000
+++ b/lisp/term/x-win.el	Mon Nov 03 17:57:33 2008 +0000
@@ -1540,6 +1540,12 @@
   ;; 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)