From 02d04a7664c0fa9b4c1caf5a04613455bd9b7228 Mon Sep 17 00:00:00 2001 From: Janus Date: Fri, 28 Dec 2012 23:24:06 +0000 Subject: [PATCH] Fix #9330. Notifications Window is always inside the screen Signed-off-by: Jerome Duval --- src/servers/notification/NotificationWindow.cpp | 7 +++++++ src/servers/notification/NotificationWindow.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/servers/notification/NotificationWindow.cpp b/src/servers/notification/NotificationWindow.cpp index be8e670c1d..068048bee3 100644 --- a/src/servers/notification/NotificationWindow.cpp +++ b/src/servers/notification/NotificationWindow.cpp @@ -104,6 +104,13 @@ NotificationWindow::WorkspaceActivated(int32 /*workspace*/, bool active) } +void +NotificationWindow::FrameResized(float width, float height) +{ + SetPosition(); +} + + void NotificationWindow::MessageReceived(BMessage* message) { diff --git a/src/servers/notification/NotificationWindow.h b/src/servers/notification/NotificationWindow.h index 76dcc83509..2bbde55477 100644 --- a/src/servers/notification/NotificationWindow.h +++ b/src/servers/notification/NotificationWindow.h @@ -44,7 +44,8 @@ public: virtual bool QuitRequested(); virtual void MessageReceived(BMessage*); - virtual void WorkspaceActivated(int32, bool); + virtual void WorkspaceActivated(int32, bool); + virtual void FrameResized(float width, float height); virtual BHandler* ResolveSpecifier(BMessage*, int32, BMessage*, int32, const char*);