Add beautiful property to control busy cursor during spawn

This commit is contained in:
SammysHP 2017-03-01 21:46:26 +01:00
parent 2f34e69cab
commit 2f0d0e37da
1 changed files with 6 additions and 1 deletions

View File

@ -14,13 +14,18 @@ local capi =
awesome = awesome,
root = root
}
local beautiful = require("beautiful")
local app_starting = {}
local cursor_waiting = "watch"
--- Show busy mouse cursor during spawn.
-- @beautiful beautiful.enable_spawn_cursor
-- @tparam[opt=true] boolean enable_spawn_cursor
local function update_cursor()
if #app_starting > 0 then
if #app_starting > 0 and beautiful.enable_spawn_cursor ~= false then
capi.root.cursor(cursor_waiting)
else
capi.root.cursor("left_ptr")