Permalink
Browse files

Only cycle displays if the cycling actually changes the display from …

…the current one (e.g. if there's more than one display)
  • Loading branch information...
1 parent e22d729 commit ff0be4f87aa02cf15253dc5b7ff1952bb62a1328 @elan elan committed Oct 5, 2008
Showing with 7 additions and 7 deletions.
  1. +7 −7 xbmc/ApplicationMessenger.cpp
@@ -404,9 +404,9 @@ void CApplicationMessenger::ProcessMessage(ThreadMessage *pMsg)
int display = (pMsg->dwMessage == TMSG_MOVE_TO_PREV_SCREEN) ? (currentDisplay + 1) : (currentDisplay - 1 + displayCount);
display %= displayCount;
- if (g_advancedSettings.m_fullScreen)
+ if (display != currentDisplay)
{
- //if (g_graphicsContext.IsFullScreenVideo() == false)
+ if (g_advancedSettings.m_fullScreen)
{
// We need to find the display mode that corresponds to the new screen and go to it.
RESOLUTION theRes = INVALID;
@@ -430,11 +430,11 @@ void CApplicationMessenger::ProcessMessage(ThreadMessage *pMsg)
g_application.ReloadSkin();
}
}
- }
- else
- {
- // Simply move the window to the next screen.
- Cocoa_MoveWindowToDisplay(display);
+ else
+ {
+ // Simply move the window to the next screen.
+ Cocoa_MoveWindowToDisplay(display);
+ }
}
#endif
}

0 comments on commit ff0be4f

Please sign in to comment.