#include <linux/input.h>
#include <unistd.h>
#include <boost/filesystem.hpp>
int main(
int argc,
char const* argv[])
{
std::function<void()> shutdown_hook{[]{}};
{
};
std::string terminal_cmd{"weston-terminal"};
auto const quit_on_ctrl_alt_bksp = [&](
MirEvent const* event)
{
return false;
return false;
return false;
return false;
{
case KEY_BACKSPACE:
return true;
case KEY_T:
external_client_launcher.
launch({terminal_cmd});
return false;
case KEY_X:
return false;
default:
return false;
};
};
{
window_managers,
external_client_launcher,
launcher,
config_keymap,
debug_extensions,
"shell-terminal-emulator", "terminal emulator to use", terminal_cmd}
});
}
Definition append_event_filter.h:32
Add a user configuration option to Mir's option handling. By default the callback will be invoked fol...
Definition command_line_option.h:41
Load an X-cursor theme, either the supplied default, or through the –cursor-theme config option.
Definition cursor_theme.h:30
Allow debug extension APIs to be enabled and disabled.
Definition debug_extension.h:30
Definition external_client.h:33
void launch_using_x11(std::vector< std::string > const &command_line) const
Launch using only X11 support (if enabled). For the occasions it is desired to coerce applications in...
void launch(std::vector< std::string > const &command_line) const
Definition internal_client.h:71
Load a keymap.
Definition keymap.h:31
Runner for applying initialization options to Mir.
Definition runner.h:40
void add_stop_callback(std::function< void()> const &stop_callback)
Add a callback to be invoked when the server is about to stop, If multiple callbacks are added they w...
auto run_with(std::initializer_list< std::function< void(::mir::Server &)> > options) -> int
Apply the supplied initialization options and run the Mir server.
void stop()
Tell the Mir server to exit.
Wrapper for running an internal Mir client at startup.
Definition internal_client.h:42
Enable configuration of the Wayland extensions enabled at runtime.
Definition wayland_extensions.h:49
Definition window_management_options.h:54
Add a user configuration option for X11 support.
Definition x11_support.h:31
Mir Abstraction Layer.
Definition floating_window_manager.h:29
void display_configuration_options(mir::Server &server)
auto add_window_manager_policy(std::string const &name, Args &... args) -> WindowManagerOption
Definition window_management_options.h:47
auto pre_init(CommandLineOption const &clo) -> CommandLineOption
Update the option to be called back before Mir initialization starts.
void font_file(std::string const &font_file)
Definition wallpaper_config.cpp:49
int main()
Definition spinner.cpp:28
If you look for the corresponding code in lp:qtmir and lp:mir you’ll find it less clear, more verbose and scattered over multiple files.
The way these events are handled determines the behaviour of the shell.