home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.freefriends.org
/
ftp.freefriends.org.tar
/
ftp.freefriends.org
/
arnold
/
Source
/
gwm-dist.tar.gz
/
gwm-dist.tar
/
PATCH
< prev
next >
Wrap
Text File
|
1993-07-08
|
1KB
|
34 lines
[See README.build-gwm for information about how to apply this patch.
Thanks to David Hogan for finding the bug and working out this fix.]
*** wops.c-KEEP Mon Oct 21 19:36:25 1991
--- wops.c Wed Dec 16 14:00:01 1992
***************
*** 787,793 ****
return NIL;
if (cw -> type == ClientWindowClass) {
if (cw -> cached_props -> wm_take_focus) {
! send_protocol_message(cw -> client, XA_WM_TAKE_FOCUS, 0, 0, 0);
} else if (GWM_check_input_focus_flag || ((cw -> cached_props ->
wm_hints.flags & InputHint) &&
(cw -> cached_props -> wm_hints.input) && cw -> client)) {
--- 787,804 ----
return NIL;
if (cw -> type == ClientWindowClass) {
if (cw -> cached_props -> wm_take_focus) {
! Time t;
!
! if (TriggeringEvent->xany.type == ButtonPress)
! t = TriggeringEvent->xbutton.time;
! else
! t = 0;
! send_protocol_message(cw -> client, XA_WM_TAKE_FOCUS, t, 0, 0);
! if ((cw -> cached_props ->wm_hints.flags & InputHint) &&
! (cw -> cached_props -> wm_hints.input)) {
! TrapXErrors(XSetInputFocus(dpy, cw -> client, RevertToPointerRoot,
! CurrentTime));
! }
} else if (GWM_check_input_focus_flag || ((cw -> cached_props ->
wm_hints.flags & InputHint) &&
(cw -> cached_props -> wm_hints.input) && cw -> client)) {