Ticket #9330: 0001-Fix-9330.-Notifications-Window-is-always-inside-the-.patch

File 0001-Fix-9330.-Notifications-Window-is-always-inside-the-.patch, 1.5 KB (added by Janus, 7 years ago)
  • src/servers/notification/NotificationWindow.cpp

    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)  
    105105
    106106
    107107void
     108NotificationWindow::FrameResized(float width, float height)
     109{
     110    SetPosition();
     111}
     112
     113
     114void
    108115NotificationWindow::MessageReceived(BMessage* message)
    109116{
    110117    switch (message->what) {
  • src/servers/notification/NotificationWindow.h

    diff --git a/src/servers/notification/NotificationWindow.h b/src/servers/notification/NotificationWindow.h
    index 76dcc83..2bbde55 100644
    a b public:  
    4444
    4545    virtual bool                    QuitRequested();
    4646    virtual void                    MessageReceived(BMessage*);
    47     virtual void                    WorkspaceActivated(int32, bool);
     47    virtual void                    WorkspaceActivated(int32, bool);
     48    virtual void                    FrameResized(float width, float height);
    4849    virtual BHandler*               ResolveSpecifier(BMessage*, int32, BMessage*,
    4950                                        int32, const char*);
    5051