From 3d219c27ec65b5c7a7894ca27b549ce63dd261d0 Mon Sep 17 00:00:00 2001
From: Janus <janus2@ymail.com>
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 73053e2..363b62c 100644
a
|
b
|
NotificationWindow::FrameResized(float width, float height)
|
112 | 112 | |
113 | 113 | |
114 | 114 | void |
| 115 | NotificationWindow::ScreenChanged(BRect frame, color_space mode) |
| 116 | { |
| 117 | SetPosition(); |
| 118 | } |
| 119 | |
| 120 | |
| 121 | void |
115 | 122 | NotificationWindow::MessageReceived(BMessage* message) |
116 | 123 | { |
117 | 124 | switch (message->what) { |
diff --git a/src/servers/notification/NotificationWindow.h b/src/servers/notification/NotificationWindow.h
index 2bbde55..10b2653 100644
a
|
b
|
public:
|
46 | 46 | virtual void MessageReceived(BMessage*); |
47 | 47 | virtual void WorkspaceActivated(int32, bool); |
48 | 48 | virtual void FrameResized(float width, float height); |
| 49 | virtual void ScreenChanged(BRect frame, color_space mode); |
49 | 50 | virtual BHandler* ResolveSpecifier(BMessage*, int32, BMessage*, |
50 | 51 | int32, const char*); |
51 | 52 | |