2.5
[blender-staging.git] / source / blender / windowmanager / intern / wm_window.c
index 687540d106f09be0793302787571d3c5d446919d..884abc1fa256e35f9f52c146cf028b6c41534efb 100644 (file)
@@ -103,7 +103,6 @@ void wm_window_free(bContext *C, wmWindow *win)
        
        if(win->eventstate) MEM_freeN(win->eventstate);
 
-       WM_gesture_free(win);
        wm_event_free_all(win);
        wm_subwindows_free(win);
        
@@ -424,7 +423,7 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr private)
                                if(G.f & G_DEBUG) printf("ghost redraw\n");
                                
                                wm_window_make_drawable(C, win);
-                               WM_event_add_notifier(C->wm, win, 0, WM_NOTE_WINDOW_REDRAW, 0, NULL);
+                               WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
 
                                break;
                        }
@@ -469,13 +468,13 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr private)
                                }
                                
                                wm_window_make_drawable(C, win);
-                               WM_event_add_notifier(C->wm, win, 0, WM_NOTE_SCREEN_CHANGED, 0, NULL);
+                               WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
                                
                                break;
                        }
                        default:
                                if(type==GHOST_kEventKeyDown) // XXX debug
-                                       WM_event_add_notifier(C->wm, win, 0, WM_NOTE_WINDOW_REDRAW, 0, NULL);
+                                       WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
                                wm_event_add_ghostevent(win, type, data);
                                break;
                }