Merge pull request #1017 from juw/master

Change move and resize cursors
This commit is contained in:
Emmanuel Lepage Vallée 2016-07-27 21:33:35 -04:00 committed by GitHub
commit 739ab8adc2
1 changed files with 5 additions and 5 deletions

View File

@ -21,17 +21,17 @@ local req = "request::geometry"
local callbacks = {enter={}, move={}, leave={}}
local cursors = {
["mouse.resize"] = "fleur",
["mouse.move" ] = "cross"
["mouse.resize"] = "cross",
["mouse.move" ] = "fleur"
}
--- The resize cursor name.
-- @beautiful beautiful.cursor_mouse_resize
-- @tparam[opt=fleur] string cursor
-- @tparam[opt=cross] string cursor
--- The move cursor name.
-- @beautiful beautiful.cursor_mouse_move
-- @tparam[opt=cross] string cursor
-- @tparam[opt=fleur] string cursor
--- Set the resize mode.
-- The available modes are:
@ -139,7 +139,7 @@ local function handler(_, client, context, args) --luacheck: no unused_args
-- Select the cursor
local tcontext = context:gsub('[.]', '_')
local cursor = beautiful["cursor_"..tcontext] or cursors[context] or "cross"
local cursor = beautiful["cursor_"..tcontext] or cursors[context] or "fleur"
-- Execute the placement function and use request::geometry
capi.mousegrabber.run(function (_mouse)