diff options
author | garga <garga@FreeBSD.org> | 2010-09-03 19:54:28 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2010-09-03 19:54:28 +0800 |
commit | f395a514d5fcf13d2f19b4107031e46603ea35dc (patch) | |
tree | 3baf2f7319125823e9b38964d1ac9f74d1ff21b0 /x11-wm | |
parent | 34f4f8e2e7f91761871cae76285dabb42a2043fb (diff) | |
download | freebsd-ports-gnome-f395a514d5fcf13d2f19b4107031e46603ea35dc.tar.gz freebsd-ports-gnome-f395a514d5fcf13d2f19b4107031e46603ea35dc.tar.zst freebsd-ports-gnome-f395a514d5fcf13d2f19b4107031e46603ea35dc.zip |
Fix a regression on 3.4.7 for people using 2 monitors
Obtained from: awesome git repo
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/awesome/Makefile | 1 | ||||
-rw-r--r-- | x11-wm/awesome/files/patch-lib__awful__placement.lua.in | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/x11-wm/awesome/Makefile b/x11-wm/awesome/Makefile index 618a78bb20ec..0007f79d40e5 100644 --- a/x11-wm/awesome/Makefile +++ b/x11-wm/awesome/Makefile @@ -7,6 +7,7 @@ PORTNAME= awesome PORTVERSION= 3.4.7 +PORTREVISION= 1 CATEGORIES= x11-wm MASTER_SITES= http://awesome.naquadah.org/download/ \ http://redundancy.redundancy.org/mirror/ diff --git a/x11-wm/awesome/files/patch-lib__awful__placement.lua.in b/x11-wm/awesome/files/patch-lib__awful__placement.lua.in new file mode 100644 index 000000000000..fad502200ec0 --- /dev/null +++ b/x11-wm/awesome/files/patch-lib__awful__placement.lua.in @@ -0,0 +1,19 @@ +diff --git a/lib/awful/placement.lua.in b/lib/awful/placement.lua.in +--- lib/awful/placement.lua.in ++++ lib/awful/placement.lua.in +@@ -109,13 +109,13 @@ function no_offscreen(c) + local screen_geometry = capi.screen[c.screen].workarea + + if geometry.x + geometry.width + 2*border > screen_geometry.x + screen_geometry.width then +- geometry.x = screen_geometry.x + screen_geometry.width - geometry.width - 2*border ++ geometry.x = screen_geometry.x + screen_geometry.width - geometry.width + elseif geometry.x < screen_geometry.x then + geometry.x = screen_geometry.x + end + + if geometry.y + geometry.height + border > screen_geometry.y + screen_geometry.height then +- geometry.y = screen_geometry.y + screen_geometry.height - geometry.height - 2*border ++ geometry.y = screen_geometry.y + screen_geometry.height - geometry.height + elseif geometry.y < screen_geometry.y then + geometry.y = screen_geometry.y + end |