From 710eb7410f2ca3200259d84a5e3f71dde0a21b6f Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Sun, 22 Jan 2012 14:59:44 +1300 Subject: [PATCH] Clean up use of SetPosition(). This fixes a bug where an empty white window would appear when changing workspaces if there were no notifications. --- src/servers/notification/NotificationWindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/servers/notification/NotificationWindow.cpp b/src/servers/notification/NotificationWindow.cpp index 08d434da5c..e7ff4c2d30 100644 --- a/src/servers/notification/NotificationWindow.cpp +++ b/src/servers/notification/NotificationWindow.cpp @@ -100,7 +100,7 @@ NotificationWindow::WorkspaceActivated(int32 /*workspace*/, bool active) { // Ensure window is in the correct position if (active) - _ShowHide(); + SetPosition(); } @@ -317,9 +317,10 @@ NotificationWindow::_ShowHide() return; } - SetPosition(); - if (IsHidden()) + if (IsHidden()) { + SetPosition(); Show(); + } }