Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ auto run(int const argc, char const* const* argv) -> int {
klib::args::named_option(engineCI.assetsDir, "a,assets", "override assets directory"),
klib::args::named_option(engineCI.prefsPath, "p,prefs", "path to custom prefs JSON"),
klib::args::named_flag(engineCI.noLibdecor, "no-libdecor", "disable libdecor (ignored unless Wayland)"),
klib::args::named_flag(engineCI.forceX11, "force-x11", "force X11"),
};
auto const parseResult = klib::args::parse_main(parseInfo, args, argc, argv);
if (parseResult.early_return()) {
Expand Down
1 change: 1 addition & 0 deletions lib/include/chomper/engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Engine : public IDebugInspector, public klib::Pinned {
std::string_view assetsDir{};
std::string_view prefsPath{};
bool noLibdecor{};
bool forceX11{};
};

using CreateRuntime = std::move_only_function<std::unique_ptr<IRuntime>(Engine&)>;
Expand Down
3 changes: 3 additions & 0 deletions lib/src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ void Engine::createContext(CreateInfo const& createInfo) {
if (createInfo.noLibdecor) {
ret |= le::PlatformFlag::NoLibdecor;
}
if (createInfo.forceX11) {
ret |= le::PlatformFlag::ForceX11;
}
return ret;
}();
auto const windowTitle = std::format("chomper {}", buildVersionStr);
Expand Down