- this should fix gcc2 build, sorry ;)

- style fixes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2009-10-21 08:21:53 +00:00
parent 223ae47d99
commit 80351b4d41

View File

@ -923,7 +923,7 @@ BWindow::DispatchMessage(BMessage* msg, BHandler* target)
int32 next = nextColumn + nextRow * columns;
if (next != current) {
uint32 workspaces;
uint32 workspaces = 0;
if (takeMeThere) {
workspaces = Workspaces() | (1 << next);
@ -935,11 +935,10 @@ BWindow::DispatchMessage(BMessage* msg, BHandler* target)
// switch to it
activate_workspace(next);
if (takeMeThere && (workspaces != B_ALL_WORKSPACES)) {
if (takeMeThere && workspaces != B_ALL_WORKSPACES) {
workspaces &= ~(1 << current);
SetWorkspaces(workspaces);
}
}
break;
}