From d2029b5462b75e0363e49eeb2eab1fc0e71c9df1 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Mon, 29 Dec 2008 17:34:06 +0000 Subject: [PATCH] redo of revision 970 considering revision 985 git-svn-id: svn://kolibrios.org@986 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/window.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index 57b1cebbcb..4fa3986f17 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -1206,8 +1206,12 @@ endg inc esi ;..................................... start 3/4 : modified by vhanla ................. - cmp [bPressedMouseXY_W],0 - jnz @f + cmp [bPressedMouseXY_W],1 + jb .first + ja @f + inc [bPressedMouseXY_W] + jmp @f +.first: mov [bPressedMouseXY_W],1 mov ax,[MOUSE_X] mov [mx],ax @@ -1254,6 +1258,9 @@ endg cmp eax, ebx ; is this window active? jz .move_resize_window + cmp [bPressedMouseXY_W], 1 + ja .exit + ; eax = position in windowing stack ; redraw must ? lea esi, [WIN_POS + esi * 2]