name cocoa functions in keeping with convention with similar functions for other ghost classes.
This commit is contained in:
@@ -1026,7 +1026,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleWindowEvent(GHOST_TEventType eventType,
|
|||||||
switch (eventType) {
|
switch (eventType) {
|
||||||
case GHOST_kEventWindowClose:
|
case GHOST_kEventWindowClose:
|
||||||
// check for index 1 and discard close for mainwindow as it would quit blender without dialog
|
// check for index 1 and discard close for mainwindow as it would quit blender without dialog
|
||||||
if ([windowsList count] > 1 && (window->get_m_window() != [windowsList objectAtIndex:1])) {
|
if ([windowsList count] > 1 && (window->getCocoaWindow() != [windowsList objectAtIndex:1])) {
|
||||||
pushEvent( new GHOST_Event(getMilliSeconds(), GHOST_kEventWindowClose, window) );
|
pushEvent( new GHOST_Event(getMilliSeconds(), GHOST_kEventWindowClose, window) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@@ -271,7 +271,7 @@ public:
|
|||||||
GHOST_TSuccess endFullScreen() const {return GHOST_kFailure;}
|
GHOST_TSuccess endFullScreen() const {return GHOST_kFailure;}
|
||||||
|
|
||||||
/** public function to get the window containing the OpenGL view */
|
/** public function to get the window containing the OpenGL view */
|
||||||
CocoaWindow *get_m_window() const {return m_window;};
|
CocoaWindow *getCocoaWindow() const {return m_window;};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user