Skip to content

Commit ea1f3d1

Browse files
committed
wayland: input method protocol
1 parent c8423a4 commit ea1f3d1

17 files changed

+2961
-0
lines changed

CMakeCache.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This is the CMakeCache file.
2+
# For build in directory: /home/cameron/Documents/code/quickshell
3+
# It was generated by CMake: /usr/bin/cmake
4+
# You can edit this file to change values found and used by cmake.
5+
# If you do not want to change any of the values, simply exit the editor.
6+
# If you do want to change a value, simply edit, save, and exit the editor.
7+
# The syntax for the file is as follows:
8+
# KEY:TYPE=VALUE
9+
# KEY is the name of a variable in the cache.
10+
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
11+
# VALUE is the current value for the KEY.
12+
13+
########################
14+
# EXTERNAL cache entries
15+
########################
16+
17+
18+
########################
19+
# INTERNAL cache entries
20+
########################
21+
22+
//This is the directory where this CMakeCache.txt was created
23+
CMAKE_CACHEFILE_DIR:INTERNAL=/home/cameron/Documents/code/quickshell
24+
//Major version of cmake used to create the current loaded cache
25+
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=4
26+
//Minor version of cmake used to create the current loaded cache
27+
CMAKE_CACHE_MINOR_VERSION:INTERNAL=0
28+
//Patch version of cmake used to create the current loaded cache
29+
CMAKE_CACHE_PATCH_VERSION:INTERNAL=3
30+
//Path to CMake executable.
31+
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
32+
//Path to cpack program executable.
33+
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
34+
//Path to ctest program executable.
35+
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
36+
//Path to CMake installation.
37+
CMAKE_ROOT:INTERNAL=/usr/share/cmake
38+

CMakeFiles/cmake.check_cache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file is generated by cmake for dependency checking of the CMakeCache.txt file

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ boption(SCREENCOPY " Screencopy" ON REQUIRES WAYLAND)
6060
boption(SCREENCOPY_ICC " Image Copy Capture" ON REQUIRES WAYLAND)
6161
boption(SCREENCOPY_WLR " Wlroots Screencopy" ON REQUIRES WAYLAND)
6262
boption(SCREENCOPY_HYPRLAND_TOPLEVEL " Hyprland Toplevel Export" ON REQUIRES WAYLAND)
63+
boption(INPUT_METHOD " Input Method" ON REQUIRES WAYLAND)
6364
boption(X11 "X11" ON)
6465
boption(I3 "I3/Sway" ON)
6566
boption(I3_IPC " I3/Sway IPC" ON REQUIRES I3)

src/wayland/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ if (HYPRLAND)
114114
add_subdirectory(hyprland)
115115
endif()
116116

117+
if (INPUT_METHOD)
118+
add_subdirectory(input_method)
119+
list(APPEND WAYLAND_MODULES Quickshell.Wayland._InputMethod)
120+
endif()
121+
117122
# widgets for qmenu
118123
target_link_libraries(quickshell-wayland PRIVATE
119124
Qt::Quick Qt::Widgets Qt::WaylandClient Qt::WaylandClientPrivate
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
qt_add_library(quickshell-wayland-input-method STATIC
2+
input_method.cpp
3+
virtual_keyboard.cpp
4+
manager.cpp
5+
qml.cpp
6+
)
7+
8+
qt_add_qml_module(quickshell-wayland-input-method
9+
URI Quickshell.Wayland._InputMethod
10+
VERSION 0.1
11+
DEPENDENCIES QtQml
12+
)
13+
14+
qs_add_module_deps_light(quickshell-wayland-input-method
15+
Quickshell Quickshell.Wayland
16+
)
17+
18+
install_qml_module(quickshell-wayland-input-method)
19+
20+
wl_proto(zwp-input-method input-method-unstable-v2 "${CMAKE_CURRENT_SOURCE_DIR}")
21+
wl_proto(zwp-virtual-keyboard virtual-keyboard-unstable-v1 "${CMAKE_CURRENT_SOURCE_DIR}")
22+
23+
target_link_libraries(quickshell-wayland-input-method PRIVATE
24+
Qt::Quick Qt::WaylandClient Qt::WaylandClientPrivate wayland-client
25+
zwp-input-method zwp-virtual-keyboard
26+
)
27+
28+
qs_module_pch(quickshell-wayland-input-method SET large)
29+
30+
target_link_libraries(quickshell PRIVATE quickshell-wayland-input-methodplugin)

0 commit comments

Comments
 (0)