Small commit, too much fun to not do separately:

- removed notifier restriction to go only to own window, so multiwindow
  setups redraw correctly. (when other windows show other scenes we have
  to handle still).
- fixed cursor type outside of window (got stuck to area-move cursor).
This commit is contained in:
Ton Roosendaal
2008-12-17 15:51:32 +00:00
parent 07d63eb679
commit d6b677ba42
2 changed files with 8 additions and 10 deletions

View File

@@ -1052,7 +1052,7 @@ void ED_screen_exit(bContext *C, wmWindow *window, bScreen *screen)
C->window= prevwin;
}
/* case when on area-edge or in azones */
/* case when on area-edge or in azones, or outside window */
static void screen_cursor_set(wmWindow *win, wmEvent *event)
{
ScrArea *sa;
@@ -1067,11 +1067,14 @@ static void screen_cursor_set(wmWindow *win, wmEvent *event)
else {
ScrEdge *actedge= screen_find_active_scredge(win->screen, event->x, event->y);
if (actedge && scredge_is_horizontal(actedge)) {
WM_cursor_set(win, CURSOR_Y_MOVE);
} else {
WM_cursor_set(win, CURSOR_X_MOVE);
if (actedge) {
if(scredge_is_horizontal(actedge))
WM_cursor_set(win, CURSOR_Y_MOVE);
else
WM_cursor_set(win, CURSOR_X_MOVE);
}
else
WM_cursor_set(win, CURSOR_STD);
}
}

View File

@@ -130,11 +130,6 @@ void wm_event_do_notifiers(bContext *C)
C->window= win;
C->screen= win->screen; /* XXX context in notifiers? */
if(note->window && note->window!=win)
continue;
if(win->screen==NULL)
continue;
/* printf("notifier win %d screen %s\n", win->winid, win->screen->id.name+2); */
ED_screen_do_listen(win, note);