diff options
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); |