From 2c97ca10285e6c1f56f86f26f4d628568a4ef225 Mon Sep 17 00:00:00 2001
From: Janus <janus2@ymail.com>
Date: Fri, 28 Dec 2012 23:24:06 +0000
Subject: [PATCH] Fix #9330. Notifications Window is always inside the screen
---
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 be8e670..068048b 100644
a
|
b
|
NotificationWindow::WorkspaceActivated(int32 /*workspace*/, bool active)
|
105 | 105 | |
106 | 106 | |
107 | 107 | void |
| 108 | NotificationWindow::FrameResized(float width, float height) |
| 109 | { |
| 110 | SetPosition(); |
| 111 | } |
| 112 | |
| 113 | |
| 114 | void |
108 | 115 | NotificationWindow::MessageReceived(BMessage* message) |
109 | 116 | { |
110 | 117 | switch (message->what) { |
diff --git a/src/servers/notification/NotificationWindow.h b/src/servers/notification/NotificationWindow.h
index 76dcc83..2bbde55 100644
a
|
b
|
public:
|
44 | 44 | |
45 | 45 | virtual bool QuitRequested(); |
46 | 46 | virtual void MessageReceived(BMessage*); |
47 | | virtual void WorkspaceActivated(int32, bool); |
| 47 | virtual void WorkspaceActivated(int32, bool); |
| 48 | virtual void FrameResized(float width, float height); |
48 | 49 | virtual BHandler* ResolveSpecifier(BMessage*, int32, BMessage*, |
49 | 50 | int32, const char*); |
50 | 51 | |