dot/xinitrc: Run Emacs with GDK_NATIVE_WINDOWS=1.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 9 Nov 2009 14:44:37 +0000 (14:44 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 9 Nov 2009 15:10:53 +0000 (15:10 +0000)
This bodges around an Emacs bug which causes menus to be empty and
scroll bars to disappear randomly.  The bug appears in Emacs 22 too.

dot/xinitrc

index b6d87cd..f607193 100755 (executable)
@@ -195,7 +195,8 @@ declare -i \
   emacsy="(XHEIGHT - e_vextra)/e_lineht"
 
 start-emacs () {
-  run bgclients noip $emacs -geometry ${emacsx}x${emacsy}+0+0
+  GDK_NATIVE_WINDOWS=1 run bgclients noip \
+    $emacs -geometry ${emacsx}x${emacsy}+0+0
 }
 
 ## Now place some xterms.