shims: Add basic shims for the key and mouse grabbers
This commit is contained in:
parent
5e1d2ce0ad
commit
e8f82c332a
|
@ -7,6 +7,7 @@ return function(_, _)
|
||||||
|
|
||||||
-- Set the global shims
|
-- Set the global shims
|
||||||
-- luacheck: globals awesome root tag screen client mouse drawin button
|
-- luacheck: globals awesome root tag screen client mouse drawin button
|
||||||
|
-- luacheck: globals mousegrabber keygrabber
|
||||||
awesome = require( "awesome" )
|
awesome = require( "awesome" )
|
||||||
root = require( "root" )
|
root = require( "root" )
|
||||||
tag = require( "tag" )
|
tag = require( "tag" )
|
||||||
|
@ -15,6 +16,8 @@ return function(_, _)
|
||||||
mouse = require( "mouse" )
|
mouse = require( "mouse" )
|
||||||
drawin = require( "drawin" )
|
drawin = require( "drawin" )
|
||||||
button = require( "button" )
|
button = require( "button" )
|
||||||
|
keygrabber = require( "keygrabber" )
|
||||||
|
mousegrabber = require( "mousegrabber" )
|
||||||
|
|
||||||
-- Force luacheck to be silent about setting those as unused globals
|
-- Force luacheck to be silent about setting those as unused globals
|
||||||
assert(awesome and root and tag and screen and client and mouse)
|
assert(awesome and root and tag and screen and client and mouse)
|
||||||
|
|
|
@ -51,6 +51,10 @@ function module.get_font()
|
||||||
return f
|
return f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function module.get()
|
||||||
|
return module
|
||||||
|
end
|
||||||
|
|
||||||
return module
|
return module
|
||||||
|
|
||||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
local keygrabber = {
|
||||||
|
run = function() end,
|
||||||
|
stop = function() end,
|
||||||
|
is_running = function() return false end,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return keygrabber
|
||||||
|
|
||||||
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
|
@ -0,0 +1,9 @@
|
||||||
|
local mousegrabber = {
|
||||||
|
run = function() end,
|
||||||
|
stop = function() end,
|
||||||
|
is_running = function() return false end,
|
||||||
|
}
|
||||||
|
|
||||||
|
return mousegrabber
|
||||||
|
|
||||||
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
Loading…
Reference in New Issue