[FIX] Re: [BUG] Window resizing problem on Linux/intel GNOME

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Tue Feb 13 21:28:09 UTC 2001


On Tue, 13 Feb 2001 ajh18 at cornell.edu wrote:

> When maximizing my Squeak window (by clicking on the second button from
> the right on the GNOME title bar), Squeak does not repaint correctly,
> even after choosing 'restore display' from the World menu.  Squeak does
> work fine however when going full screen ('Escape Browser').

Squeak uses two X windows. The inner one didn't get resized
properly. Attached is the 1 line fix.

-- Bert
-------------- next part --------------
*** sqXWindow.c.tmp	Tue Feb 13 22:24:37 2001
--- sqXWindow.c	Tue Feb 13 22:24:54 2001
***************
*** 1909,1917 ****
      {
        w= (w / sizeof(void *)) * sizeof(void *);
        XResizeWindow(stDisplay, stParent, w, h);
-       XResizeWindow(stDisplay, stWindow, w, h);
        noteWindowChange();
      }
    return (w << 16) | h;  /* w is high 16 bits; h is low 16 bits */
  #endif
  }
--- 1909,1917 ----
      {
        w= (w / sizeof(void *)) * sizeof(void *);
        XResizeWindow(stDisplay, stParent, w, h);
        noteWindowChange();
      }
+   XResizeWindow(stDisplay, stWindow, w, h);
    return (w << 16) | h;  /* w is high 16 bits; h is low 16 bits */
  #endif
  }


More information about the Squeak-dev mailing list