for button popups, dont close unless you click or press escape, this would often close when dragging a button value (or when using a tablet I am told)

This commit is contained in:
2007-12-11 23:05:10 +00:00
parent 5e3f4c20bb
commit 6dc52c893f
14 changed files with 39 additions and 37 deletions

View File

@@ -730,7 +730,7 @@ void BPY_spacescript_do_pywin_event( SpaceScript * sc, unsigned short event,
if (val) {
if (uiDoBlocks( &curarea->uiblocks, event ) != UI_NOTHING) event = 0;
if (uiDoBlocks( &curarea->uiblocks, event, 1 ) != UI_NOTHING) event = 0;
if (event == UI_BUT_EVENT) {
/* check that event is in free range for script button events;
@@ -1117,7 +1117,7 @@ static PyObject *Method_UIBlock( PyObject * self, PyObject * args )
/* Done clearing events */
uiBoundsBlock(uiblock, 5);
uiDoBlocks(&listb, 0);
uiDoBlocks(&listb, 0, 1);
}
uiFreeBlocks(&listb);
uiblock = NULL;