changeset 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 49c34c663c00
children c764fa1cc84a
files lisp/term/x-win.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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)