Take the window when dragging the window and switching the workspace using the cmd + F1-12. Thanks Ingo.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39710 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-12-02 22:04:10 +00:00
parent dd1ebc6885
commit 92998b409f
1 changed files with 3 additions and 2 deletions

View File

@ -201,8 +201,9 @@ KeyboardFilter::Filter(BMessage* message, EventTarget** _target,
{
STRACE(("Set Workspace %ld\n", key - 1));
fDesktop->SetWorkspaceAsync(key - B_F1_KEY,
(modifiers & B_SHIFT_KEY) != 0);
bool takeWindow = (modifiers & B_SHIFT_KEY) != 0
|| fDesktop->MouseEventWindow() != NULL;
fDesktop->SetWorkspaceAsync(key - B_F1_KEY, takeWindow);
return B_SKIP_MESSAGE;
}
} if (key == 0x11