diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/events.c | 4 | ||||
-rw-r--r-- | src/manage.c | 8 |
2 files changed, 6 insertions, 6 deletions
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 } |