awesome/lib/awful
Uli Schlachter f22a69d54e Fix fullscreen clients with gravity != NorthWest (#1764)
Once upon a time, 4b9584fdb1 already fixed this problem: We have to
set the border width to zero before applying the new geometry to the
client, because changing the border width makes the client move
according to its gravity.

Then came e54387904b and made this code use awful.placement instead
of just fullscreening the client itself (without explaining why in the
commit message!). After this commit, the border width was just ignored
and left as-is. This was then fixed in 0bf8bb6a64 (no idea which
callback the commit message refers to, the old code was basically just
c.border_width=0, c:geometry(screen_geo)). However, now the border width
was again changed after the geometry and the bug that was fixed by
4b9584fdb1 was back.

This commit fixes this regression again by making sure that the border
width is set to zero before the geometry is set. This becomes slightly
more complicated, because now it is also awful.placement's job to
restore the old border width.

This is why this commit adds a new option to awful.placement so that it
sets the border width to zero after creating its memento of the old
border width.

Fixes: https://github.com/awesomeWM/awesome/issues/1607
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-05-13 23:31:14 +02:00
..
client Fix client shape handling 2017-02-04 07:20:56 +01:00
hotkeys_popup Add a header to hotkeys_popup.keys.firefox to make LDoc happy 2017-04-08 11:18:07 +02:00
layout fixup! Fix code using awful.util.cycle 2017-03-06 17:28:08 +01:00
mouse doc fixes for awful.mouse.resize, awful.rules, awful.util (#1717) 2017-04-10 21:57:12 +02:00
widget Fix single layout not appearing in the keyboardlayout widget (#1771) 2017-05-13 23:25:09 +02:00
autofocus.lua Remove @release @AWESOME_VERSION@ everywhere (#1157) 2016-10-09 22:36:20 +02:00
button.lua gears: Move awful.util.table to gears.table (#1641) 2017-03-08 15:18:33 -05:00
client.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
completion.lua Fix Luacheck 0.19.0 release Travis breaks 2017-03-03 16:41:12 -06:00
dbus.lua Remove traces of the old URL (#1280) 2016-12-21 02:03:03 +01:00
ewmh.lua Fix fullscreen clients with gravity != NorthWest (#1764) 2017-05-13 23:31:14 +02:00
init.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
key.lua gears: Move awful.util.table to gears.table (#1641) 2017-03-08 15:18:33 -05:00
keygrabber.lua Fix some deprecated calls in code and docs 2017-03-30 21:26:50 -05:00
menu.lua menu: Check if the client is still valid before accessing props 2017-05-11 12:47:06 -04:00
placement.lua Fix fullscreen clients with gravity != NorthWest (#1764) 2017-05-13 23:31:14 +02:00
prompt.lua awful.prompt: Use g.filesystem.make_parent_dir() 2017-04-08 11:02:01 +02:00
remote.lua Remove traces of the old URL (#1280) 2016-12-21 02:03:03 +01:00
rules.lua doc fixes for awful.mouse.resize, awful.rules, awful.util (#1717) 2017-04-10 21:57:12 +02:00
screen.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
spawn.lua Fix Luacheck 0.19.0 release Travis breaks 2017-03-03 16:41:12 -06:00
startup_notification.lua Add beautiful property to control busy cursor during spawn 2017-03-01 21:57:59 +01:00
tag.lua Merge pull request #1666 from awesomeWM/doc_tag_signal 2017-03-19 17:21:42 -04:00
titlebar.lua Fix 'no such file' errors for icons (#1655) 2017-03-15 17:29:53 +01:00
tooltip.lua gears: Move awful.util.table to gears.table (#1641) 2017-03-08 15:18:33 -05:00
util.lua Merge pull request #1699 from psychon/cache-dirs 2017-04-18 14:40:22 +02:00
wibar.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
wibox.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00