all repos — fluxbox @ b7eee2350d5179e7a54aec047223aa1422581447

custom fork of the fluxbox windowmanager

fix rotation
Mark Tiefenbruck mark@fluxbox.org
commit

b7eee2350d5179e7a54aec047223aa1422581447

parent

39d4d0a01056178ec01977522ac99e589b15e4a8

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/FbTk/TextUtils.hhsrc/FbTk/TextUtils.hh

@@ -72,7 +72,7 @@

} // still require w and h in ROT0 coords -inline void untranslateCoords(Orientation orient, int orig_x, int orig_y, unsigned int w, unsigned int h) { +inline void untranslateCoords(Orientation orient, int &orig_x, int &orig_y, unsigned int w, unsigned int h) { int x = orig_x; int y = orig_y;

@@ -98,7 +98,7 @@ }

// When positioning an X11 box inside another area, we need to // relocate the x,y coordinates -inline void translatePosition(Orientation orient, int x, int y, unsigned int w, unsigned int h, unsigned int bw) { +inline void translatePosition(Orientation orient, int &x, int &y, unsigned int w, unsigned int h, unsigned int bw) { switch(orient) { case ROT0:

@@ -117,7 +117,7 @@ }

} -inline void translateSize(Orientation orient, unsigned int w, unsigned int h) { +inline void translateSize(Orientation orient, unsigned int &w, unsigned int &h) { if (orient == ROT0 || orient == ROT180) return;