Fixed a typo. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39355 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -159,7 +159,7 @@ KeyboardFilter::Filter(BMessage* message, EventTarget** _target,
|
|||||||
|
|
||||||
message->FindInt32("key", &key);
|
message->FindInt32("key", &key);
|
||||||
message->FindInt32("modifiers", &modifiers);
|
message->FindInt32("modifiers", &modifiers);
|
||||||
|
|
||||||
if ((message->what == B_KEY_DOWN || message->what == B_UNMAPPED_KEY_DOWN)) {
|
if ((message->what == B_KEY_DOWN || message->what == B_UNMAPPED_KEY_DOWN)) {
|
||||||
// Check for safe video mode (cmd + ctrl + escape)
|
// Check for safe video mode (cmd + ctrl + escape)
|
||||||
if (key == 0x01 && (modifiers & B_COMMAND_KEY) != 0
|
if (key == 0x01 && (modifiers & B_COMMAND_KEY) != 0
|
||||||
@@ -919,7 +919,7 @@ Desktop::ActivateWindow(Window* window)
|
|||||||
|
|
||||||
AutoWriteLocker _(fWindowLock);
|
AutoWriteLocker _(fWindowLock);
|
||||||
|
|
||||||
NotifyWindowActitvated(window);
|
NotifyWindowActivated(window);
|
||||||
|
|
||||||
bool windowOnOtherWorkspace = !window->InWorkspace(fCurrentWorkspace);
|
bool windowOnOtherWorkspace = !window->InWorkspace(fCurrentWorkspace);
|
||||||
if (windowOnOtherWorkspace
|
if (windowOnOtherWorkspace
|
||||||
@@ -1413,7 +1413,7 @@ Desktop::AddWindow(Window *window)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_ChangeWindowWorkspaces(window, 0, window->Workspaces());
|
_ChangeWindowWorkspaces(window, 0, window->Workspaces());
|
||||||
|
|
||||||
NotifyWindowAdded(window);
|
NotifyWindowAdded(window);
|
||||||
|
|
||||||
UnlockAllWindows();
|
UnlockAllWindows();
|
||||||
@@ -1433,7 +1433,7 @@ Desktop::RemoveWindow(Window *window)
|
|||||||
fSubsetWindows.RemoveWindow(window);
|
fSubsetWindows.RemoveWindow(window);
|
||||||
|
|
||||||
_ChangeWindowWorkspaces(window, window->Workspaces(), 0);
|
_ChangeWindowWorkspaces(window, window->Workspaces(), 0);
|
||||||
|
|
||||||
NotifyWindowRemoved(window);
|
NotifyWindowRemoved(window);
|
||||||
|
|
||||||
UnlockAllWindows();
|
UnlockAllWindows();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
DesktopListener::~DesktopListener()
|
DesktopListener::~DesktopListener()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ DesktopObservable::NotifyKeyPressed(uint32 what, int32 key, int32 modifiers)
|
|||||||
|
|
||||||
for (DesktopListener* listener = fDesktopListenerList.First();
|
for (DesktopListener* listener = fDesktopListenerList.First();
|
||||||
listener != NULL; listener = fDesktopListenerList.GetNext(listener))
|
listener != NULL; listener = fDesktopListenerList.GetNext(listener))
|
||||||
listener->KeyPressed(what, key, modifiers);
|
listener->KeyPressed(what, key, modifiers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ DesktopObservable::NotifyWindowResized(Window* window)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DesktopObservable::NotifyWindowActitvated(Window* window)
|
DesktopObservable::NotifyWindowActivated(Window* window)
|
||||||
{
|
{
|
||||||
if (fWeAreInvoking)
|
if (fWeAreInvoking)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public:
|
|||||||
|
|
||||||
virtual void WindowAdded(Window* window) = 0;
|
virtual void WindowAdded(Window* window) = 0;
|
||||||
virtual void WindowRemoved(Window* window) = 0;
|
virtual void WindowRemoved(Window* window) = 0;
|
||||||
|
|
||||||
virtual void KeyPressed(uint32 what, int32 key,
|
virtual void KeyPressed(uint32 what, int32 key,
|
||||||
int32 modifiers) = 0;
|
int32 modifiers) = 0;
|
||||||
virtual void MouseEvent(BMessage* message) = 0;
|
virtual void MouseEvent(BMessage* message) = 0;
|
||||||
@@ -102,7 +102,7 @@ public:
|
|||||||
|
|
||||||
void NotifyWindowMoved(Window* window);
|
void NotifyWindowMoved(Window* window);
|
||||||
void NotifyWindowResized(Window* window);
|
void NotifyWindowResized(Window* window);
|
||||||
void NotifyWindowActitvated(Window* window);
|
void NotifyWindowActivated(Window* window);
|
||||||
void NotifyWindowSentBehind(Window* window,
|
void NotifyWindowSentBehind(Window* window,
|
||||||
Window* behindOf);
|
Window* behindOf);
|
||||||
void NotifyWindowWorkspacesChanged(Window* window,
|
void NotifyWindowWorkspacesChanged(Window* window,
|
||||||
@@ -133,7 +133,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
DesktopListenerDLList fDesktopListenerList;
|
DesktopListenerDLList fDesktopListenerList;
|
||||||
|
|
||||||
// prevent recursive invokes
|
// prevent recursive invokes
|
||||||
bool fWeAreInvoking;
|
bool fWeAreInvoking;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user