minor cleaning

This commit is contained in:
fluxgen 2003-08-16 12:12:21 +00:00
parent a44683165c
commit e39e47b5cf
2 changed files with 9 additions and 5 deletions

View file

@ -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 <X11/Xutil.h>
#include <iostream>
#include <string>
@ -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;

View file

@ -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<FbTk::FbWindow *> ClientList;
ClientList::iterator findClient(Window win);