shims: Add basic shims for the key and mouse grabbers
This commit is contained in:
parent
5e1d2ce0ad
commit
e8f82c332a
|
@ -7,14 +7,17 @@ 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
|
||||||
awesome = require( "awesome" )
|
-- luacheck: globals mousegrabber keygrabber
|
||||||
root = require( "root" )
|
awesome = require( "awesome" )
|
||||||
tag = require( "tag" )
|
root = require( "root" )
|
||||||
screen = require( "screen" )
|
tag = require( "tag" )
|
||||||
client = require( "client" )
|
screen = require( "screen" )
|
||||||
mouse = require( "mouse" )
|
client = require( "client" )
|
||||||
drawin = require( "drawin" )
|
mouse = require( "mouse" )
|
||||||
button = require( "button" )
|
drawin = require( "drawin" )
|
||||||
|
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