Fix Icon Finding in awful.util

This should also fix naughty failures to display the correct icons
remove awful.widget.taglist.gettag (FS#1256)

It's been broken since ages.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Merge git://github.com/Teknocrat/awesome
naughty: Support file:// URIs for icon paths

From the Desktop Notification Specification:

'The "app_icon" parameter and "image-path" hint should be either an URI (file://
is the only URI schema supported right now) or [...]'
https://developer.gnome.org/notification-spec/#icons-and-images-formats

Signed-off-by: Uli Schlachter <psychon@znc.in>
Only include awesome-version-internal.h in one place

This means we have one less file which gets recompiled every time the result
from "git describe" changes.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Fix some random ldoc warnings

Signed-off-by: Uli Schlachter <psychon@znc.in>
xwindow_shape_pixmap: Correctly handle invalid geometry

Signed-off-by: Uli Schlachter <psychon@znc.in>
awful.client.shape: Import client shape handling (FS#1051)

This new awful module reacts to shapes that a client sets on itself and sets the
shape of awesome's frame window to match. This way, xeyes really gets
transparent parts again.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Add persistent client properties

`client.property.persist` can be used to make properties persistent
across restarts. This works by backing them up via X properties (using
the `awful.client.property.` prefix).

`client.property.persist(c, "floating", "boolean")` is used to make the
floating property persistent by default.

Based on a patch from Uli, source: https://gist.github.com/psychon/10320743

doc, only set current prop in 'persist'

Fix xprop/prop mixup in 'persist'

Only call set for non-nil values
Call AllowEvents after grabbed events on a drawin

When we get an event due to a previous GrabButtons call, we have to continue
normal event processing again, because the server froze the input device for us.
Without this, everything appears to freeze.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Merge remote-tracking branch 'blueyed/remember-layout-across-restarts'
Remove unused argument to awful.client.property.persist

This is a left-over from an old version of the patch which introduced this new
function.

Signed-off-by: Uli Schlachter <psychon@znc.in>
awful.util.geticonpath: Correctly localize variables

This function was accidentally setting the global variable "icontypes". Fix this
by adding the needed "local" and also localize some more variables for
consistency.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Fix check against clients in taglist.
systray: added definable icon spacing

Default is 0. Customized by adding theme.systray_icon_spacing
directive in theme.
systray: Small consistency fixes

Use lua's *integer instead of *number functions, because we are dealing with
integers. That is, "numbers which do not have a fractional part".

Also some minor fixup for some comments.

Signed-off-by: Uli Schlachter <psychon@znc.in>
wibox.widget.systray: Special case the empty systray

Otherwise we could end up with negative size for the systray.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Merge branch 'fix-clients-length' of https://github.com/tail/awesome
gears.wallpaper: Center maximized if no offset set

maximized() used to align the image with (0,0) so that it is shifted to the right or bottom. Most wallpapers are designed from the center, so this behavior is not desired usually. With this commit the wallpaper is centered when no offset is set. To get the old behavior use {x=0, y=0} for the offset parameter.
FS#1278 - Menubar should check all standard directories
Added local desktop directory to list of directories parsed by menubar
by using the XDG specification