… | |
… | |
625 | szHint.x += DisplayWidth (dpy, display->screen) - szHint.width - 2 * ext_bwidth; |
625 | szHint.x += DisplayWidth (dpy, display->screen) - szHint.width - 2 * ext_bwidth; |
626 | |
626 | |
627 | if (recalc_y) |
627 | if (recalc_y) |
628 | szHint.y += DisplayHeight (dpy, display->screen) - szHint.height - 2 * ext_bwidth; |
628 | szHint.y += DisplayHeight (dpy, display->screen) - szHint.height - 2 * ext_bwidth; |
629 | |
629 | |
630 | ncol = width / fwidth; |
630 | ncol = width / fwidth; |
631 | nrow = height / fheight; |
631 | nrow = height / fheight; |
632 | } |
632 | } |
633 | |
633 | |
634 | /*----------------------------------------------------------------------*/ |
634 | /*----------------------------------------------------------------------*/ |
635 | /* |
635 | /* |
… | |
… | |
911 | int old_width = szHint.width; |
911 | int old_width = szHint.width; |
912 | int old_height = szHint.height; |
912 | int old_height = szHint.height; |
913 | |
913 | |
914 | window_calc (newwidth, newheight); |
914 | window_calc (newwidth, newheight); |
915 | |
915 | |
916 | if (!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 | |
|
|
918 | if (set_hint) |
|
|
919 | { |
|
|
920 | szHint.flags &= ~(PBaseSize | PResizeInc); |
917 | XSetWMNormalHints (dpy, parent[0], &szHint); |
921 | XSetWMNormalHints (dpy, parent[0], &szHint); |
|
|
922 | szHint.flags |= PBaseSize | PResizeInc; |
|
|
923 | } |
918 | |
924 | |
919 | if (!ignoreparent) |
925 | if (!ignoreparent) |
920 | { |
926 | { |
921 | #ifdef SMART_RESIZE |
927 | #ifdef SMART_RESIZE |
922 | /* |
928 | /* |
… | |
… | |
981 | #endif |
987 | #endif |
982 | |
988 | |
983 | scr_clear (); |
989 | scr_clear (); |
984 | } |
990 | } |
985 | |
991 | |
|
|
992 | if (set_hint) |
|
|
993 | XSetWMNormalHints (dpy, parent[0], &szHint); |
|
|
994 | |
986 | if (fix_screen || old_height == 0) |
995 | if (fix_screen || old_height == 0) |
987 | scr_reset (); |
996 | scr_reset (); |
988 | |
997 | |
989 | // TODO, with nvidia-8178, resizes kill the alpha channel, report if not fixed in newer version |
998 | // TODO, with nvidia-8178, resizes kill the alpha channel, report if not fixed in newer version |
990 | //scr_touch (false); |
999 | //scr_touch (false); |