ewmh: fix toggle on maximized_horizontal

Signed-off-by: Julien Danjou <julien@danjou.info>
awful.menu: fix gap (FS#665)

Signed-off-by: Julien Danjou <julien@danjou.info>
awful.rules: apply accumulated rule properties (FS#669)

To avoid the screen flickering, when two rules have different tags
with true switchtotag.

Signed-off-by: Julien Danjou <julien@danjou.info>
awful.tag: allow table as layout argument (FS#670)

Signed-off-by: Julien Danjou <julien@danjou.info>
awful.tag: fix new when layout is nil

Signed-off-by: Julien Danjou <julien@danjou.info>
progressbar/graph: fix rounding and graph drawing

Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
progressbar: remove minimum size limit

Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
mouse: coords() get silent parameter

Signed-off-by: Julien Danjou <julien@danjou.info>
awful.layout: emit arrange signal

Signed-off-by: Julien Danjou <julien@danjou.info>
naughty: convert <br> tag to \n

Signed-off-by: Julien Danjou <julien@danjou.info>
wibox: Set a proper back pixel

Currently wiboxes have their background set to "inherit parent pixmap". That
means that each time a wibox is e.g. resized, the X server sets the wibox'
content to the wallpaper and then immediately awesome redraws the wibox with the
proper background. This causes flicker when you e.g. resize clients which have a
titlebar.

With this patch, wiboxes get their proper background color for their "back
pixel" value. Now, instead of showing the wallpaper, the X server will fill the
complete wibox with its background color.

With this patch, the actual widgets will still flicker. Also, if the wibox has a
background image, this image obviously won't be used by the X server and we get
some flicker again. My next patch will address these issues.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
Set a wibox' bit gravity to NorthWest.

After the last patch, after each resize the X server fills the complete wibox
with its background color which means that the widgets will still flicker. This
patch fixes this by setting the wibox' bit gravity to NorthWest.

This means that if a wibox is enlarged, only the new, larger part will be filled
with the wibox' background color and the rest of the wibox' content will be left
intact. With this patch I couldn't see any flickering anymore.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
wibox: make sure no garbage is painted to the screen

Wiboxes are lazily updated. This means that we could receive an expose event on
them between making them visible and actually painting their content.

Due to this we were copying undefined content to the wibox, because the pixmap
was only created just now, but it wasn't actually filled with anything yet.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
wibox: check if a wibox' window exists before modifying it

If you change the .bg of an existing wibox which isn't attached to any screen
yet, then there is no window for which we can update the XCB_CW_BACK_PIXEL.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
awful.rules: add "callback" option when a rule matches

Signed-off-by: Julien Danjou <julien@danjou.info>
change codename

Signed-off-by: Julien Danjou <julien@danjou.info>
util: mark strhash with nonnull

Signed-off-by: Julien Danjou <julien@danjou.info>
dbus: field can be nil

Signed-off-by: Julien Danjou <julien@danjou.info>
dbus: check that interface is not NULL (FS#667)

Signed-off-by: Julien Danjou <julien@danjou.info>
widget: fix screen number of layouts as arg

Signed-off-by: Julien Danjou <julien@danjou.info>