From 321a58ac0ff307869427ba58e2b72d18272a9e2c Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Fri, 9 Jul 2010 13:46:12 +0000 Subject: [PATCH] If the user to be resizing the window then mouse event is not generated (6 = mouse event) git-svn-id: svn://kolibrios.org@1513 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/event.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/gui/event.inc b/kernel/trunk/gui/event.inc index 0610cd5220..e27bec54a0 100644 --- a/kernel/trunk/gui/event.inc +++ b/kernel/trunk/gui/event.inc @@ -7,6 +7,13 @@ $Revision$ +WINDOW_MOVE_AND_RESIZE_FLAGS = \ + mouse.WINDOW_RESIZE_N_FLAG + \ + mouse.WINDOW_RESIZE_W_FLAG + \ + mouse.WINDOW_RESIZE_S_FLAG + \ + mouse.WINDOW_RESIZE_E_FLAG + \ + mouse.WINDOW_MOVE_FLAG + uglobal align 4 event_start dd ? @@ -459,8 +466,9 @@ get_event_for_app: ;; used from f10,f11,f23 jne @f push eax ; If the window is captured and moved by the user, then no mouse events!!! - mov al, [mouse.active_sys_window.action] - test al, mouse.WINDOW_MOVE_FLAG + mov al,[mouse.active_sys_window.action] + and al,WINDOW_MOVE_AND_RESIZE_FLAGS + test al,al pop eax jnz .loop @@: