App Server: style fixes

80 char limit
spaces => tabs
fix spelling/grammar problems in comment
This commit is contained in:
John Scipione
2017-01-09 23:11:34 -08:00
parent b1967b1012
commit d5b6133b93
2 changed files with 6 additions and 5 deletions
@@ -604,8 +604,8 @@ struct DefaultWindowBehaviour::ManageWindowState : State {
virtual bool MouseDown(BMessage* message, BPoint where, bool& _unhandled) virtual bool MouseDown(BMessage* message, BPoint where, bool& _unhandled)
{ {
// We're only interested, if the secondary mouse button was pressed. // We're only interested if the secondary mouse button was pressed,
// Othewise let the our caller handle the event. // otherwise let the caller handle the event.
int32 buttons = message->FindInt32("buttons"); int32 buttons = message->FindInt32("buttons");
if ((buttons & B_SECONDARY_MOUSE_BUTTON) == 0) { if ((buttons & B_SECONDARY_MOUSE_BUTTON) == 0) {
_unhandled = true; _unhandled = true;
+4 -3
View File
@@ -212,7 +212,8 @@ void
InputServer::_InitKeyboardMouseStates() InputServer::_InitKeyboardMouseStates()
{ {
CALLED(); CALLED();
// This is where we determine the screen resolution from the app_server and find the center of the screen // This is where we determine the screen resolution from the app_server and
// find the center of the screen
// fMousePos is then set to the center of the screen. // fMousePos is then set to the center of the screen.
fFrame = fScreen.Frame(); fFrame = fScreen.Frame();
@@ -530,8 +531,8 @@ InputServer::MessageReceived(BMessage* message)
case IS_RELEASE_INPUT: case IS_RELEASE_INPUT:
_ReleaseInput(message); _ReleaseInput(message);
return; return;
case IS_SCREEN_BOUNDS_UPDATED: case IS_SCREEN_BOUNDS_UPDATED:
{ {
// This is what the R5 app_server sends us when the screen // This is what the R5 app_server sends us when the screen
// configuration changes // configuration changes
BRect frame; BRect frame;