From 2f0d0e37dadae9d06d910dcfee0fff3f62f1d132 Mon Sep 17 00:00:00 2001 From: SammysHP Date: Wed, 1 Mar 2017 21:46:26 +0100 Subject: [PATCH] Add beautiful property to control busy cursor during spawn --- lib/awful/startup_notification.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/awful/startup_notification.lua b/lib/awful/startup_notification.lua index 5f1c123a..9bc95236 100644 --- a/lib/awful/startup_notification.lua +++ b/lib/awful/startup_notification.lua @@ -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")