Commit c6e6d9a8 authored by Martin Flöser's avatar Martin Flöser

Move leaveNotify event handling to AbstractClient

Only most basic to cancel auto raise and delayed focus.
parent 8ee55029
......@@ -1523,4 +1523,13 @@ void AbstractClient::enterEvent(const QPoint &globalPos)
}
}
void AbstractClient::leaveEvent()
{
cancelAutoRaise();
workspace()->cancelDelayFocus();
// TODO: shade hover
// TODO: send hover leave to deco
// TODO: handle Options::FocusStrictlyUnderMouse
}
}
......@@ -407,6 +407,7 @@ public:
void keyPressEvent(uint key_code);
void enterEvent(const QPoint &globalPos);
void leaveEvent();
/**
* These values represent positions inside an area
......
......@@ -978,8 +978,7 @@ void Client::leaveNotifyEvent(xcb_leave_notify_event_t *e)
}
}
if (lostMouse) {
cancelAutoRaise();
workspace()->cancelDelayFocus();
leaveEvent();
cancelShadeHoverTimer();
if (shade_mode == ShadeHover && !isMoveResize() && !isMoveResizePointerButtonDown()) {
shadeHoverTimer = new QTimer(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment