diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index 1d352ed04d..3023311752 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -3441,6 +3441,15 @@ ServerWindow::MakeWindow(BRect frame, const char* name, } +/* static */ +bool +ServerWindow::_SupportsDirectMode() +{ + return false; + // TODO: For now, since it's broken +} + + status_t ServerWindow::_EnableDirectWindowMode() { @@ -3449,6 +3458,9 @@ ServerWindow::_EnableDirectWindowMode() return B_ERROR; } + if (!ServerWindow::_SupportsDirectMode()) + return B_ERROR; + fDirectWindowData = new (nothrow) DirectWindowData; if (fDirectWindowData == NULL) return B_NO_MEMORY; diff --git a/src/servers/app/ServerWindow.h b/src/servers/app/ServerWindow.h index 9bbadd62ef..fc400e66e0 100644 --- a/src/servers/app/ServerWindow.h +++ b/src/servers/app/ServerWindow.h @@ -127,6 +127,7 @@ private: virtual void _PrepareQuit(); virtual void _GetLooperName(char* name, size_t size); + static bool _SupportsDirectMode(); status_t _EnableDirectWindowMode(); void _SetCurrentView(View* view);