mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 00:56:19 +02:00
Handle window close commands and interaction logic improvements
This commit is contained in:
@@ -111,7 +111,7 @@ public sealed class Window(string title, int processId, int id, IRenderSource re
|
||||
|
||||
bool anyChildChanged;
|
||||
List<UIElement> elementsCopy;
|
||||
|
||||
|
||||
lock (uiElementsLock)
|
||||
{
|
||||
anyChildChanged = uiElements.Values.Any(e => e.AnyPropertyChanged);
|
||||
@@ -222,10 +222,14 @@ public sealed class Window(string title, int processId, int id, IRenderSource re
|
||||
dragOffset = new Point(pointerPosition.X - Position.X, pointerPosition.Y - Position.Y);
|
||||
}
|
||||
|
||||
if (currentInteraction != InteractionMode.None)
|
||||
if (currentInteraction != InteractionMode.None || inBounds)
|
||||
{
|
||||
interactionStartBounds = new Rectangle(Position, Size);
|
||||
interactionStartPointer = pointerPosition;
|
||||
if (currentInteraction != InteractionMode.None)
|
||||
{
|
||||
interactionStartBounds = new Rectangle(Position, Size);
|
||||
interactionStartPointer = pointerPosition;
|
||||
}
|
||||
|
||||
WindowManager.FocusWindow(this);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user