forked from bartvdbraak/blender
2.5
Added ghost display state hint 'modified file'. Only supported in osx though (close button in bar gets dot).
This commit is contained in:
parent
c396a4ec15
commit
915e989f9d
@ -104,7 +104,9 @@ typedef enum {
|
||||
GHOST_kWindowState8Normal = 8,
|
||||
GHOST_kWindowState8Maximized,
|
||||
GHOST_kWindowState8Minimized,
|
||||
GHOST_kWindowState8FullScreen
|
||||
GHOST_kWindowState8FullScreen,
|
||||
GHOST_kWindowStateModified,
|
||||
GHOST_kWindowStateUnModified
|
||||
} GHOST_TWindowState;
|
||||
|
||||
|
||||
|
@ -38,7 +38,7 @@ TESTDIRS = test
|
||||
|
||||
include nan_subdirs.mk
|
||||
|
||||
install: all debug
|
||||
install: all
|
||||
@[ -d $(NAN_GHOST) ] || mkdir $(NAN_GHOST)
|
||||
@[ -d $(NAN_GHOST)/include ] || mkdir $(NAN_GHOST)/include
|
||||
@[ -d $(NAN_GHOST)/lib ] || mkdir $(NAN_GHOST)/lib
|
||||
|
@ -438,6 +438,8 @@ bool GHOST_SystemCarbon::processEvents(bool waitForEvent)
|
||||
bool anyProcessed = false;
|
||||
EventRef event;
|
||||
|
||||
// SetMouseCoalescingEnabled(false, NULL);
|
||||
|
||||
do {
|
||||
GHOST_TimerManager* timerMgr = getTimerManager();
|
||||
|
||||
@ -469,7 +471,6 @@ bool GHOST_SystemCarbon::processEvents(bool waitForEvent)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* end loop when no more events available */
|
||||
while (::ReceiveNextEvent(0, NULL, 0, true, &event)==noErr) {
|
||||
OSStatus status= ::SendEventToEventTarget(event, ::GetEventDispatcherTarget());
|
||||
|
@ -378,6 +378,12 @@ GHOST_TSuccess GHOST_WindowCarbon::setState(GHOST_TWindowState state)
|
||||
case GHOST_kWindowStateMinimized:
|
||||
::HideWindow(m_windowRef);
|
||||
break;
|
||||
case GHOST_kWindowStateModified:
|
||||
SetWindowModified(m_windowRef, 1);
|
||||
break;
|
||||
case GHOST_kWindowStateUnModified:
|
||||
SetWindowModified(m_windowRef, 0);
|
||||
break;
|
||||
case GHOST_kWindowStateMaximized:
|
||||
case GHOST_kWindowStateNormal:
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user