/[oroborus]/oroborus/src/events.c
ViewVC logotype

Diff of /oroborus/src/events.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27 by dreamind, Mon Feb 10 03:06:57 2003 UTC revision 1.28 by dreamind, Mon Feb 10 03:40:47 2003 UTC
# Line 36  handleKeyPress (XKeyEvent * ev) Line 36  handleKeyPress (XKeyEvent * ev)
36  #endif  #endif
37    
38          c = clientGetFocus ();          c = clientGetFocus ();
39          state = ev->state & (Mod1Mask | ControlMask | ShiftMask);          state = ev->state & (Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask | ControlMask | ShiftMask);
40          for (key = 0; key < KEY_COUNT; key++)          for (key = 0; key < KEY_COUNT; key++)
41                  if (keys[key].keycode == ev->keycode && keys[key].modifier == state)                  if (keys[key].keycode == ev->keycode && keys[key].modifier == state)
42                          break;                          break;
# Line 312  handleButtonPress (XButtonEvent * ev) Line 312  handleButtonPress (XButtonEvent * ev)
312    
313          while (XCheckTypedEvent (dpy, ButtonPress, (XEvent *) ev));          while (XCheckTypedEvent (dpy, ButtonPress, (XEvent *) ev));
314    
315          state = ev->state & (Mod1Mask | ShiftMask | ControlMask);          state = ev->state & (Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask | ShiftMask | ControlMask);
316    
317          c = clientGetFromWindow (ev->window, FRAME);          c = clientGetFromWindow (ev->window, FRAME);
318          if (c)          if (c)
319                  {                  {
320                          state = ev->state & (Mod1Mask | ShiftMask | ControlMask);                          state = ev->state & (Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask | ShiftMask | ControlMask);
321                          win = getMouseWindow (dpy, c->frame);                          win = getMouseWindow (dpy, c->frame);
322    
323                          clientSetFocus (c, True);                          clientSetFocus (c, True);
# Line 443  handleDestroyNotify (XDestroyWindowEvent Line 443  handleDestroyNotify (XDestroyWindowEvent
443                                  {                                  {
444                                          c = clientGetTopMost(WIN_LAYER_NORMAL);                                          c = clientGetTopMost(WIN_LAYER_NORMAL);
445                                          clientSetFocus (c, True);                                          clientSetFocus (c, True);
446                                          if (!not_warp_to_next)                                          if (!(not_warp_to_next || c->non_focusing))
447                                                  clientWarpMouse (c);                                                  clientWarpMouse (c);
448                                  }                                  }
449                          else                          else
# Line 474  handleUnmapNotify (XUnmapEvent * ev) Line 474  handleUnmapNotify (XUnmapEvent * ev)
474                                                  {                                                  {
475                                                          c = clientGetTopMost(WIN_LAYER_NORMAL);                                                          c = clientGetTopMost(WIN_LAYER_NORMAL);
476                                                          clientSetFocus (c, True);                                                          clientSetFocus (c, True);
477                                                          if (!not_warp_to_next)                                                          if (!(not_warp_to_next || c->non_focusing))
478                                                                  clientWarpMouse (c);                                                                  clientWarpMouse (c);
479                                                  }                                                  }
480                                          else                                          else

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26