shims: Add basic shims for the key and mouse grabbers

This commit is contained in:
Emmanuel Lepage Vallee 2016-12-30 01:00:20 -05:00
parent 5e1d2ce0ad
commit e8f82c332a
4 changed files with 35 additions and 8 deletions

View File

@ -7,14 +7,17 @@ return function(_, _)
-- Set the global shims
-- luacheck: globals awesome root tag screen client mouse drawin button
awesome = require( "awesome" )
root = require( "root" )
tag = require( "tag" )
screen = require( "screen" )
client = require( "client" )
mouse = require( "mouse" )
drawin = require( "drawin" )
button = require( "button" )
-- luacheck: globals mousegrabber keygrabber
awesome = require( "awesome" )
root = require( "root" )
tag = require( "tag" )
screen = require( "screen" )
client = require( "client" )
mouse = require( "mouse" )
drawin = require( "drawin" )
button = require( "button" )
keygrabber = require( "keygrabber" )
mousegrabber = require( "mousegrabber" )
-- Force luacheck to be silent about setting those as unused globals
assert(awesome and root and tag and screen and client and mouse)

View File

@ -51,6 +51,10 @@ function module.get_font()
return f
end
function module.get()
return module
end
return module
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -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

View File

@ -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