… | |
… | |
913 | |
913 | |
914 | window_calc (newwidth, newheight); |
914 | window_calc (newwidth, newheight); |
915 | |
915 | |
916 | bool set_hint = !HOOK_INVOKE ((this, HOOK_RESIZE_ALL_WINDOWS, DT_INT, newwidth, DT_INT, newheight, DT_END)); |
916 | bool set_hint = !HOOK_INVOKE ((this, HOOK_RESIZE_ALL_WINDOWS, DT_INT, newwidth, DT_INT, newheight, DT_END)); |
917 | |
917 | |
|
|
918 | // to avoid races between us and the wm, we clear the incremental size hints around the xresizewindow |
918 | if (set_hint) |
919 | if (set_hint) |
919 | { |
920 | { |
920 | szHint.flags &= ~(PBaseSize | PResizeInc); |
921 | szHint.flags &= ~(PBaseSize | PResizeInc); |
921 | XSetWMNormalHints (dpy, parent[0], &szHint); |
922 | XSetWMNormalHints (dpy, parent[0], &szHint); |
922 | szHint.flags |= PBaseSize | PResizeInc; |
923 | szHint.flags |= PBaseSize | PResizeInc; |