* Moved PrivateScreen.h header to headers/private/interface.
* Desktop is now including it as well to be able to use the new B_CURRENT_WORKSPACE_INDEX constant. * Include order cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32558 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -13,10 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "AppMisc.h"
|
#include <PrivateScreen.h>
|
||||||
#include "AppServerLink.h"
|
|
||||||
#include "PrivateScreen.h"
|
|
||||||
#include "ServerProtocol.h"
|
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -28,6 +25,10 @@
|
|||||||
#include <ObjectList.h>
|
#include <ObjectList.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
|
#include <AppMisc.h>
|
||||||
|
#include <AppServerLink.h>
|
||||||
|
#include <ServerProtocol.h>
|
||||||
|
|
||||||
|
|
||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
|
|||||||
@@ -11,11 +11,12 @@
|
|||||||
/*! BScreen lets you retrieve and change the display settings. */
|
/*! BScreen lets you retrieve and change the display settings. */
|
||||||
|
|
||||||
|
|
||||||
#include "PrivateScreen.h"
|
|
||||||
|
|
||||||
#include <Screen.h>
|
#include <Screen.h>
|
||||||
|
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
|
#include <PrivateScreen.h>
|
||||||
|
|
||||||
|
|
||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
|
|||||||
+20
-20
@@ -15,6 +15,23 @@
|
|||||||
|
|
||||||
#include "Desktop.h"
|
#include "Desktop.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <syslog.h>
|
||||||
|
|
||||||
|
#include <Debug.h>
|
||||||
|
#include <DirectWindow.h>
|
||||||
|
#include <Entry.h>
|
||||||
|
#include <Message.h>
|
||||||
|
#include <MessageFilter.h>
|
||||||
|
#include <Region.h>
|
||||||
|
#include <Roster.h>
|
||||||
|
|
||||||
|
#include <PrivateScreen.h>
|
||||||
|
#include <ServerProtocol.h>
|
||||||
|
#include <ViewPrivate.h>
|
||||||
|
#include <WindowInfo.h>
|
||||||
|
|
||||||
#include "AppServer.h"
|
#include "AppServer.h"
|
||||||
#include "DesktopSettingsPrivate.h"
|
#include "DesktopSettingsPrivate.h"
|
||||||
#include "DrawingEngine.h"
|
#include "DrawingEngine.h"
|
||||||
@@ -31,26 +48,11 @@
|
|||||||
#include "Workspace.h"
|
#include "Workspace.h"
|
||||||
#include "WorkspacesView.h"
|
#include "WorkspacesView.h"
|
||||||
|
|
||||||
#include <ViewPrivate.h>
|
|
||||||
#include <WindowInfo.h>
|
|
||||||
#include <ServerProtocol.h>
|
|
||||||
|
|
||||||
#include <Debug.h>
|
|
||||||
#include <DirectWindow.h>
|
|
||||||
#include <Entry.h>
|
|
||||||
#include <Message.h>
|
|
||||||
#include <MessageFilter.h>
|
|
||||||
#include <Region.h>
|
|
||||||
#include <Roster.h>
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <syslog.h>
|
|
||||||
|
|
||||||
#if TEST_MODE
|
#if TEST_MODE
|
||||||
# include "EventStream.h"
|
# include "EventStream.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//#define DEBUG_DESKTOP
|
//#define DEBUG_DESKTOP
|
||||||
#ifdef DEBUG_DESKTOP
|
#ifdef DEBUG_DESKTOP
|
||||||
# define STRACE(a) printf a
|
# define STRACE(a) printf a
|
||||||
@@ -1125,8 +1127,7 @@ status_t
|
|||||||
Desktop::SetScreenMode(int32 workspace, int32 id, const display_mode& mode,
|
Desktop::SetScreenMode(int32 workspace, int32 id, const display_mode& mode,
|
||||||
bool makeDefault)
|
bool makeDefault)
|
||||||
{
|
{
|
||||||
// ~0 is used as the current workspace in PrivateScreen
|
if (workspace == B_CURRENT_WORKSPACE_INDEX)
|
||||||
if (workspace == ~0)
|
|
||||||
workspace = fCurrentWorkspace;
|
workspace = fCurrentWorkspace;
|
||||||
|
|
||||||
if (workspace < 0 || workspace > kMaxWorkspaces)
|
if (workspace < 0 || workspace > kMaxWorkspaces)
|
||||||
@@ -1184,8 +1185,7 @@ Desktop::SetScreenMode(int32 workspace, int32 id, const display_mode& mode,
|
|||||||
status_t
|
status_t
|
||||||
Desktop::GetScreenMode(int32 workspace, int32 id, display_mode& mode)
|
Desktop::GetScreenMode(int32 workspace, int32 id, display_mode& mode)
|
||||||
{
|
{
|
||||||
// ~0 is used as the current workspace in PrivateScreen
|
if (workspace == B_CURRENT_WORKSPACE_INDEX)
|
||||||
if (workspace == ~0)
|
|
||||||
workspace = fCurrentWorkspace;
|
workspace = fCurrentWorkspace;
|
||||||
|
|
||||||
if (workspace < 0 || workspace > kMaxWorkspaces)
|
if (workspace < 0 || workspace > kMaxWorkspaces)
|
||||||
|
|||||||
Reference in New Issue
Block a user