From e39e47b5cfe6b0e4fbdb850757c81f363ef2f38c Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 16 Aug 2003 12:12:21 +0000 Subject: minor cleaning --- src/SystemTray.cc | 7 ++++--- src/SystemTray.hh | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/SystemTray.cc b/src/SystemTray.cc index 708f257..a90abd3 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: SystemTray.cc,v 1.1 2003/08/15 13:48:50 fluxgen Exp $ +// $Id: SystemTray.cc,v 1.2 2003/08/16 12:12:21 fluxgen Exp $ #include "SystemTray.hh" @@ -28,6 +28,8 @@ #include "AtomHandler.hh" #include "fluxbox.hh" +#include + #include #include @@ -118,7 +120,6 @@ SystemTray::SystemTray(const FbTk::FbWindow &parent): XSendEvent(disp, root_window, false, StructureNotifyMask, &ce); - } SystemTray::~SystemTray() { @@ -265,7 +266,7 @@ void SystemTray::handleEvent(XEvent &event) { } void SystemTray::rearrangeClients() { - // resize clients + // move and resize clients ClientList::iterator client_it = m_clients.begin(); ClientList::iterator client_it_end = m_clients.end(); int next_x = 0; diff --git a/src/SystemTray.hh b/src/SystemTray.hh index 908738e..82d163c 100644 --- a/src/SystemTray.hh +++ b/src/SystemTray.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: SystemTray.hh,v 1.1 2003/08/15 13:48:50 fluxgen Exp $ +// $Id: SystemTray.hh,v 1.2 2003/08/16 12:12:21 fluxgen Exp $ #ifndef SYSTEMTRAY_HH #define SYSTEMTRAY_HH @@ -40,7 +40,7 @@ class SystemTray: public ToolbarItem, public FbTk::EventHandler { public: explicit SystemTray(const FbTk::FbWindow &parent); - ~SystemTray(); + virtual ~SystemTray(); void move(int x, int y); void resize(unsigned int width, unsigned int height); @@ -57,6 +57,9 @@ public: unsigned int height() const; unsigned int borderWidth() const; + int numClients() const { return m_clients.size(); } + const FbTk::FbWindow &window() const { return m_window; } + private: typedef std::list ClientList; ClientList::iterator findClient(Window win); -- cgit v0.11.2