Fix a regression on 3.4.7 for people using 2 monitors
Obtained from: awesome git repo
This commit is contained in:
parent
2d2a88d7a1
commit
1cede09763
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260482
2 changed files with 20 additions and 0 deletions
|
@ -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/
|
||||
|
|
19
x11-wm/awesome/files/patch-lib__awful__placement.lua.in
Normal file
19
x11-wm/awesome/files/patch-lib__awful__placement.lua.in
Normal file
|
@ -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
|
Loading…
Reference in a new issue