mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-24 05:34:06 +02:00
Only activate mouse hook while cursor is over the notification window
This commit is contained in:
parent
1eb1f9848a
commit
b988959eaa
@ -166,7 +166,16 @@ private void timerDisplayDelay_Tick(object sender, EventArgs e){
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void timerHideProgress_Tick(object sender, EventArgs e){
|
private void timerHideProgress_Tick(object sender, EventArgs e){
|
||||||
if (Bounds.Contains(Cursor.Position) || FreezeTimer || ContextMenuOpen){
|
bool isCursorInside = Bounds.Contains(Cursor.Position);
|
||||||
|
|
||||||
|
if (isCursorInside){
|
||||||
|
StartMouseHook();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
StopMouseHook(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isCursorInside || FreezeTimer || ContextMenuOpen){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -257,7 +266,6 @@ protected void PrepareAndDisplayWindow(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
MoveToVisibleLocation();
|
MoveToVisibleLocation();
|
||||||
StartMouseHook();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnNotificationReady(){
|
protected virtual void OnNotificationReady(){
|
||||||
|
Loading…
Reference in New Issue
Block a user