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 >
Text File  |  1993-07-08  |  1KB  |  34 lines

  1. [See README.build-gwm for information about how to apply this patch.
  2.  Thanks to David Hogan for finding the bug and working out this fix.]
  3.  
  4. *** wops.c-KEEP    Mon Oct 21 19:36:25 1991
  5. --- wops.c    Wed Dec 16 14:00:01 1992
  6. ***************
  7. *** 787,793 ****
  8.       return NIL;
  9.       if (cw -> type == ClientWindowClass) {
  10.       if (cw -> cached_props -> wm_take_focus) {
  11. !         send_protocol_message(cw -> client, XA_WM_TAKE_FOCUS, 0, 0, 0);
  12.       } else if (GWM_check_input_focus_flag || ((cw -> cached_props ->
  13.                             wm_hints.flags & InputHint) &&
  14.             (cw -> cached_props -> wm_hints.input) && cw -> client)) {
  15. --- 787,804 ----
  16.       return NIL;
  17.       if (cw -> type == ClientWindowClass) {
  18.       if (cw -> cached_props -> wm_take_focus) {
  19. !         Time    t;
  20. !         if (TriggeringEvent->xany.type == ButtonPress)
  21. !         t = TriggeringEvent->xbutton.time;
  22. !         else
  23. !         t = 0;
  24. !         send_protocol_message(cw -> client, XA_WM_TAKE_FOCUS, t, 0, 0);
  25. !         if ((cw -> cached_props ->wm_hints.flags & InputHint) &&
  26. !           (cw -> cached_props -> wm_hints.input)) {
  27. !         TrapXErrors(XSetInputFocus(dpy, cw -> client, RevertToPointerRoot,
  28. !                        CurrentTime));
  29. !         }
  30.       } else if (GWM_check_input_focus_flag || ((cw -> cached_props ->
  31.                             wm_hints.flags & InputHint) &&
  32.             (cw -> cached_props -> wm_hints.input) && cw -> client)) {
  33.