Fix initial menu rendering in certain situations.

SVN revision: 23520
This commit is contained in:
Kim Woelders 2006-06-22 02:39:03 +00:00
parent 84dfe126c8
commit ae33be57aa
2 changed files with 6 additions and 4 deletions

View File

@ -550,15 +550,14 @@ ButtonEventMouseUp(Button * b, XEvent * ev)
GrabPointerRelease();
if (b->aclass && !b->left && !Mode_buttons.action_inhibit)
ButtonDoAction(b, ev);
b->left = 0;
if (Mode.mode == MODE_BUTTONDRAG)
ButtonDragEnd(Mode_buttons.button);
Mode_buttons.button = NULL;
if (b->aclass && !b->left && !Mode_buttons.action_inhibit)
ButtonDoAction(b, ev);
Mode_buttons.action_inhibit = 0;
}

View File

@ -195,7 +195,10 @@ MenuEwinMoveResize(EWin * ewin, int resize __UNUSED__)
{
Menu *m = ewin->data;
if (!m || Mode.mode != MODE_NONE)
if (!m)
return;
if (Mode.mode != MODE_NONE && !m->redraw)
return;
if (TransparencyUpdateNeeded())