Tweak frame action handling.

SVN revision: 12362
This commit is contained in:
Kim Woelders 2004-12-05 09:57:08 +00:00
parent a13da9ae85
commit f6f38ea7d5
2 changed files with 6 additions and 1 deletions

View File

@ -447,7 +447,10 @@ EventAclass(XEvent * ev, EWin * ewin, ActionClass * a)
mouse = 1;
break;
case LeaveNotify:
if (ev->xcrossing.detail == NotifyNonlinearVirtual)
/* If frame window, quit if pointer is still inside */
if (ewin && ev->xcrossing.window == ewin->win &&
(ev->xcrossing.x >= 0 && ev->xcrossing.x < ewin->w &&
ev->xcrossing.y >= 0 && ev->xcrossing.y < ewin->h))
EDBUG_RETURN(0);
type = EVENT_MOUSE_LEAVE;
button = -1;

View File

@ -2272,6 +2272,8 @@ FreeBorder(Border * b)
Efree(b->name);
if (b->group_border_name)
Efree(b->group_border_name);
if (b->aclass)
b->aclass->ref_count--;
EDBUG_RETURN_;
}