all repos — fluxbox @ e39e47b5cfe6b0e4fbdb850757c81f363ef2f38c

custom fork of the fluxbox windowmanager

minor cleaning
fluxgen fluxgen
commit

e39e47b5cfe6b0e4fbdb850757c81f363ef2f38c

parent

a44683165c1c892dc6d83151323fa70780a920c0

2 files changed, 9 insertions(+), 5 deletions(-)

jump to
M src/SystemTray.ccsrc/SystemTray.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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"

@@ -27,6 +27,8 @@ #include "FbTk/EventManager.hh"

#include "AtomHandler.hh" #include "fluxbox.hh" + +#include <X11/Xutil.h> #include <iostream> #include <string>

@@ -117,7 +119,6 @@ ce.xclient.data.l[3] = 0l; // selection specific data

ce.xclient.data.l[4] = 0l; // selection specific data XSendEvent(disp, root_window, false, StructureNotifyMask, &ce); - }

@@ -265,7 +266,7 @@ }

} 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;
M src/SystemTray.hhsrc/SystemTray.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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);

@@ -56,6 +56,9 @@

unsigned int width() const; 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;