Subversion Repositories Kolibri OS

Rev

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

Rev 7244 Rev 7266
Line 242... Line 242...
242
//If we clicked on current active process then minimize it
242
//If we clicked on current active process then minimize it
243
//else set active
243
//else set active
244
void EventSetActiveProcess(dword i)
244
void EventSetActiveProcess(dword i)
245
{
245
{
246
	GetProcessInfo(#Process, proc_list[i+list.first]);
246
	GetProcessInfo(#Process, proc_list[i+list.first]);
247
	Process.num_slot = GetProcessSlot(Process.ID);
247
	Process.slot = GetProcessSlot(Process.ID);
248
	if (Process.ID) ActivateWindow(Process.num_slot);
248
	if (Process.ID) ActivateWindow(Process.slot);
249
	if (current_process_id == Process.ID) && (Process.status_window!=2) { 
249
	if (current_process_id == Process.ID) && (Process.status_window!=2) { 
250
		MinimizeWindow();
250
		MinimizeWindow();
251
		//TODO: make another window active
251
		//TODO: make another window active
252
	}
252
	}
253
	DrawProcessList();
253
	DrawProcessList();