aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Container.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2021-07-06 22:56:26 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2021-07-06 22:56:26 (GMT)
commitb0663bc167f34b9796f98406329317f7bee15b00 (patch)
tree24e59202b08ab96d7539f56d14aeb15617739658 /src/FbTk/Container.hh
parentf76720d918d1a2c72811a6ec5b3a1fc4b52f768c (diff)
downloadfluxbox-b0663bc167f34b9796f98406329317f7bee15b00.zip
fluxbox-b0663bc167f34b9796f98406329317f7bee15b00.tar.bz2
Patch from Bo Simonsen.
Max size per client (setMaxSizePerClient) was computed for iconbar.alignment = Relative not taking into account that a fixed size can be given when iconbar.alignment = Left/Right. In a "recent" change, relative alignment was changed, to better handle items with long titles. This is breaking existing behavior, the new behavior is (with this commit) now denoted RelativeSmart.
Diffstat (limited to 'src/FbTk/Container.hh')
-rw-r--r--src/FbTk/Container.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/Container.hh b/src/FbTk/Container.hh
index 0f8ac08..2dc6475 100644
--- a/src/FbTk/Container.hh
+++ b/src/FbTk/Container.hh
@@ -39,7 +39,7 @@ class Container: public FbWindow, public EventHandler, private NotCopyable {
39public: 39public:
40 // LEFT, RIGHT => fixed total width, fixed icon size 40 // LEFT, RIGHT => fixed total width, fixed icon size
41 // RELATIVE => fixed total width, relative/variable icon size 41 // RELATIVE => fixed total width, relative/variable icon size
42 enum Alignment { LEFT, CENTER, RIGHT, RELATIVE }; 42 enum Alignment { LEFT, CENTER, RIGHT, RELATIVE, RELATIVE_SMART };
43 typedef Button * Item; 43 typedef Button * Item;
44 typedef const Button * ConstItem; 44 typedef const Button * ConstItem;
45 typedef std::list<Item> ItemList; 45 typedef std::list<Item> ItemList;