diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-06 14:33:01 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-06 14:33:01 +0400 |
commit | d5dbaf726aee70fed7db9f4037e46078da3ad085 (patch) | |
tree | 9b7b632e0f1db15169554dd01417c9730462ec0d /source/blender/src/editscreen.c | |
parent | 5ebb3aa7ff8872e0b50843beff1e869da3415765 (diff) |
- pulldowns and 'BLOCK' buttons now open automatic, when mouseover
without moving for 0.25 second. Also works for sublevels in pulldowns.
- removed hacks from mainloop, which caused setting the main window and
active subwindow for each event (including mousemove).
WARN: test for all OS's that no events get lost, and active window focus
is OK. For OSX it works nicely
- reduced load for uibuttons with 50%....
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r-- | source/blender/src/editscreen.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index f975d404d88..e4cf4a2be82 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -918,7 +918,7 @@ static ScrArea *screen_find_area_for_pt(bScreen *sc, short *mval) void screenmain(void) { - int has_input= 1; + int has_input= 0; /* was one, why! (ton) */ int firsttime = 1; while (1) { @@ -934,7 +934,7 @@ void screenmain(void) event= screen_qread(&val, &ascii); } - window_make_active(mainwin); + //window_make_active(mainwin); (removed, ton) if (event==INPUTCHANGE) { has_input= val; @@ -977,7 +977,8 @@ void screenmain(void) areawinset(G.curscreen->winakt); set_cursor(choose_cursor(g_activearea)); } - } else { + } + else { if (g_activearea) { scrarea_queue_headredraw(g_activearea); } @@ -1087,7 +1088,7 @@ void screenmain(void) towin= 0; } } - + if (towin && event) { if (blenderqread(event, val)) addqueue_ext(G.curscreen->winakt, event, val, ascii); |