all repos — fluxbox @ c93fa789daed6f72682ed92ccd39b5e6e3d0c089

custom fork of the fluxbox windowmanager

Added getLast, last and first functions
fluxgen fluxgen
commit

c93fa789daed6f72682ed92ccd39b5e6e3d0c089

parent

05cec54a399f8b5fde81f04bfc30f60fa4e8afe3

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/Tab.hhsrc/Tab.hh

@@ -42,6 +42,9 @@ ~Tab();

void draw(bool pressed); inline Tab *next() const { return m_next; } inline Tab *prev() const { return m_prev; } + inline Tab *last() { return getLast(this); } + inline Tab *first() { return getFirst(this); } + inline FluxboxWindow *getWindow() const { return m_win; } inline unsigned int getTabWidth() const { return m_size_w; } inline unsigned int getTabHeight() const { return m_size_h; }

@@ -62,6 +65,7 @@ void buttonPressEvent(XButtonEvent *be);

void exposeEvent(XExposeEvent *ee); void motionNotifyEvent(XMotionEvent *me); static Tab *getFirst(Tab *current); + static Tab *getLast(Tab *current); void disconnect(); enum { PTop = 0, PBottom = 5, PLeft = 10, PRight = 15, pnone = 20};