From 47d69e7824a6a246b915e199327b975647c45836 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 26 Jan 2017 11:15:28 +0100 Subject: [PATCH] Update docs for shape_input I grepped for shape_clip and edited places that needed editing. Signed-off-by: Uli Schlachter --- docs/common/wibox.ldoc | 9 +++++++++ lib/awful/wibar.lua | 1 + lib/wibox/init.lua | 3 +++ 3 files changed, 13 insertions(+) diff --git a/docs/common/wibox.ldoc b/docs/common/wibox.ldoc index bd74c54c0..15b2d3e0d 100644 --- a/docs/common/wibox.ldoc +++ b/docs/common/wibox.ldoc @@ -161,6 +161,15 @@ -- @property shape_clip -- @param surface._native +--- The wibox's input shape as a (native) cairo surface. +-- +-- **Signal:** +-- +-- * *property::shape_input* +-- +-- @property shape_input +-- @param surface._native + --- Get or set mouse buttons bindings to a wibox. -- -- @param buttons_table A table of buttons objects, or nothing. diff --git a/lib/awful/wibar.lua b/lib/awful/wibar.lua index 3ed9f0fac..898db04c5 100644 --- a/lib/awful/wibar.lua +++ b/lib/awful/wibar.lua @@ -288,6 +288,7 @@ end -- @tparam wibox.widget arg.widget The widget that the wibox displays. -- @param arg.shape_bounding The wibox’s bounding shape as a (native) cairo surface. -- @param arg.shape_clip The wibox’s clip shape as a (native) cairo surface. +-- @param arg.shape_input The wibox’s input shape as a (native) cairo surface. -- @tparam color arg.bg The background of the wibox. -- @tparam surface arg.bgimage The background image of the drawable. -- @tparam color arg.fg The foreground (text) of the wibox. diff --git a/lib/wibox/init.lua b/lib/wibox/init.lua index e9c22b634..4c5bb580b 100644 --- a/lib/wibox/init.lua +++ b/lib/wibox/init.lua @@ -31,6 +31,7 @@ wibox.hierarchy = require("wibox.hierarchy") local force_forward = { shape_bounding = true, shape_clip = true, + shape_input = true, } --@DOC_wibox_COMMON@ @@ -120,6 +121,7 @@ local function setup_signals(_wibox) clone_signal("property::geometry") clone_signal("property::shape_bounding") clone_signal("property::shape_clip") + clone_signal("property::shape_input") obj = _wibox._drawable clone_signal("button::press") @@ -147,6 +149,7 @@ end -- @tparam wibox.widget args.widget The widget that the wibox displays. -- @param args.shape_bounding The wibox’s bounding shape as a (native) cairo surface. -- @param args.shape_clip The wibox’s clip shape as a (native) cairo surface. +-- @param args.shape_input The wibox’s input shape as a (native) cairo surface. -- @tparam color args.bg The background of the wibox. -- @tparam surface args.bgimage The background image of the drawable. -- @tparam color args.fg The foreground (text) of the wibox.