~gandelman-a/ubuntu/trusty/awesome/fix_desktop_file

« back to all changes in this revision

Viewing changes to mousegrabber.c

  • Committer: Package Import Robot
  • Author(s): Julien Danjou
  • Date: 2012-06-11 15:05:38 UTC
  • mfrom: (1.3.20)
  • Revision ID: package-import@ubuntu.com-20120611150538-ww79u6wh2dacyr7o
Tags: 3.4.12-1
* New upstream release.
  + Fix GLib compilation (Closes: #665508)
  + Fix prompt history order (Closes: #661669)
  + Xli is no more marked as broken (Closes: #651505)
* Bump standard version
* Tweak debian/rules to specify cmake build system, update to dh 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
    return 0;
135
135
}
136
136
 
 
137
/** Check if mousegrabber is running.
 
138
 * \param L The Lua VM state.
 
139
 * \return The number of elements pushed on stack.
 
140
 * \luastack
 
141
 * \lreturn A boolean value, true if mousegrabber is running, false otherwise.
 
142
 */
 
143
static int
 
144
luaA_mousegrabber_isrunning(lua_State *L)
 
145
{
 
146
    lua_pushboolean(L, globalconf.mousegrabber != LUA_REFNIL);
 
147
    return 1;
 
148
}
 
149
 
137
150
const struct luaL_reg awesome_mousegrabber_lib[] =
138
151
{
139
152
    { "run", luaA_mousegrabber_run },
140
153
    { "stop", luaA_mousegrabber_stop },
 
154
    { "isrunning", luaA_mousegrabber_isrunning },
141
155
    { NULL, NULL }
142
156
};
143
157
 
144
 
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
 
158
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80