Exemplo n.º 1
0
void Card::dispatchEnterNotify(const XEvent&)
{
  if (hilighted == 0) return;

  if (_stack->acceptable(hilighted)) {
    XDefineCursor(dpy, window(), cursor);
    cursorChanged = true;
    moveMode = SingleMode;
  } else if (multipleMovable(hilighted, _stack->topCard())) {
    XDefineCursor(dpy, window(), cursor);
    cursorChanged = true;
    moveMode = MultipleMode;
  }
}
Exemplo n.º 2
0
void Card::dispatchEnterNotify(const gi_msg_t&)
{
  if (hilighted == 0) return;

  if (_stack->acceptable(hilighted)) {
    DEFINE_CURSOR( window(), cursor);
    cursorChanged = true;
    moveMode = SingleMode;
  } else if (multipleMovable(hilighted, _stack->topCard())) {
    DEFINE_CURSOR( window(), cursor);
    cursorChanged = true;
    moveMode = MultipleMode;
  }
}