aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2009-08-24 23:49:04 +0000
committerokan2009-08-24 23:49:04 +0000
commit796a52c20656342eabaf923d6141d83883689d15 (patch)
tree95561d6d722104057243d99690fafec235e5ac3e /xevents.c
parentc460e9758e8fcb33b958beca85d70b67857758d4 (diff)
downloadcwm-796a52c20656342eabaf923d6141d83883689d15.tar.gz
bring together gathering, calculating and applying of size hints;
additionally, respect aspect ratio hints. ok oga@
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xevents.c b/xevents.c
index ce26a56..d4be785 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: xevents.c,v 1.41 2009/05/18 00:14:19 oga Exp $
+ * $Id: xevents.c,v 1.42 2009/08/24 23:49:04 okan Exp $
*/
/*
@@ -171,12 +171,11 @@ xev_handle_propertynotify(XEvent *ee)
{
XPropertyEvent *e = &ee->xproperty;
struct client_ctx *cc;
- long tmp;
if ((cc = client_find(e->window)) != NULL) {
switch (e->atom) {
case XA_WM_NORMAL_HINTS:
- XGetWMNormalHints(X_Dpy, cc->win, cc->size, &tmp);
+ client_getsizehints(cc);
break;
case XA_WM_NAME:
client_setname(cc);