forked from KolibriOS/kolibrios
Now, if the window is captured and moved by the user, then no mouse events! (6 = mouse event)
git-svn-id: svn://kolibrios.org@1466 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9b02a3a71e
commit
18f7c161ab
@ -368,13 +368,13 @@ sys_sendwindowmsg: ;; f72
|
|||||||
cli
|
cli
|
||||||
sub ecx,2
|
sub ecx,2
|
||||||
je .sendkey
|
je .sendkey
|
||||||
dec ecx
|
dec ecx
|
||||||
jnz .retf
|
jnz .retf
|
||||||
.sendbtn:
|
.sendbtn:
|
||||||
cmp byte[BTN_COUNT],1
|
cmp byte[BTN_COUNT],1
|
||||||
jae .result ;overflow
|
jae .result ;overflow
|
||||||
inc byte[BTN_COUNT]
|
inc byte[BTN_COUNT]
|
||||||
shl edx, 8
|
shl edx, 8
|
||||||
mov [BTN_BUFF],edx
|
mov [BTN_BUFF],edx
|
||||||
jmp .result
|
jmp .result
|
||||||
.sendkey:
|
.sendkey:
|
||||||
@ -455,6 +455,15 @@ get_event_for_app: ;; used from f10,f11,f23
|
|||||||
je .loop ; empty ???
|
je .loop ; empty ???
|
||||||
ret ; retval = eax
|
ret ; retval = eax
|
||||||
.FlagAutoReset: ; retvals: BgrRedraw=5, Mouse=6, IPC=7, Stack=8, Debug=9
|
.FlagAutoReset: ; retvals: BgrRedraw=5, Mouse=6, IPC=7, Stack=8, Debug=9
|
||||||
|
cmp eax,5 ; Mouse 5+1=6
|
||||||
|
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
|
||||||
|
pop eax
|
||||||
|
jnz .loop
|
||||||
|
@@:
|
||||||
btr [ebx+APPDATA.event_mask],eax
|
btr [ebx+APPDATA.event_mask],eax
|
||||||
jnc .loop
|
jnc .loop
|
||||||
.result: ; retval = eax+1
|
.result: ; retval = eax+1
|
||||||
@ -469,8 +478,8 @@ get_event_for_app: ;; used from f10,f11,f23
|
|||||||
je .loop ; empty ???
|
je .loop ; empty ???
|
||||||
cmp edx,[TASK_COUNT]
|
cmp edx,[TASK_COUNT]
|
||||||
jne .loop ; not Top ???
|
jne .loop ; not Top ???
|
||||||
mov edx, [BTN_BUFF]
|
mov edx, [BTN_BUFF]
|
||||||
shr edx, 8
|
shr edx, 8
|
||||||
cmp edx, 0xFFFF ;-ID for Minimize-Button of Form
|
cmp edx, 0xFFFF ;-ID for Minimize-Button of Form
|
||||||
jne .result
|
jne .result
|
||||||
mov [window_minimize],1
|
mov [window_minimize],1
|
||||||
|
Loading…
Reference in New Issue
Block a user