This should allow you to switch into workspaces that are occupied with a BWindowScreen

by clicking into the workspace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-05-30 11:50:11 +00:00
parent 16466e8a73
commit 2815b65b04

View File

@ -389,7 +389,8 @@ WorkspacesLayer::MouseDown(BMessage* message, BPoint where)
while (workspace.GetNextWindow(window, leftTop) == B_OK) {
BRect frame = _WindowFrame(workspaceFrame, screenFrame, window->Frame(),
leftTop);
if (frame.Contains(where) && window->Feel() != kDesktopWindowFeel) {
if (frame.Contains(where) && window->Feel() != kDesktopWindowFeel
&& window->Feel() != kWindowScreenFeel) {
// We can't exit the loop here, as we traverse the window
// list in the wrong direction...
fSelectedWindow = window;