diff options
author | rathnor <rathnor> | 2003-09-29 14:58:15 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-09-29 14:58:15 (GMT) |
commit | 81378f9494db4ab1d033947532d7fac968095ecd (patch) | |
tree | 0980a0ed9e2ebcbb2d7b7c88d6fbe1d98ab06dd2 /src/WinClient.hh | |
parent | 15dfe811124e3f1be7d9a802290372427dae5afb (diff) | |
download | fluxbox-81378f9494db4ab1d033947532d7fac968095ecd.zip fluxbox-81378f9494db4ab1d033947532d7fac968095ecd.tar.bz2 |
fix handling of base_Width/height hints in wm_normal_hints
- fixes abiword resize issues
Diffstat (limited to 'src/WinClient.hh')
-rw-r--r-- | src/WinClient.hh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/WinClient.hh b/src/WinClient.hh index 6bdfe3f..c93a76d 100644 --- a/src/WinClient.hh +++ b/src/WinClient.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: WinClient.hh,v 1.14 2003/09/21 12:49:48 rathnor Exp $ | 22 | // $Id: WinClient.hh,v 1.15 2003/09/29 14:58:15 rathnor Exp $ |
23 | 23 | ||
24 | #ifndef WINCLIENT_HH | 24 | #ifndef WINCLIENT_HH |
25 | #define WINCLIENT_HH | 25 | #define WINCLIENT_HH |
@@ -102,6 +102,16 @@ public: | |||
102 | void updateWMHints(); | 102 | void updateWMHints(); |
103 | void updateWMNormalHints(); | 103 | void updateWMNormalHints(); |
104 | 104 | ||
105 | /** | ||
106 | * Changes width and height to the nearest (lower) value | ||
107 | * that conforms to it's size hints. | ||
108 | * | ||
109 | * display_* give the values that would be displayed | ||
110 | * to the user when resizing. | ||
111 | * We use pointers for display_* since they are optional. | ||
112 | */ | ||
113 | void applySizeHints(int &width, int &height, int *display_width = 0, int *display_height = 0); | ||
114 | |||
105 | // grouping is tracked by remembering the window to the left in the group | 115 | // grouping is tracked by remembering the window to the left in the group |
106 | Window getGroupLeftWindow() const; | 116 | Window getGroupLeftWindow() const; |
107 | void setGroupLeftWindow(Window win); | 117 | void setGroupLeftWindow(Window win); |