minor cleaning
This commit is contained in:
parent
a44683165c
commit
e39e47b5cf
2 changed files with 9 additions and 5 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "SystemTray.hh"
|
||||||
|
|
||||||
|
@ -28,6 +28,8 @@
|
||||||
#include "AtomHandler.hh"
|
#include "AtomHandler.hh"
|
||||||
#include "fluxbox.hh"
|
#include "fluxbox.hh"
|
||||||
|
|
||||||
|
#include <X11/Xutil.h>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -118,7 +120,6 @@ SystemTray::SystemTray(const FbTk::FbWindow &parent):
|
||||||
|
|
||||||
XSendEvent(disp, root_window, false, StructureNotifyMask, &ce);
|
XSendEvent(disp, root_window, false, StructureNotifyMask, &ce);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemTray::~SystemTray() {
|
SystemTray::~SystemTray() {
|
||||||
|
@ -265,7 +266,7 @@ void SystemTray::handleEvent(XEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SystemTray::rearrangeClients() {
|
void SystemTray::rearrangeClients() {
|
||||||
// resize clients
|
// move and resize clients
|
||||||
ClientList::iterator client_it = m_clients.begin();
|
ClientList::iterator client_it = m_clients.begin();
|
||||||
ClientList::iterator client_it_end = m_clients.end();
|
ClientList::iterator client_it_end = m_clients.end();
|
||||||
int next_x = 0;
|
int next_x = 0;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
#ifndef SYSTEMTRAY_HH
|
||||||
#define SYSTEMTRAY_HH
|
#define SYSTEMTRAY_HH
|
||||||
|
@ -40,7 +40,7 @@ class SystemTray: public ToolbarItem, public FbTk::EventHandler {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SystemTray(const FbTk::FbWindow &parent);
|
explicit SystemTray(const FbTk::FbWindow &parent);
|
||||||
~SystemTray();
|
virtual ~SystemTray();
|
||||||
|
|
||||||
void move(int x, int y);
|
void move(int x, int y);
|
||||||
void resize(unsigned int width, unsigned int height);
|
void resize(unsigned int width, unsigned int height);
|
||||||
|
@ -57,6 +57,9 @@ public:
|
||||||
unsigned int height() const;
|
unsigned int height() const;
|
||||||
unsigned int borderWidth() const;
|
unsigned int borderWidth() const;
|
||||||
|
|
||||||
|
int numClients() const { return m_clients.size(); }
|
||||||
|
const FbTk::FbWindow &window() const { return m_window; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef std::list<FbTk::FbWindow *> ClientList;
|
typedef std::list<FbTk::FbWindow *> ClientList;
|
||||||
ClientList::iterator findClient(Window win);
|
ClientList::iterator findClient(Window win);
|
||||||
|
|
Loading…
Reference in a new issue