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
This commit is contained in:
Marat Zakiyanov (Mario79) 2010-07-09 13:46:12 +00:00
parent 8cf0d4890e
commit 321a58ac0f

View File

@ -7,6 +7,13 @@
$Revision$ $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 uglobal
align 4 align 4
event_start dd ? event_start dd ?
@ -459,8 +466,9 @@ get_event_for_app: ;; used from f10,f11,f23
jne @f jne @f
push eax push eax
; If the window is captured and moved by the user, then no mouse events!!! ; If the window is captured and moved by the user, then no mouse events!!!
mov al, [mouse.active_sys_window.action] mov al,[mouse.active_sys_window.action]
test al, mouse.WINDOW_MOVE_FLAG and al,WINDOW_MOVE_AND_RESIZE_FLAGS
test al,al
pop eax pop eax
jnz .loop jnz .loop
@@: @@: