2022-03-16 20:50:55 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-03-17 15:53:45 +01:00
|
|
|
// because C/C++ VS Code intellisense is stupid with includes, we will suppress them here.
|
|
|
|
// This suppresses all "include file not found" errors.
|
|
|
|
#ifdef __INTELLISENSE__
|
|
|
|
#pragma diag_suppress 1696
|
|
|
|
#endif
|
|
|
|
|
2022-03-16 20:50:55 +01:00
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
#include <libinput.h>
|
|
|
|
#include <linux/input-event-codes.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <wayland-server-core.h>
|
2022-03-17 15:53:45 +01:00
|
|
|
#include <mutex>
|
|
|
|
#include <thread>
|
2022-03-16 20:50:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
#if true
|
|
|
|
// wlroots uses dumb-ass shit that makes it not compile on C++, let's fix that.
|
|
|
|
// https://github.com/swaywm/wlroots/issues/682
|
|
|
|
// pthread first because it uses class in a C++ way and XWayland includes that...
|
|
|
|
#include <pthread.h>
|
|
|
|
|
2022-03-20 10:37:31 +01:00
|
|
|
#define class _class
|
|
|
|
#define namespace _namespace
|
2022-03-16 20:50:55 +01:00
|
|
|
#define static
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#include <wlr/backend.h>
|
|
|
|
#include <wlr/backend/libinput.h>
|
|
|
|
#include <wlr/render/allocator.h>
|
|
|
|
#include <wlr/render/wlr_renderer.h>
|
|
|
|
#include <wlr/types/wlr_compositor.h>
|
|
|
|
#include <wlr/types/wlr_cursor.h>
|
|
|
|
#include <wlr/types/wlr_data_control_v1.h>
|
|
|
|
#include <wlr/types/wlr_data_device.h>
|
|
|
|
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
|
|
|
#include <wlr/types/wlr_gamma_control_v1.h>
|
|
|
|
#include <wlr/types/wlr_idle.h>
|
|
|
|
#include <wlr/types/wlr_input_device.h>
|
|
|
|
#include <wlr/types/wlr_keyboard.h>
|
|
|
|
#include <wlr/types/wlr_layer_shell_v1.h>
|
|
|
|
#include <wlr/types/wlr_matrix.h>
|
|
|
|
#include <wlr/types/wlr_output.h>
|
|
|
|
#include <wlr/types/wlr_output_layout.h>
|
|
|
|
#include <wlr/types/wlr_output_management_v1.h>
|
|
|
|
#include <wlr/types/wlr_pointer.h>
|
|
|
|
#include <wlr/types/wlr_presentation_time.h>
|
|
|
|
#include <wlr/types/wlr_primary_selection.h>
|
|
|
|
#include <wlr/types/wlr_primary_selection_v1.h>
|
|
|
|
#include <wlr/types/wlr_screencopy_v1.h>
|
|
|
|
#include <wlr/types/wlr_seat.h>
|
|
|
|
#include <wlr/types/wlr_server_decoration.h>
|
|
|
|
#include <wlr/types/wlr_viewporter.h>
|
|
|
|
#include <wlr/types/wlr_virtual_keyboard_v1.h>
|
|
|
|
#include <wlr/types/wlr_xcursor_manager.h>
|
|
|
|
#include <wlr/types/wlr_xdg_activation_v1.h>
|
|
|
|
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
|
|
|
#include <wlr/types/wlr_xdg_output_v1.h>
|
|
|
|
#include <wlr/types/wlr_xdg_shell.h>
|
2022-03-17 19:03:15 +01:00
|
|
|
#include <wlr/types/wlr_subcompositor.h>
|
|
|
|
#include <wlr/types/wlr_scene.h>
|
2022-03-21 16:13:43 +01:00
|
|
|
#include <wlr/types/wlr_output_damage.h>
|
2022-03-22 18:29:13 +01:00
|
|
|
#include <wlr/types/wlr_input_inhibitor.h>
|
|
|
|
#include <wlr/types/wlr_keyboard_shortcuts_inhibit_v1.h>
|
2022-03-16 20:50:55 +01:00
|
|
|
#include <wlr/util/log.h>
|
|
|
|
#include <wlr/xwayland.h>
|
2022-03-21 16:13:43 +01:00
|
|
|
#include <wlr/util/region.h>
|
2022-03-16 20:50:55 +01:00
|
|
|
#include <xkbcommon/xkbcommon.h>
|
2022-03-20 13:37:07 +01:00
|
|
|
#include <X11/Xproto.h>
|
2022-03-16 20:50:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#undef class
|
|
|
|
#undef namespace
|
|
|
|
#undef static
|
|
|
|
|
2022-03-16 22:21:12 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "helpers/Vector2D.hpp"
|