Merge pull request #1613 from SammysHP/spawn-cursor
Add beautiful property to control busy cursor during spawn
This commit is contained in:
commit
b73f9e963c
|
@ -14,13 +14,18 @@ local capi =
|
||||||
awesome = awesome,
|
awesome = awesome,
|
||||||
root = root
|
root = root
|
||||||
}
|
}
|
||||||
|
local beautiful = require("beautiful")
|
||||||
|
|
||||||
local app_starting = {}
|
local app_starting = {}
|
||||||
|
|
||||||
local cursor_waiting = "watch"
|
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()
|
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)
|
capi.root.cursor(cursor_waiting)
|
||||||
else
|
else
|
||||||
capi.root.cursor("left_ptr")
|
capi.root.cursor("left_ptr")
|
||||||
|
|
Loading…
Reference in New Issue