No longer avoids switching the workspace when a window one clicked on is not movable.
This fixes bug #1229. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21543 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -410,11 +410,11 @@ WorkspacesLayer::MouseDown(BMessage* message, BPoint where)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If this window is movable, we keep it selected
|
// If this window is movable, we keep it selected
|
||||||
|
// (we prevent our own window from being moved, too)
|
||||||
|
|
||||||
if (fSelectedWindow != NULL && (fSelectedWindow->Flags() & B_NOT_MOVABLE) != 0
|
if (fSelectedWindow != NULL && (fSelectedWindow->Flags() & B_NOT_MOVABLE) != 0
|
||||||
|| fSelectedWindow == Window()) {
|
|| fSelectedWindow == Window()) {
|
||||||
fSelectedWindow = NULL;
|
fSelectedWindow = NULL;
|
||||||
index = -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fLeftTopOffset = where - windowFrame.LeftTop();
|
fLeftTopOffset = where - windowFrame.LeftTop();
|
||||||
|
|||||||
Reference in New Issue
Block a user