[FIX] Re: [BUG] Full-screen Linux/i586 won't accept keyboard input

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


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

> Hello again, I just noticed my Squeak does not accept any keystrokes
> when in full-screen mode, but it does accept mouse input.

Another 1-line fix attached :)

Squeak simply did not grab the input focus, and since it told the Window
Manager to ignore its window, the WM does not bother giving it to Squeak.

-- Bert
-------------- next part --------------
*** sqXWindow.c.tmp	Tue Feb 13 22:24:37 2001
--- sqXWindow.c	Tue Feb 13 22:34:14 2001
***************
*** 2076,2081 ****
--- 2076,2082 ----
  	  XResizeWindow(stDisplay, stWindow, scrW, scrH);
  	  XLowerWindow(stDisplay, stParent);
  	  XRaiseWindow(stDisplay, stWindow);
+ 	  XSetInputFocus(stDisplay, stWindow, RevertToPointerRoot, CurrentTime);
  	  XSynchronize(stDisplay, False);
  	  windowState= WIN_ZOOMED;
  	}


More information about the Squeak-dev mailing list