Prepare a selection acquiring interface
No run-time behaviour is changed so far. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
ec47abb4bc
commit
94d413345a
|
@ -88,6 +88,7 @@ set(AWE_SRCS
|
||||||
${BUILD_DIR}/objects/drawin.c
|
${BUILD_DIR}/objects/drawin.c
|
||||||
${BUILD_DIR}/objects/key.c
|
${BUILD_DIR}/objects/key.c
|
||||||
${BUILD_DIR}/objects/screen.c
|
${BUILD_DIR}/objects/screen.c
|
||||||
|
${BUILD_DIR}/objects/selection_acquire.c
|
||||||
${BUILD_DIR}/objects/selection_watcher.c
|
${BUILD_DIR}/objects/selection_watcher.c
|
||||||
${BUILD_DIR}/objects/tag.c
|
${BUILD_DIR}/objects/tag.c
|
||||||
${BUILD_DIR}/objects/selection_getter.c
|
${BUILD_DIR}/objects/selection_getter.c
|
||||||
|
|
4
luaa.c
4
luaa.c
|
@ -50,6 +50,7 @@
|
||||||
#include "objects/drawin.h"
|
#include "objects/drawin.h"
|
||||||
#include "objects/selection_getter.h"
|
#include "objects/selection_getter.h"
|
||||||
#include "objects/screen.h"
|
#include "objects/screen.h"
|
||||||
|
#include "objects/selection_acquire.h"
|
||||||
#include "objects/selection_watcher.h"
|
#include "objects/selection_watcher.h"
|
||||||
#include "objects/tag.h"
|
#include "objects/tag.h"
|
||||||
#include "property.h"
|
#include "property.h"
|
||||||
|
@ -1040,6 +1041,9 @@ luaA_init(xdgHandle* xdg, string_array_t *searchpath)
|
||||||
/* Export keys */
|
/* Export keys */
|
||||||
key_class_setup(L);
|
key_class_setup(L);
|
||||||
|
|
||||||
|
/* Export selection acquire */
|
||||||
|
selection_acquire_class_setup(L);
|
||||||
|
|
||||||
/* Export selection watcher */
|
/* Export selection watcher */
|
||||||
selection_watcher_class_setup(L);
|
selection_watcher_class_setup(L);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
/*
|
||||||
|
* selection_acquire.c - objects for selection ownership
|
||||||
|
*
|
||||||
|
* Copyright © 2019 Uli Schlachter <psychon@znc.in>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "objects/selection_acquire.h"
|
||||||
|
|
||||||
|
void
|
||||||
|
selection_acquire_class_setup(lua_State *L)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
|
@ -0,0 +1,31 @@
|
||||||
|
/*
|
||||||
|
* selection_acquire.c - objects for selection ownership header
|
||||||
|
*
|
||||||
|
* Copyright © 2019 Uli Schlachter <psychon@znc.in>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef AWESOME_OBJECTS_SELECTION_ACQUIRE_H
|
||||||
|
#define AWESOME_OBJECTS_SELECTION_ACQUIRE_H
|
||||||
|
|
||||||
|
#include <lua.h>
|
||||||
|
|
||||||
|
void selection_acquire_class_setup(lua_State*);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
Loading…
Reference in New Issue