diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-11-04 16:41:44 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-11-30 14:26:43 +0000 |
commit | b4fb2c4b015e5bf30572b0ee36a5a2407f848fed (patch) | |
tree | 06a77575a76fffb430940f9565fe7f173edaca21 /src | |
parent | 52f69ad8c9aa467d13c83dc2b9e54dc0b876ea82 (diff) |
Update for hints->size_hints rename
Diffstat (limited to 'src')
-rw-r--r-- | src/wndproc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wndproc.c b/src/wndproc.c index d1e6584..52b3df6 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -395,20 +395,20 @@ winApplyStyle(xcwm_window_t *window) break; } - if (window->hints.flags & XCB_ICCCM_SIZE_HINT_P_MAX_SIZE) + if (window->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MAX_SIZE) { /* Not maximizable if a maximum size is specified */ hint &= ~HINT_MAXIMIZE; - if (window->hints.flags & XCB_ICCCM_SIZE_HINT_P_MIN_SIZE) + if (window->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MIN_SIZE) { /* (per EWMH Implementation Notes, section "Fixed Size windows") If both minimum size and maximum size are specified and are the same, don't bother with a resizing frame */ - if ((window->hints.min_width == window->hints.max_width) - && (window->hints.min_height == window->hints.max_height)) + if ((window->size_hints.min_width == window->size_hints.max_width) + && (window->size_hints.min_height == window->size_hints.max_height)) hint = (hint & ~HINT_SIZEFRAME); } } @@ -1217,7 +1217,7 @@ winCreateWindowsWindow(xcwm_window_t *window) /* Default positions if none specified */ if (!xcwm_window_is_override_redirect(window)) { - if (!(window->hints.flags & (XCB_ICCCM_SIZE_HINT_US_POSITION | XCB_ICCCM_SIZE_HINT_P_POSITION))) + if (!(window->size_hints.flags & (XCB_ICCCM_SIZE_HINT_US_POSITION | XCB_ICCCM_SIZE_HINT_P_POSITION))) { iX = CW_USEDEFAULT; iY = CW_USEDEFAULT; |