all repos — openbox @ 54dfa44cbecdb31cecb035e6ef8287007617b00c

openbox fork - make it a bit more like ryudo

move the Strut struct from Screen.hh to Util.hh
Dana Jansens danakj@orodu.net
commit

54dfa44cbecdb31cecb035e6ef8287007617b00c

parent

32ac5d9b885bec69be2785ad544ba6c473418ce8

3 files changed, 8 insertions(+), 6 deletions(-)

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

@@ -85,6 +85,7 @@ #include "Util.hh"

#include "Window.hh" #include "Workspace.hh" #include "Workspacemenu.hh" +#include "Util.hh" #include "XAtom.hh" #ifndef FONT_ELEMENT_SIZE
M src/Screen.hhsrc/Screen.hh

@@ -57,6 +57,7 @@

class Slit; // forward reference class BFont; class XAtom; +struct Strut; enum TextJustify { LeftJustify = 1, RightJustify, CenterJustify };

@@ -94,12 +95,6 @@ BFont *t_font, *f_font;

TextJustify t_justify, f_justify; int bullet, bullet_pos; -}; - -struct Strut { - unsigned int top, bottom, left, right; - - Strut(void): top(0), bottom(0), left(0), right(0) {} }; class BScreen : public ScreenInfo {
M src/Util.hhsrc/Util.hh

@@ -76,6 +76,12 @@ private:

int _x1, _y1, _x2, _y2; }; +struct Strut { + unsigned int top, bottom, left, right; + + Strut(void): top(0), bottom(0), left(0), right(0) {} +}; + /* XXX: this needs autoconf help */ const unsigned int BSENTINEL = 65535;