App Server, a few more style fixes
This commit is contained in:
@@ -125,7 +125,7 @@ StackAndTile::KeyPressed(uint32 what, int32 key, int32 modifiers)
|
|||||||
// switch to and from stacking and snapping mode
|
// switch to and from stacking and snapping mode
|
||||||
bool wasPressed = fSATKeyPressed;
|
bool wasPressed = fSATKeyPressed;
|
||||||
fSATKeyPressed = (what == B_MODIFIERS_CHANGED
|
fSATKeyPressed = (what == B_MODIFIERS_CHANGED
|
||||||
&& modifiers & B_OPTION_KEY)
|
&& (modifiers & B_OPTION_KEY) != 0)
|
||||||
|| (what == B_UNMAPPED_KEY_DOWN && key == kRightOptionKey);
|
|| (what == B_UNMAPPED_KEY_DOWN && key == kRightOptionKey);
|
||||||
if (wasPressed && !fSATKeyPressed)
|
if (wasPressed && !fSATKeyPressed)
|
||||||
_StopSAT();
|
_StopSAT();
|
||||||
@@ -151,6 +151,7 @@ StackAndTile::KeyPressed(uint32 what, int32 key, int32 modifiers)
|
|||||||
currentGroup = frontWindow->GetGroup();
|
currentGroup = frontWindow->GetGroup();
|
||||||
if (currentGroup == NULL)
|
if (currentGroup == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int32 groupSize = currentGroup->CountItems();
|
int32 groupSize = currentGroup->CountItems();
|
||||||
if (groupSize <= 1)
|
if (groupSize <= 1)
|
||||||
return false;
|
return false;
|
||||||
@@ -667,6 +668,9 @@ StackAndTile::_HandleMessage(BPrivate::LinkReceiver& link,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// #pragma mark - GroupIterator
|
||||||
|
|
||||||
|
|
||||||
GroupIterator::GroupIterator(StackAndTile* sat, Desktop* desktop)
|
GroupIterator::GroupIterator(StackAndTile* sat, Desktop* desktop)
|
||||||
:
|
:
|
||||||
fStackAndTile(sat),
|
fStackAndTile(sat),
|
||||||
|
|||||||
Reference in New Issue
Block a user