aboutsummaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-30 00:16:13 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-30 00:16:13 +0800
commit35ba6a2f719327e2ee3f31d5baa04f0ec5a0a09e (patch)
tree92db6b8b40d409a4faf06c3600111eec200f4775 /demos
parent5862307366f4b7db492f1630bdf21ce240d8dd6c (diff)
downloadcru-35ba6a2f719327e2ee3f31d5baa04f0ec5a0a09e.tar.gz
cru-35ba6a2f719327e2ee3f31d5baa04f0ec5a0a09e.tar.bz2
cru-35ba6a2f719327e2ee3f31d5baa04f0ec5a0a09e.zip
Impl input method for xim.
Diffstat (limited to 'demos')
-rw-r--r--demos/CMakeLists.txt15
-rw-r--r--demos/InputMethod/main.cpp1
2 files changed, 5 insertions, 11 deletions
diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt
index 46eda9c4..42335013 100644
--- a/demos/CMakeLists.txt
+++ b/demos/CMakeLists.txt
@@ -3,18 +3,11 @@ add_library(CruDemoBase INTERFACE)
target_link_libraries(CruDemoBase INTERFACE CruPlatformBootstrap)
add_subdirectory(platform)
+add_subdirectory(main)
+add_subdirectory(ScrollView)
+add_subdirectory(InputMethod)
-if(WIN32)
- add_subdirectory(main)
- add_subdirectory(ScrollView)
- add_subdirectory(InputMethod)
-elseif(APPLE)
- add_subdirectory(main)
- add_subdirectory(ScrollView)
- add_subdirectory(InputMethod)
-elseif(UNIX)
- add_subdirectory(main)
- add_subdirectory(ScrollView)
+if(UNIX)
add_subdirectory(xcb)
endif()
diff --git a/demos/InputMethod/main.cpp b/demos/InputMethod/main.cpp
index cf42d3c2..430075f4 100644
--- a/demos/InputMethod/main.cpp
+++ b/demos/InputMethod/main.cpp
@@ -23,6 +23,7 @@ struct InputMethodState {
int main() {
IUiApplication* application = bootstrap::CreateUiApplication();
+ application->SetQuitOnAllWindowClosed(true);
auto graphics_factory = application->GetGraphicsFactory();