Subversion Repositories Kolibri OS

Rev

Rev 3454 | Rev 3462 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3454 Rev 3455
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
Line 74... Line 74...
74
$Revision: 3454 $
74
$Revision: 3455 $
Line 2205... Line 2205...
2205
sysfn_activate:         ; 18.3 = ACTIVATE WINDOW
2205
sysfn_activate:         ; 18.3 = ACTIVATE WINDOW
2206
        cmp     ecx, 2
2206
        cmp     ecx, 2
2207
        jb      .nowindowactivate
2207
        jb      .nowindowactivate
2208
        cmp     ecx, [TASK_COUNT]
2208
        cmp     ecx, [TASK_COUNT]
2209
        ja      .nowindowactivate
2209
        ja      .nowindowactivate
-
 
2210
;-------------------------------------
2210
 
2211
@@:
-
 
2212
; If the window is captured and moved by the user,
-
 
2213
; then you can't change the position in window stack!!!
-
 
2214
        mov     al, [mouse.active_sys_window.action]
-
 
2215
        and     al, WINDOW_MOVE_AND_RESIZE_FLAGS
-
 
2216
        test    al, al
-
 
2217
        jz      @f
-
 
2218
        call    change_task
-
 
2219
        jmp     @b
-
 
2220
@@:
-
 
2221
;-------------------------------------
2211
        mov     [window_minimize], 2; restore window if minimized
2222
        mov     [window_minimize], 2; restore window if minimized
Line 2212... Line 2223...
2212
 
2223
 
2213
        movzx   esi, word [WIN_STACK + ecx*2]
2224
        movzx   esi, word [WIN_STACK + ecx*2]
2214
        cmp     esi, [TASK_COUNT]
2225
        cmp     esi, [TASK_COUNT]