]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare variable before XSETFRAME to avoid gcc 2.96 error.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 17 Nov 2006 13:02:53 +0000 (13:02 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 17 Nov 2006 13:02:53 +0000 (13:02 +0000)
 Tetsurou Okazaki  <okazaki@be.to>  (tiny change)

src/ChangeLog
src/xterm.c

index 2f7149e6e94a6321f54caa525a62c067b1288161..3757d350eb5229931d540ac11bed7cd9e8b5186d 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-17  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
+
+       * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
+       to avoid gcc 2.96 error.
+
 2006-11-17  NIIMI Satoshi  <sa2c@sa2c.net>  (tiny change)
 
        * search.c (simple_search): In the loop of backward searching,
index 7d86168f01f13458d9d5cea08deb9ad83f1525c7..a266282c6ac907a92be231a4271f2181f6a41e75 100644 (file)
@@ -8333,13 +8333,14 @@ do_ewmh_fullscreen (f)
   if (have_net_atom) 
     {
       Lisp_Object frame;
-      XSETFRAME (frame, f);
       const char *atom = "_NET_WM_STATE";
       const char *fs = "_NET_WM_STATE_FULLSCREEN";
       const char *fw = "_NET_WM_STATE_MAXIMIZED_HORZ";
       const char *fh = "_NET_WM_STATE_MAXIMIZED_VERT";
       const char *what = NULL;
 
+      XSETFRAME (frame, f);
+
       /* If there are _NET_ atoms we assume we have extended window manager
          hints.  */
       switch (f->want_fullscreen)