From a483e0ffe6daa48a52add047f68153d8eb593236 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Wed, 17 Dec 2008 12:38:37 +0000 Subject: [PATCH] a window is activated only once when mouse button is pressed git-svn-id: svn://kolibrios.org@970 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/window.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index 98cae3012f..dd514afed5 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -1198,24 +1198,22 @@ checkwindows: ret .mouse_buttons_pressed: ;..................................... start 2/4 : modified by vhanla ................. - jmp @f +uglobal bPressedMouseXY_W db 0x0 - @@: +endg ;..................................... end 2/4 : modified by vhanla ................... mov esi,[TASK_COUNT] inc esi ;..................................... start 3/4 : modified by vhanla ................. - push ax cmp [bPressedMouseXY_W],0 - jnz @f + jnz cwloop.exit mov [bPressedMouseXY_W],1 mov ax,[MOUSE_X] mov [mx],ax mov ax,[MOUSE_Y] mov [my],ax @@: - pop ax ;..................................... end 3/4 : modified by vhanla ................... cwloop: