forked from KolibriOS/kolibrios
CPU - inactive window does not receive mouse events
git-svn-id: svn://kolibrios.org@3952 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
1232e195b8
commit
924f9514bf
@ -53,13 +53,18 @@ window_y_size=430
|
|||||||
@use_library ;use load lib macros
|
@use_library ;use load lib macros
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
START: ; start of execution
|
START: ; start of execution
|
||||||
|
mcall 9,process_info_buffer,-1
|
||||||
|
mov ecx,[ebx+30] ; PID
|
||||||
|
mcall 18,21
|
||||||
|
mov [active_process],eax ; WINDOW SLOT
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
mcall 68,11
|
mcall 68,11
|
||||||
sys_load_library library_name, cur_dir_path, library_path, system_path, \
|
sys_load_library library_name, cur_dir_path, library_path, system_path, \
|
||||||
err_message_found_lib, head_f_l, myimport, err_message_import, head_f_i
|
err_message_found_lib, head_f_l, myimport, err_message_import, head_f_i
|
||||||
inc eax
|
inc eax
|
||||||
jz close
|
jz close
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
mcall 40,0x27 ;set event
|
mcall 40,0x80000027 ;set event
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
;set window size and position for 0 function
|
;set window size and position for 0 function
|
||||||
;to [winxpos] and [winypos] variables
|
;to [winxpos] and [winypos] variables
|
||||||
@ -105,6 +110,10 @@ still:
|
|||||||
dec eax ; button in buffer ?
|
dec eax ; button in buffer ?
|
||||||
jz button
|
jz button
|
||||||
|
|
||||||
|
mcall 18,7
|
||||||
|
cmp [active_process],eax
|
||||||
|
jne still_end
|
||||||
|
|
||||||
push dword edit1
|
push dword edit1
|
||||||
call [edit_box_mouse]
|
call [edit_box_mouse]
|
||||||
|
|
||||||
@ -760,6 +769,7 @@ curposy rd 1
|
|||||||
index rd 1
|
index rd 1
|
||||||
tasklist rd display_processes
|
tasklist rd display_processes
|
||||||
time_counter rd 1
|
time_counter rd 1
|
||||||
|
active_process rd 1
|
||||||
|
|
||||||
window_status rd 1
|
window_status rd 1
|
||||||
client_area_x_size rd 1
|
client_area_x_size rd 1
|
||||||
|
Loading…
Reference in New Issue
Block a user