From a74b2df99299e86a8f2a7f0994d342482958e3d4 Mon Sep 17 00:00:00 2001 From: Janus Date: Mon, 11 Nov 2013 21:19:55 +0000 Subject: [PATCH] Fix #9448. [notification_server] monitors screen resolution --- src/servers/notification/NotificationWindow.cpp | 7 +++++++ src/servers/notification/NotificationWindow.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/servers/notification/NotificationWindow.cpp b/src/servers/notification/NotificationWindow.cpp index 73053e2058..363b62c173 100644 --- a/src/servers/notification/NotificationWindow.cpp +++ b/src/servers/notification/NotificationWindow.cpp @@ -111,6 +111,13 @@ NotificationWindow::FrameResized(float width, float height) } +void +NotificationWindow::ScreenChanged(BRect frame, color_space mode) +{ + SetPosition(); +} + + void NotificationWindow::MessageReceived(BMessage* message) { diff --git a/src/servers/notification/NotificationWindow.h b/src/servers/notification/NotificationWindow.h index 2bbde55477..10b2653984 100644 --- a/src/servers/notification/NotificationWindow.h +++ b/src/servers/notification/NotificationWindow.h @@ -46,6 +46,7 @@ public: virtual void MessageReceived(BMessage*); virtual void WorkspaceActivated(int32, bool); virtual void FrameResized(float width, float height); + virtual void ScreenChanged(BRect frame, color_space mode); virtual BHandler* ResolveSpecifier(BMessage*, int32, BMessage*, int32, const char*);