]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Move input related source files into src/input/
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 3 Sep 2023 15:39:48 +0000 (17:39 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 30 Oct 2023 21:14:04 +0000 (21:14 +0000)
include/input/cursor.h [moved from include/cursor.h with 100% similarity]
include/input/key-state.h [moved from include/key-state.h with 100% similarity]
include/labwc.h
src/dnd.c
src/input/cursor.c [moved from src/cursor.c with 100% similarity]
src/input/key-state.c [moved from src/key-state.c with 98% similarity]
src/input/keyboard.c [moved from src/keyboard.c with 99% similarity]
src/input/meson.build [new file with mode: 0644]
src/input/touch.c [moved from src/touch.c with 100% similarity]
src/meson.build
src/seat.c

similarity index 100%
rename from include/cursor.h
rename to include/input/cursor.h
index a870345ed14c391072077e7d01194d14bd870b95..9810ac1a272abdcdf5e2324ce217bae22d641b41 100644 (file)
@@ -41,9 +41,9 @@
 #include <wlr/types/wlr_virtual_keyboard_v1.h>
 #include <wlr/util/log.h>
 #include <xkbcommon/xkbcommon.h>
-#include "cursor.h"
 #include "config/keybind.h"
 #include "config/rcxml.h"
+#include "input/cursor.h"
 #include "regions.h"
 #include "session-lock.h"
 #if HAVE_NLS
index deec970db12d3d5caad0edaad8953910411d25ea..7d62ca70a888f385e3b203c7f6fc2834ade3129b 100644 (file)
--- a/src/dnd.c
+++ b/src/dnd.c
@@ -4,8 +4,8 @@
 #include <wlr/types/wlr_scene.h>
 #include <wlr/util/log.h>
 #include "common/mem.h"
-#include "cursor.h"
 #include "dnd.h"
+#include "input/cursor.h"
 #include "labwc.h"  /* for struct seat */
 #include "view.h"
 
similarity index 100%
rename from src/cursor.c
rename to src/input/cursor.c
similarity index 98%
rename from src/key-state.c
rename to src/input/key-state.c
index 945ea6c672abb422bab6a0b0994d0ed7c4ae723b..fad8e3b1c5900e2d712c8a1656c948dfc83fd508 100644 (file)
@@ -2,7 +2,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <string.h>
-#include "key-state.h"
+#include "input/key-state.h"
 
 #define MAX_PRESSED_KEYS (16)
 
similarity index 99%
rename from src/keyboard.c
rename to src/input/keyboard.c
index 2d6cae7c16c42b19414ad2baf3070baf32533383..ab4f5ac55d4985d6700b339b093e1d7a54a36b5b 100644 (file)
@@ -5,7 +5,7 @@
 #include <wlr/interfaces/wlr_keyboard.h>
 #include "action.h"
 #include "idle.h"
-#include "key-state.h"
+#include "input/key-state.h"
 #include "labwc.h"
 #include "menu/menu.h"
 #include "regions.h"
diff --git a/src/input/meson.build b/src/input/meson.build
new file mode 100644 (file)
index 0000000..e83de9d
--- /dev/null
@@ -0,0 +1,6 @@
+labwc_sources += files(
+  'keyboard.c',
+  'key-state.c',
+  'touch.c',
+  'cursor.c',
+)
similarity index 100%
rename from src/touch.c
rename to src/input/touch.c
index e88014f3746eb8f181f23d3657b0d963a797bd7e..9a04034a641956fc8c51302aa3c5dceb9e81f271 100644 (file)
@@ -1,15 +1,12 @@
 labwc_sources = files(
   'action.c',
   'buffer.c',
-  'cursor.c',
   'debug.c',
   'desktop.c',
   'dnd.c',
   'foreign.c',
   'idle.c',
   'interactive.c',
-  'keyboard.c',
-  'key-state.c',
   'layers.c',
   'main.c',
   'node.c',
@@ -21,7 +18,6 @@ labwc_sources = files(
   'server.c',
   'session-lock.c',
   'snap.c',
-  'touch.c',
   'theme.c',
   'view.c',
   'view-impl-common.c',
@@ -39,9 +35,10 @@ if have_xwayland
 endif
 
 
+subdir('button')
 subdir('common')
 subdir('config')
 subdir('decorations')
-subdir('button')
+subdir('input')
 subdir('menu')
 subdir('ssd')
index 4387b8171c4346e6b933a8ca2d8a1d6c58d54a3f..807c5a5b7d6c539d9f17ecb4080e101640e5d438 100644 (file)
@@ -9,7 +9,7 @@
 #include <wlr/types/wlr_touch.h>
 #include <wlr/util/log.h>
 #include "common/mem.h"
-#include "key-state.h"
+#include "input/key-state.h"
 #include "labwc.h"
 #include "view.h"