don't close operator dialogs when the mouse moves outside of them. this is very annoy...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 29 Jun 2012 20:29:13 +0000 (20:29 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 29 Jun 2012 20:29:13 +0000 (20:29 +0000)
source/blender/windowmanager/intern/wm_operators.c

index f74538e431de29502a0d4397224bbece5ec97c34..2aa010f012ec5202f67858817d180b55bfa53bae 100644 (file)
@@ -1052,7 +1052,10 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *ar, void *userData)
 
        block = uiBeginBlock(C, ar, __func__, UI_EMBOSS);
        uiBlockClearFlag(block, UI_BLOCK_LOOP);
-       uiBlockSetFlag(block, UI_BLOCK_KEEP_OPEN | UI_BLOCK_RET_1 | UI_BLOCK_MOVEMOUSE_QUIT);
+
+       /* intentionally don't use 'UI_BLOCK_MOVEMOUSE_QUIT', some dialogs have many items
+        * where quitting by accident is very annoying */
+       uiBlockSetFlag(block, UI_BLOCK_KEEP_OPEN | UI_BLOCK_RET_1);
 
        layout = uiBlockLayout(block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL, 0, 0, data->width, data->height, style);