Mouse cursors now work again

- centralized screen-level cursor changes, no more operator
  running for it.
- spacetypes have callback to check/set individual cursor
  types. Use notifier SCREEN_CHANGED to make sure it works
  on mode changes etc.
- new calls WM_cursor_modal() and WM_cursor_restore() to
  make temporarily cursor types during modes.
- used above for view2d cursors.
This commit is contained in:
2008-12-15 16:54:47 +00:00
parent c13bb258b1
commit a16df53619
12 changed files with 157 additions and 133 deletions

View File

@@ -503,6 +503,7 @@ static void newspace(bContext *C, ScrArea *sa, int type)
sa->spacetype= type;
sa->butspacetype= type;
sa->type= st;
/* check previously stored space */
for (sl= sa->spacedata.first; sl; sl= sl->next)