To: [email protected]
Subject: patch 5.4n.1
From: Bram Moolenaar <[email protected]>
Date: Mon, 05 Jul 1999 11:15:13 +0200
Sender: [email protected]


Just a minor change.  Only people that compile with XIM and GTK might notice a
difference.


Patch 5.4n.1
Problem:    GTK: When compiling with XIM the window sometimes pops up in the
           wrong place, most of it is off-screen.  Depends on 'guifont'.
Solution:   Move xim_init() to after gtk_widget_show() in gui_mch_open().
Files:      src/gui_gtk_x11.c


*** ../vim-5.4n/src/gui_gtk_x11.c       Sun Jul  4 20:35:52 1999
--- src/gui_gtk_x11.c   Mon Jul  5 10:51:12 1999
***************
*** 923,932 ****
     long oldrows, oldcols;
     int x = -1, y = -1;

- #ifdef USE_XIM
-     xim_init();
- #endif
-
     /* determine user specified geometry, if present.
      * XXX - don't know if doing it this late is correct or not. */
     if (gui.geom) {
--- 923,928 ----
***************
*** 953,958 ****
--- 949,958 ----
      */
     gtk_main_iteration_do(FALSE);
     gtk_widget_show(gui.mainwin);
+
+ #ifdef USE_XIM
+     xim_init();
+ #endif

     update_window_manager_hints(oldcols * gui.char_width,
                               oldrows * gui.char_height,

--
TALL KNIGHT: We are now no longer the Knights Who Say Ni!
ONE KNIGHT:  Ni!
OTHERS:      Sh!
ONE KNIGHT:  (wispers) Sorry.
                "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

--/-/---- Bram Moolenaar ---- [email protected] ---- [email protected] ---\-\--
 \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /