diff options
author | sabetts <sabetts> | 2002-02-17 21:24:28 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2002-02-17 21:24:28 +0000 |
commit | 0027574655e306fcb2d9dd6ad578fdba9bf10826 (patch) | |
tree | 08b227e58b540b89ceb40cc310fbd87d31d832fb | |
parent | 6b681e4bcc5fc719ea27bd30b9547be43224e255 (diff) | |
download | ratpoison-0027574655e306fcb2d9dd6ad578fdba9bf10826.zip |
* src/manage.c (update_normal_hints): fix debugging output to be
more readable.
* src/events.c (configure_request): call XSync after granting
configure request.
(property_notify): maximize the window on receiving a normal hints
property change.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | src/events.c | 4 | ||||
-rw-r--r-- | src/manage.c | 8 |
3 files changed, 16 insertions, 6 deletions
@@ -1,3 +1,13 @@ +2002-02-17 Shawn Betts <sabetts@vcn.bc.ca> + + * src/manage.c (update_normal_hints): fix debugging output to be + more readable. + + * src/events.c (configure_request): call XSync after granting + configure request. + (property_notify): maximize the window on receiving a normal hints + property change. + 2002-02-16 Shawn Betts <sabetts@vcn.bc.ca> * src/manage.c (maximize): remove calls to XSelectInput. diff --git a/src/events.c b/src/events.c index c07fb0b..88033e1 100644 --- a/src/events.c +++ b/src/events.c @@ -299,7 +299,7 @@ configure_request (XConfigureRequestEvent *e) XConfigureWindow (dpy, win->w, e->value_mask & (CWX|CWY|CWBorderWidth|CWWidth|CWHeight), &changes); - + XSync(dpy, False); if (win->state == NormalState) maximize (win); } @@ -584,6 +584,8 @@ property_notify (XEvent *ev) case XA_WM_NORMAL_HINTS: PRINT_DEBUG ("updating window normal hints\n"); update_normal_hints (win); + if (win->state == NormalState) + maximize (win); break; case XA_WM_TRANSIENT_FOR: diff --git a/src/manage.c b/src/manage.c index 4a024d3..1d129fd 100644 --- a/src/manage.c +++ b/src/manage.c @@ -76,17 +76,15 @@ update_normal_hints (rp_window *win) /* Print debugging output for window hints. */ #ifdef DEBUG - PRINT_DEBUG ("hints: "); if (win->hints->flags & PMinSize) - PRINT_DEBUG ("minx: %d miny: %d ", win->hints->min_width, win->hints->min_height); + PRINT_DEBUG ("minx: %d miny: %d\n", win->hints->min_width, win->hints->min_height); if (win->hints->flags & PMaxSize) - PRINT_DEBUG ("maxx: %d maxy: %d ", win->hints->max_width, win->hints->max_height); + PRINT_DEBUG ("maxx: %d maxy: %d\n", win->hints->max_width, win->hints->max_height); if (win->hints->flags & PResizeInc) - PRINT_DEBUG ("incx: %d incy: %d", win->hints->width_inc, win->hints->height_inc); + PRINT_DEBUG ("incx: %d incy: %d\n", win->hints->width_inc, win->hints->height_inc); - PRINT_DEBUG ("\n"); #endif } |