diff options
author | Ismo Toijala | 2015-06-26 10:45:34 +0200 |
---|---|---|
committer | Ismo Toijala | 2015-06-26 10:45:34 +0200 |
commit | a145b42a7cf4e0454c46c7258d91f778ee4402d0 (patch) | |
tree | ef4b3c32b742c45d03ff4ed4b5d702d3fc9cac77 /noinc.diff | |
download | aur-a145b42a7cf4e0454c46c7258d91f778ee4402d0.tar.gz |
initial upload
Diffstat (limited to 'noinc.diff')
-rw-r--r-- | noinc.diff | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/noinc.diff b/noinc.diff new file mode 100644 index 000000000000..8b64d6c4e7c0 --- /dev/null +++ b/noinc.diff @@ -0,0 +1,35 @@ +--- /src/main.C ++++ /src/main.C +@@ -588,7 +588,7 @@ + unsigned int w, h; + unsigned int max_width, max_height; + +- szHint.flags = PMinSize | PResizeInc | PBaseSize | PWinGravity; ++ szHint.flags = PMinSize | PWinGravity; + szHint.win_gravity = NorthWestGravity; + /* szHint.min_aspect.x = szHint.min_aspect.y = 1; */ + +@@ -703,6 +703,8 @@ + + ncol = width / fwidth; + nrow = height / fheight; ++ width = ncol * fwidth; ++ height = nrow * fheight; + + // When the size of the vt window is not a multiple of the cell + // size, i.e., when the wm does not honour our size hints, there are +@@ -1006,14 +1008,6 @@ + window_calc (newwidth, newheight); + + bool set_hint = !HOOK_INVOKE ((this, HOOK_RESIZE_ALL_WINDOWS, DT_INT, newwidth, DT_INT, newheight, DT_END)); +- +- // to avoid races between us and the wm, we clear the incremental size hints around the xresizewindow +- if (set_hint) +- { +- szHint.flags &= ~(PBaseSize | PResizeInc); +- XSetWMNormalHints (dpy, parent, &szHint); +- szHint.flags |= PBaseSize | PResizeInc; +- } + + if (!ignoreparent) + { |