Move leaveNotify event handling to AbstractClient
Only most basic to cancel auto raise and delayed focus.
This commit is contained in:
parent
8ee550292f
commit
c6e6d9a872
3 changed files with 11 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue