]> git.eshelyaron.com Git - emacs.git/commitdiff
(x-initialize-window-system): Call x-wm-set-size-hint after
authorChong Yidong <cyd@stupidchicken.com>
Mon, 3 Nov 2008 17:57:33 +0000 (17:57 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 3 Nov 2008 17:57:33 +0000 (17:57 +0000)
initialization.

lisp/term/x-win.el

index 2770fad84e641bb83e7783d9fe86e9d2297e0932..dc491704249f50963c54328277ffa59c97403170 100644 (file)
@@ -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)