From 1592b6fb4cb7460c1589065f49352607483dc96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 11 Aug 2009 10:03:47 +0000 Subject: [PATCH] * Made the comment a bit more useful. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32245 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerApp.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/servers/app/ServerApp.cpp b/src/servers/app/ServerApp.cpp index 60286de609..ba0e163028 100644 --- a/src/servers/app/ServerApp.cpp +++ b/src/servers/app/ServerApp.cpp @@ -2322,12 +2322,8 @@ ServerApp::_DispatchMessage(int32 code, BPrivate::LinkReceiver& link) if (status == B_OK && fDesktop->LockAllWindows()) { display_mode oldMode; - // TODO: This is a bit of a mess. The API to set the mode on - // a specific workspace was not present in BeOS. It is meant to - // be the workspace *index* (not the bitfield). However, the - // "~0" is used as kCurrentWorkspace in PrivateScreen.cpp, which - // has nothing to do with B_CURRENT_WORKSPACE (== 0, used for the - // workspace bit mask of a BWindow). + // ~0 is used as the current workspace in PrivateScreen + // TODO: add constant for this if (workspace == (uint32)~0 || workspace == (uint32)fDesktop->CurrentWorkspace()) { fDesktop->ScreenAt(0)->GetMode(&oldMode);