Fix initial menu rendering in certain situations.
SVN revision: 23520
This commit is contained in:
parent
84dfe126c8
commit
ae33be57aa
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue