Ticket #9448: 0001-Fix-9448.-notification_server-monitors-screen-resolu.patch

File 0001-Fix-9448.-notification_server-monitors-screen-resolu.patch, 1.5 KB (added by Janus, 6 years ago)
  • src/servers/notification/NotificationWindow.cpp

    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)  
    112112
    113113
    114114void
     115NotificationWindow::ScreenChanged(BRect frame, color_space mode)
     116{
     117    SetPosition();
     118}
     119
     120
     121void
    115122NotificationWindow::MessageReceived(BMessage* message)
    116123{
    117124    switch (message->what) {
  • src/servers/notification/NotificationWindow.h

    diff --git a/src/servers/notification/NotificationWindow.h b/src/servers/notification/NotificationWindow.h
    index 2bbde55..10b2653 100644
    a b public:  
    4646    virtual void                    MessageReceived(BMessage*);
    4747    virtual void                    WorkspaceActivated(int32, bool);
    4848    virtual void                    FrameResized(float width, float height);
     49    virtual void                    ScreenChanged(BRect frame, color_space mode);
    4950    virtual BHandler*               ResolveSpecifier(BMessage*, int32, BMessage*,
    5051                                        int32, const char*);
    5152