From c0eb0eb4625d4bad2564fdb24c29c0e67870f1ac Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sat, 2 Mar 2013 21:35:56 +0000 Subject: [PATCH] @PANEL - Safe shutdown programs through the menu - not more killing, only CPU (Task Manager) can the killing processes. git-svn-id: svn://kolibrios.org@3311 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/panel/trunk/ctx_menu.asm | 72 +++++++++++++----------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/programs/system/panel/trunk/ctx_menu.asm b/programs/system/panel/trunk/ctx_menu.asm index 853c76ab95..3791dad3bb 100644 --- a/programs/system/panel/trunk/ctx_menu.asm +++ b/programs/system/panel/trunk/ctx_menu.asm @@ -24,39 +24,6 @@ ctx_menu_still: jmp ctx_menu_still ;------------------------------------------------------------------------------ align 4 -ctx_menu_key: - mcall 2 -;-------------------------------------- -align 4 -ctx_menu_button: - mcall 17 - cmp ah, 1 - jne @f - - mov eax, 18 - mov ebx, 2 - mov ecx, [n_slot] - jmp .lllxxx -;-------------------------------------- -align 4 -@@: - cmp ah, 2 - jne ctx_menu_still - mov eax, 18 - mov ebx, 22 - mov edx, [n_slot] - xor ecx, ecx - - test [procinfo_for_detect+70],byte 2 - setnz cl - add cl, cl -;-------------------------------------- -align 4 -.lllxxx: - mcall - jmp ctx_menu_exit -;-------------------------------------- -align 4 ctx_menu_mouse: mcall 37,2 xchg eax,ecx ; Если не одна из кнопок не нажата возвращаемся @@ -78,7 +45,44 @@ ctx_menu_mouse: cmp ax, 133 ja ctx_menu_exit - jmp ctx_menu_still + jmp ctx_menu_still +;------------------------------------------------------------------------------ +align 4 +ctx_menu_key: + mcall 2 +;-------------------------------------- +align 4 +ctx_menu_button: + mcall 17 + cmp ah, 1 + jne @f + +; mov eax, 18 +; mov ebx, 2 +; mov ecx, [n_slot] +; jmp .lllxxx + mcall 18,3,[n_slot] + mcall 72,1,3,1 + mcall 68,1 + jmp ctx_menu_exit +;-------------------------------------- +align 4 +@@: + cmp ah, 2 + jne ctx_menu_still + mov eax, 18 + mov ebx, 22 + mov edx, [n_slot] + xor ecx, ecx + + test [procinfo_for_detect+70],byte 2 + setnz cl + add cl, cl +;-------------------------------------- +align 4 +.lllxxx: + mcall + jmp ctx_menu_exit ;-------------------------------------- align 4 ctx_menu_exit: