Fix f.18.3 - If the window is captured and moved by the user, then you can't change the position in window stack.
git-svn-id: svn://kolibrios.org@3455 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
53d7a1b52f
commit
37684e0d2a
@ -2207,7 +2207,18 @@ sysfn_activate: ; 18.3 = ACTIVATE WINDOW
|
||||
jb .nowindowactivate
|
||||
cmp ecx, [TASK_COUNT]
|
||||
ja .nowindowactivate
|
||||
|
||||
;-------------------------------------
|
||||
@@:
|
||||
; If the window is captured and moved by the user,
|
||||
; then you can't change the position in window stack!!!
|
||||
mov al, [mouse.active_sys_window.action]
|
||||
and al, WINDOW_MOVE_AND_RESIZE_FLAGS
|
||||
test al, al
|
||||
jz @f
|
||||
call change_task
|
||||
jmp @b
|
||||
@@:
|
||||
;-------------------------------------
|
||||
mov [window_minimize], 2; restore window if minimized
|
||||
|
||||
movzx esi, word [WIN_STACK + ecx*2]
|
||||
|
Loading…
Reference in New Issue
Block a user