Reformat all #include directives
This commit is contained in:
parent
36ead80cd1
commit
c2e1474010
|
@ -1,17 +1,17 @@
|
||||||
#include <wayland-server.h>
|
#include <assert.h>
|
||||||
#include <unistd.h>
|
#include <errno.h>
|
||||||
|
#include <libinput.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <unistd.h>
|
||||||
#include <assert.h>
|
#include <wayland-server.h>
|
||||||
#include <libinput.h>
|
|
||||||
#include <wlr/backend/session.h>
|
|
||||||
#include <wlr/backend/interface.h>
|
|
||||||
#include <wlr/backend/drm.h>
|
#include <wlr/backend/drm.h>
|
||||||
|
#include <wlr/backend/interface.h>
|
||||||
#include <wlr/backend/libinput.h>
|
#include <wlr/backend/libinput.h>
|
||||||
|
#include <wlr/backend/multi.h>
|
||||||
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/backend/wayland.h>
|
#include <wlr/backend/wayland.h>
|
||||||
#include <wlr/backend/x11.h>
|
#include <wlr/backend/x11.h>
|
||||||
#include <wlr/backend/multi.h>
|
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
|
|
||||||
void wlr_backend_init(struct wlr_backend *backend,
|
void wlr_backend_init(struct wlr_backend *backend,
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <gbm.h>
|
#include <gbm.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
#include <xf86drmMode.h>
|
#include <xf86drmMode.h>
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include "backend/drm/drm.h"
|
#include "backend/drm/drm.h"
|
||||||
#include "backend/drm/iface.h"
|
#include "backend/drm/iface.h"
|
||||||
#include "backend/drm/util.h"
|
#include "backend/drm/util.h"
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <xf86drm.h>
|
|
||||||
#include <wlr/backend/session.h>
|
|
||||||
#include <wlr/backend/interface.h>
|
#include <wlr/backend/interface.h>
|
||||||
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/interfaces/wlr_output.h>
|
#include <wlr/interfaces/wlr_output.h>
|
||||||
|
#include <wlr/render/egl.h>
|
||||||
#include <wlr/types/wlr_list.h>
|
#include <wlr/types/wlr_list.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
#include <xf86drm.h>
|
||||||
#include <wlr/render/egl.h>
|
|
||||||
#include "backend/drm/drm.h"
|
#include "backend/drm/drm.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
static bool wlr_drm_backend_start(struct wlr_backend *backend) {
|
static bool wlr_drm_backend_start(struct wlr_backend *backend) {
|
||||||
struct wlr_drm_backend *drm = (struct wlr_drm_backend *)backend;
|
struct wlr_drm_backend *drm = (struct wlr_drm_backend *)backend;
|
||||||
|
|
|
@ -1,30 +1,30 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <inttypes.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <xf86drm.h>
|
|
||||||
#include <xf86drmMode.h>
|
|
||||||
#include <drm_mode.h>
|
#include <drm_mode.h>
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <gbm.h>
|
#include <gbm.h>
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
#include <GLES2/gl2ext.h>
|
#include <GLES2/gl2ext.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wayland-util.h>
|
#include <wayland-util.h>
|
||||||
#include <wlr/backend/interface.h>
|
#include <wlr/backend/interface.h>
|
||||||
#include <wlr/interfaces/wlr_output.h>
|
#include <wlr/interfaces/wlr_output.h>
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include "util/signal.h"
|
|
||||||
#include <wlr/render/matrix.h>
|
|
||||||
#include <wlr/render/gles2.h>
|
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
|
#include <wlr/render/gles2.h>
|
||||||
|
#include <wlr/render/matrix.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
|
#include <xf86drm.h>
|
||||||
|
#include <xf86drmMode.h>
|
||||||
#include "backend/drm/drm.h"
|
#include "backend/drm/drm.h"
|
||||||
#include "backend/drm/iface.h"
|
#include "backend/drm/iface.h"
|
||||||
#include "backend/drm/util.h"
|
#include "backend/drm/util.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
bool wlr_drm_check_features(struct wlr_drm_backend *drm) {
|
bool wlr_drm_check_features(struct wlr_drm_backend *drm) {
|
||||||
if (drmSetClientCap(drm->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1)) {
|
if (drmSetClientCap(drm->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1)) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <gbm.h>
|
#include <gbm.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
#include <xf86drmMode.h>
|
#include <xf86drmMode.h>
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include "backend/drm/drm.h"
|
#include "backend/drm/drm.h"
|
||||||
#include "backend/drm/iface.h"
|
#include "backend/drm/iface.h"
|
||||||
#include "backend/drm/util.h"
|
#include "backend/drm/util.h"
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
#include <xf86drmMode.h>
|
#include <xf86drmMode.h>
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include "backend/drm/properties.h"
|
#include "backend/drm/properties.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
|
#include <EGL/egl.h>
|
||||||
|
#include <EGL/eglext.h>
|
||||||
|
#include <gbm.h>
|
||||||
|
#include <GLES2/gl2.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <gbm.h>
|
|
||||||
#include <GLES2/gl2.h>
|
|
||||||
#include <EGL/egl.h>
|
|
||||||
#include <EGL/eglext.h>
|
|
||||||
#include <wayland-util.h>
|
#include <wayland-util.h>
|
||||||
|
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include <wlr/render/egl.h>
|
|
||||||
#include <wlr/render/matrix.h>
|
|
||||||
#include <wlr/render/gles2.h>
|
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
|
#include <wlr/render/egl.h>
|
||||||
|
#include <wlr/render/gles2.h>
|
||||||
|
#include <wlr/render/matrix.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#include "backend/drm/drm.h"
|
#include "backend/drm/drm.h"
|
||||||
#include "glapi.h"
|
#include "glapi.h"
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
#include <drm_mode.h>
|
||||||
|
#include <drm.h>
|
||||||
|
#include <gbm.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <drm.h>
|
|
||||||
#include <drm_mode.h>
|
|
||||||
#include <gbm.h>
|
|
||||||
#include "backend/drm/util.h"
|
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
|
#include "backend/drm/util.h"
|
||||||
|
|
||||||
int32_t calculate_refresh_rate(drmModeModeInfo *mode) {
|
int32_t calculate_refresh_rate(drmModeModeInfo *mode) {
|
||||||
int32_t refresh = (mode->clock * 1000000LL / mode->htotal +
|
int32_t refresh = (mode->clock * 1000000LL / mode->htotal +
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
#include "util/signal.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <wlr/interfaces/wlr_input_device.h>
|
||||||
|
#include <wlr/interfaces/wlr_output.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
#include <wlr/render/gles2.h>
|
#include <wlr/render/gles2.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include <wlr/interfaces/wlr_output.h>
|
|
||||||
#include <wlr/interfaces/wlr_input_device.h>
|
|
||||||
#include "backend/headless.h"
|
#include "backend/headless.h"
|
||||||
#include "glapi.h"
|
#include "glapi.h"
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <wlr/interfaces/wlr_input_device.h>
|
#include <wlr/interfaces/wlr_input_device.h>
|
||||||
#include <wlr/interfaces/wlr_pointer.h>
|
|
||||||
#include <wlr/interfaces/wlr_keyboard.h>
|
#include <wlr/interfaces/wlr_keyboard.h>
|
||||||
#include <wlr/interfaces/wlr_touch.h>
|
#include <wlr/interfaces/wlr_pointer.h>
|
||||||
#include <wlr/interfaces/wlr_tablet_tool.h>
|
|
||||||
#include <wlr/interfaces/wlr_tablet_pad.h>
|
#include <wlr/interfaces/wlr_tablet_pad.h>
|
||||||
|
#include <wlr/interfaces/wlr_tablet_tool.h>
|
||||||
|
#include <wlr/interfaces/wlr_touch.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/headless.h"
|
#include "backend/headless.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
static void input_device_destroy(struct wlr_input_device *wlr_dev) {
|
static void input_device_destroy(struct wlr_input_device *wlr_dev) {
|
||||||
struct wlr_headless_input_device *device =
|
struct wlr_headless_input_device *device =
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/interfaces/wlr_output.h>
|
#include <wlr/interfaces/wlr_output.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/headless.h"
|
#include "backend/headless.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
static EGLSurface egl_create_surface(struct wlr_egl *egl, unsigned int width,
|
static EGLSurface egl_create_surface(struct wlr_egl *egl, unsigned int width,
|
||||||
unsigned int height) {
|
unsigned int height) {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <stdlib.h>
|
||||||
#include <wlr/backend/interface.h>
|
#include <wlr/backend/interface.h>
|
||||||
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/libinput.h"
|
#include "backend/libinput.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
static int wlr_libinput_open_restricted(const char *path,
|
static int wlr_libinput_open_restricted(const char *path,
|
||||||
int flags, void *_backend) {
|
int flags, void *_backend) {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <wayland-util.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/interfaces/wlr_input_device.h>
|
#include <wlr/interfaces/wlr_input_device.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include <wayland-util.h>
|
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/libinput.h"
|
#include "backend/libinput.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
struct wlr_input_device *get_appropriate_device(
|
struct wlr_input_device *get_appropriate_device(
|
||||||
enum wlr_input_device_type desired_type,
|
enum wlr_input_device_type desired_type,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/interfaces/wlr_keyboard.h>
|
#include <wlr/interfaces/wlr_keyboard.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "backend/libinput.h"
|
#include "backend/libinput.h"
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/interfaces/wlr_pointer.h>
|
#include <wlr/interfaces/wlr_pointer.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/libinput.h"
|
#include "backend/libinput.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
struct wlr_pointer *wlr_libinput_pointer_create(
|
struct wlr_pointer *wlr_libinput_pointer_create(
|
||||||
struct libinput_device *libinput_dev) {
|
struct libinput_device *libinput_dev) {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/interfaces/wlr_tablet_pad.h>
|
#include <wlr/interfaces/wlr_tablet_pad.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/libinput.h"
|
#include "backend/libinput.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
struct wlr_tablet_pad *wlr_libinput_tablet_pad_create(
|
struct wlr_tablet_pad *wlr_libinput_tablet_pad_create(
|
||||||
struct libinput_device *libinput_dev) {
|
struct libinput_device *libinput_dev) {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/interfaces/wlr_tablet_tool.h>
|
#include <wlr/interfaces/wlr_tablet_tool.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/libinput.h"
|
#include "backend/libinput.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
struct wlr_tablet_tool *wlr_libinput_tablet_tool_create(
|
struct wlr_tablet_tool *wlr_libinput_tablet_tool_create(
|
||||||
struct libinput_device *libinput_dev) {
|
struct libinput_device *libinput_dev) {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/interfaces/wlr_touch.h>
|
#include <wlr/interfaces/wlr_touch.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/libinput.h"
|
#include "backend/libinput.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
struct wlr_touch *wlr_libinput_touch_create(
|
struct wlr_touch *wlr_libinput_touch_create(
|
||||||
struct libinput_device *libinput_dev) {
|
struct libinput_device *libinput_dev) {
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
backend_files = files(
|
backend_files = files(
|
||||||
'backend.c',
|
'backend.c',
|
||||||
'session/direct-ipc.c',
|
|
||||||
'session/session.c',
|
|
||||||
'drm/atomic.c',
|
'drm/atomic.c',
|
||||||
'drm/backend.c',
|
'drm/backend.c',
|
||||||
'drm/drm.c',
|
'drm/drm.c',
|
||||||
|
@ -10,8 +8,8 @@ backend_files = files(
|
||||||
'drm/renderer.c',
|
'drm/renderer.c',
|
||||||
'drm/util.c',
|
'drm/util.c',
|
||||||
'headless/backend.c',
|
'headless/backend.c',
|
||||||
'headless/output.c',
|
|
||||||
'headless/input_device.c',
|
'headless/input_device.c',
|
||||||
|
'headless/output.c',
|
||||||
'libinput/backend.c',
|
'libinput/backend.c',
|
||||||
'libinput/events.c',
|
'libinput/events.c',
|
||||||
'libinput/keyboard.c',
|
'libinput/keyboard.c',
|
||||||
|
@ -20,6 +18,8 @@ backend_files = files(
|
||||||
'libinput/tablet_tool.c',
|
'libinput/tablet_tool.c',
|
||||||
'libinput/touch.c',
|
'libinput/touch.c',
|
||||||
'multi/backend.c',
|
'multi/backend.c',
|
||||||
|
'session/direct-ipc.c',
|
||||||
|
'session/session.c',
|
||||||
'wayland/backend.c',
|
'wayland/backend.c',
|
||||||
'wayland/output.c',
|
'wayland/output.c',
|
||||||
'wayland/registry.c',
|
'wayland/registry.c',
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
#include <wlr/backend/interface.h>
|
#include <wlr/backend/interface.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/multi.h"
|
|
||||||
#include "backend/drm/drm.h"
|
#include "backend/drm/drm.h"
|
||||||
|
#include "backend/multi.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
struct subbackend_state {
|
struct subbackend_state {
|
||||||
struct wlr_backend *backend;
|
struct wlr_backend *backend;
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
#include <errno.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <dev/evdev/input.h>
|
#include <dev/evdev/input.h>
|
||||||
#include <sys/kbio.h>
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <sys/consio.h>
|
#include <sys/consio.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/kbio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <termios.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/backend/session/interface.h>
|
#include <wlr/backend/session/interface.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/session/direct-ipc.h"
|
#include "backend/session/direct-ipc.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
const struct session_impl session_direct;
|
const struct session_impl session_direct;
|
||||||
|
|
||||||
|
|
|
@ -4,22 +4,22 @@
|
||||||
#define INPUT_MAJOR 0
|
#define INPUT_MAJOR 0
|
||||||
#endif
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <wlr/config.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
|
#include <xf86drm.h>
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
#include <linux/major.h>
|
#include <linux/major.h>
|
||||||
#endif
|
#endif
|
||||||
#include <xf86drm.h>
|
|
||||||
#include <wlr/config.h>
|
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include "backend/session/direct-ipc.h"
|
#include "backend/session/direct-ipc.h"
|
||||||
|
|
||||||
enum { DRM_MAJOR = 226 };
|
enum { DRM_MAJOR = 226 };
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <linux/input.h>
|
||||||
#include <stdio.h>
|
#include <linux/kd.h>
|
||||||
#include <stdbool.h>
|
#include <linux/major.h>
|
||||||
#include <unistd.h>
|
#include <linux/vt.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
#include <linux/kd.h>
|
#include <unistd.h>
|
||||||
#include <linux/major.h>
|
|
||||||
#include <linux/input.h>
|
|
||||||
#include <linux/vt.h>
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/backend/session/interface.h>
|
#include <wlr/backend/session/interface.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/session/direct-ipc.h"
|
#include "backend/session/direct-ipc.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
enum { DRM_MAJOR = 226 };
|
enum { DRM_MAJOR = 226 };
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/sysmacros.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <sys/sysmacros.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/config.h>
|
|
||||||
#include <wlr/backend/session/interface.h>
|
#include <wlr/backend/session/interface.h>
|
||||||
|
#include <wlr/config.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
#include "util/signal.h"
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <libudev.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <libudev.h>
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <xf86drm.h>
|
|
||||||
#include <xf86drmMode.h>
|
|
||||||
#include <wlr/config.h>
|
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/backend/session/interface.h>
|
#include <wlr/backend/session/interface.h>
|
||||||
|
#include <wlr/config.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
|
#include <xf86drm.h>
|
||||||
|
#include <xf86drmMode.h>
|
||||||
#include "util/signal.h"
|
#include "util/signal.h"
|
||||||
|
|
||||||
extern const struct session_impl session_logind;
|
extern const struct session_impl session_logind;
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <limits.h>
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
|
#include <wlr/backend/interface.h>
|
||||||
|
#include <wlr/interfaces/wlr_input_device.h>
|
||||||
|
#include <wlr/interfaces/wlr_output.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
#include <wlr/render/gles2.h>
|
#include <wlr/render/gles2.h>
|
||||||
#include <wlr/backend/interface.h>
|
|
||||||
#include <wlr/interfaces/wlr_output.h>
|
|
||||||
#include <wlr/interfaces/wlr_input_device.h>
|
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/wayland.h"
|
#include "backend/wayland.h"
|
||||||
|
#include "util/signal.h"
|
||||||
#include "xdg-shell-unstable-v6-client-protocol.h"
|
#include "xdg-shell-unstable-v6-client-protocol.h"
|
||||||
|
|
||||||
static int dispatch_events(int fd, uint32_t mask, void *data) {
|
static int dispatch_events(int fd, uint32_t mask, void *data) {
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
#include <stdio.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <GLES2/gl2.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <GLES2/gl2.h>
|
|
||||||
#include <wlr/interfaces/wlr_output.h>
|
#include <wlr/interfaces/wlr_output.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/wayland.h"
|
#include "backend/wayland.h"
|
||||||
|
#include "util/signal.h"
|
||||||
#include "xdg-shell-unstable-v6-client-protocol.h"
|
#include "xdg-shell-unstable-v6-client-protocol.h"
|
||||||
|
|
||||||
int os_create_anonymous_file(off_t size);
|
int os_create_anonymous_file(off_t size);
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include "backend/wayland.h"
|
#include "backend/wayland.h"
|
||||||
#include "xdg-shell-unstable-v6-client-protocol.h"
|
#include "xdg-shell-unstable-v6-client-protocol.h"
|
||||||
|
|
||||||
|
|
||||||
static void xdg_shell_handle_ping(void *data, struct zxdg_shell_v6 *shell,
|
static void xdg_shell_handle_ping(void *data, struct zxdg_shell_v6 *shell,
|
||||||
uint32_t serial) {
|
uint32_t serial) {
|
||||||
zxdg_shell_v6_pong(shell, serial);
|
zxdg_shell_v6_pong(shell, serial);
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
#define _XOPEN_SOURCE 500
|
#define _XOPEN_SOURCE 500
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <wlr/interfaces/wlr_output.h>
|
|
||||||
#include <wlr/interfaces/wlr_input_device.h>
|
#include <wlr/interfaces/wlr_input_device.h>
|
||||||
#include <wlr/interfaces/wlr_pointer.h>
|
|
||||||
#include <wlr/interfaces/wlr_keyboard.h>
|
#include <wlr/interfaces/wlr_keyboard.h>
|
||||||
|
#include <wlr/interfaces/wlr_output.h>
|
||||||
|
#include <wlr/interfaces/wlr_pointer.h>
|
||||||
#include <wlr/interfaces/wlr_touch.h>
|
#include <wlr/interfaces/wlr_touch.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/wayland.h"
|
#include "backend/wayland.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
static void pointer_handle_enter(void *data, struct wl_pointer *wl_pointer,
|
static void pointer_handle_enter(void *data, struct wl_pointer *wl_pointer,
|
||||||
uint32_t serial, struct wl_surface *surface, wl_fixed_t surface_x,
|
uint32_t serial, struct wl_surface *surface, wl_fixed_t surface_x,
|
||||||
|
|
|
@ -1,29 +1,29 @@
|
||||||
#define _POSIX_C_SOURCE 200112L
|
#define _POSIX_C_SOURCE 200112L
|
||||||
|
#include <EGL/egl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <EGL/egl.h>
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <xcb/xcb.h>
|
#include <wlr/backend/interface.h>
|
||||||
#include <xcb/glx.h>
|
#include <wlr/backend/x11.h>
|
||||||
|
#include <wlr/interfaces/wlr_input_device.h>
|
||||||
|
#include <wlr/interfaces/wlr_keyboard.h>
|
||||||
|
#include <wlr/interfaces/wlr_output.h>
|
||||||
|
#include <wlr/interfaces/wlr_pointer.h>
|
||||||
|
#include <wlr/render/egl.h>
|
||||||
|
#include <wlr/render/gles2.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#include <X11/Xlib-xcb.h>
|
#include <X11/Xlib-xcb.h>
|
||||||
|
#include <xcb/glx.h>
|
||||||
|
#include <xcb/xcb.h>
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <linux/input-event-codes.h>
|
#include <linux/input-event-codes.h>
|
||||||
#elif __FreeBSD__
|
#elif __FreeBSD__
|
||||||
#include <dev/evdev/input-event-codes.h>
|
#include <dev/evdev/input-event-codes.h>
|
||||||
#endif
|
#endif
|
||||||
#include <wlr/backend/interface.h>
|
|
||||||
#include <wlr/backend/x11.h>
|
|
||||||
#include <wlr/render/egl.h>
|
|
||||||
#include <wlr/render/gles2.h>
|
|
||||||
#include <wlr/interfaces/wlr_output.h>
|
|
||||||
#include <wlr/interfaces/wlr_input_device.h>
|
|
||||||
#include <wlr/interfaces/wlr_keyboard.h>
|
|
||||||
#include <wlr/interfaces/wlr_pointer.h>
|
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include "util/signal.h"
|
|
||||||
#include "backend/x11.h"
|
#include "backend/x11.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
static struct wlr_backend_impl backend_impl;
|
static struct wlr_backend_impl backend_impl;
|
||||||
static struct wlr_output_impl output_impl;
|
static struct wlr_output_impl output_impl;
|
||||||
|
|
|
@ -1,19 +1,17 @@
|
||||||
#ifndef BACKEND_DRM_DRM_H
|
#ifndef BACKEND_DRM_DRM_H
|
||||||
#define BACKEND_DRM_DRM_H
|
#define BACKEND_DRM_DRM_H
|
||||||
|
|
||||||
|
#include <EGL/egl.h>
|
||||||
|
#include <gbm.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <xf86drmMode.h>
|
|
||||||
#include <EGL/egl.h>
|
|
||||||
#include <gbm.h>
|
|
||||||
#include <wayland-util.h>
|
#include <wayland-util.h>
|
||||||
|
|
||||||
#include <wlr/backend/session.h>
|
|
||||||
#include <wlr/backend/drm.h>
|
#include <wlr/backend/drm.h>
|
||||||
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
|
#include <xf86drmMode.h>
|
||||||
#include "iface.h"
|
#include "iface.h"
|
||||||
#include "properties.h"
|
#include "properties.h"
|
||||||
#include "renderer.h"
|
#include "renderer.h"
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#ifndef BACKEND_DRM_IFACE_H
|
#ifndef BACKEND_DRM_IFACE_H
|
||||||
#define BACKEND_DRM_IFACE_H
|
#define BACKEND_DRM_IFACE_H
|
||||||
|
|
||||||
|
#include <gbm.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <gbm.h>
|
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
#include <xf86drmMode.h>
|
#include <xf86drmMode.h>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
#ifndef BACKEND_DRM_RENDERER_H
|
#ifndef BACKEND_DRM_RENDERER_H
|
||||||
#define BACKEND_DRM_RENDERER_H
|
#define BACKEND_DRM_RENDERER_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <gbm.h>
|
#include <gbm.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
|
|
||||||
struct wlr_drm_backend;
|
struct wlr_drm_backend;
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#define BACKEND_DRM_UTIL_H
|
#define BACKEND_DRM_UTIL_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <wlr/types/wlr_output.h>
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
#include <xf86drmMode.h>
|
#include <xf86drmMode.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
|
||||||
|
|
||||||
// Calculates a more accurate refresh rate (mHz) than what mode itself provides
|
// Calculates a more accurate refresh rate (mHz) than what mode itself provides
|
||||||
int32_t calculate_refresh_rate(drmModeModeInfo *mode);
|
int32_t calculate_refresh_rate(drmModeModeInfo *mode);
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef BACKEND_HEADLESS_H
|
#ifndef BACKEND_HEADLESS_H
|
||||||
#define BACKEND_HEADLESS_H
|
#define BACKEND_HEADLESS_H
|
||||||
|
|
||||||
#include <wlr/backend/interface.h>
|
|
||||||
#include <wlr/backend/headless.h>
|
#include <wlr/backend/headless.h>
|
||||||
|
#include <wlr/backend/interface.h>
|
||||||
|
|
||||||
struct wlr_headless_backend {
|
struct wlr_headless_backend {
|
||||||
struct wlr_backend backend;
|
struct wlr_backend backend;
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#ifndef BACKEND_LIBINPUT_H
|
#ifndef BACKEND_LIBINPUT_H
|
||||||
#define BACKEND_LIBINPUT_H
|
#define BACKEND_LIBINPUT_H
|
||||||
|
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
#include <wayland-server-core.h>
|
#include <wayland-server-core.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/backend/interface.h>
|
#include <wlr/backend/interface.h>
|
||||||
#include <wlr/interfaces/wlr_input_device.h>
|
#include <wlr/interfaces/wlr_input_device.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/types/wlr_list.h>
|
#include <wlr/types/wlr_list.h>
|
||||||
|
|
||||||
struct wlr_libinput_backend {
|
struct wlr_libinput_backend {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef BACKEND_MULTI_H
|
#ifndef BACKEND_MULTI_H
|
||||||
#define BACKEND_MULTI_H
|
#define BACKEND_MULTI_H
|
||||||
|
|
||||||
|
#include <wayland-util.h>
|
||||||
#include <wlr/backend/interface.h>
|
#include <wlr/backend/interface.h>
|
||||||
#include <wlr/backend/multi.h>
|
#include <wlr/backend/multi.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wayland-util.h>
|
|
||||||
|
|
||||||
struct wlr_multi_backend {
|
struct wlr_multi_backend {
|
||||||
struct wlr_backend backend;
|
struct wlr_backend backend;
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <wayland-server.h>
|
|
||||||
#include <wayland-egl.h>
|
#include <wayland-egl.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/render.h>
|
|
||||||
#include <wlr/backend/wayland.h>
|
|
||||||
#include <wlr/types/wlr_box.h>
|
|
||||||
#include <wayland-util.h>
|
#include <wayland-util.h>
|
||||||
|
#include <wlr/backend/wayland.h>
|
||||||
|
#include <wlr/render.h>
|
||||||
|
#include <wlr/render/egl.h>
|
||||||
|
#include <wlr/types/wlr_box.h>
|
||||||
|
|
||||||
struct wlr_wl_backend {
|
struct wlr_wl_backend {
|
||||||
struct wlr_backend backend;
|
struct wlr_backend backend;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#ifndef WLR_X11_H
|
#ifndef BACKEND_X11_H
|
||||||
#define WLR_X11_H
|
#define BACKEND_X11_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <xcb/xcb.h>
|
|
||||||
#include <X11/Xlib-xcb.h>
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
|
#include <X11/Xlib-xcb.h>
|
||||||
|
#include <xcb/xcb.h>
|
||||||
|
|
||||||
struct wlr_x11_backend;
|
struct wlr_x11_backend;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#ifndef RENDER_GLES2_H
|
#ifndef RENDER_GLES2_H
|
||||||
#define RENDER_GLES2_H
|
#define RENDER_GLES2_H
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <GLES2/gl2.h>
|
|
||||||
#include <GLES2/gl2ext.h>
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
#include <GLES2/gl2.h>
|
||||||
|
#include <GLES2/gl2ext.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <string.h>
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#ifndef _ROOTSTON_CONFIG_H
|
#ifndef ROOTSTON_CONFIG_H
|
||||||
#define _ROOTSTON_CONFIG_H
|
#define ROOTSTON_CONFIG_H
|
||||||
#include <wlr/types/wlr_output_layout.h>
|
|
||||||
#include <wlr/types/wlr_input_device.h>
|
#include <wlr/types/wlr_input_device.h>
|
||||||
|
#include <wlr/types/wlr_output_layout.h>
|
||||||
|
|
||||||
#define ROOTS_CONFIG_DEFAULT_SEAT_NAME "seat0"
|
#define ROOTS_CONFIG_DEFAULT_SEAT_NAME "seat0"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _ROOTSTON_CURSOR_H
|
#ifndef ROOTSTON_CURSOR_H
|
||||||
#define _ROOTSTON_CURSOR_H
|
#define ROOTSTON_CURSOR_H
|
||||||
|
|
||||||
#include "rootston/seat.h"
|
#include "rootston/seat.h"
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,23 @@
|
||||||
#ifndef _ROOTSTON_DESKTOP_H
|
#ifndef ROOTSTON_DESKTOP_H
|
||||||
#define _ROOTSTON_DESKTOP_H
|
#define ROOTSTON_DESKTOP_H
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/config.h>
|
#include <wlr/config.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
|
||||||
#include <wlr/types/wlr_output_layout.h>
|
|
||||||
#include <wlr/types/wlr_compositor.h>
|
#include <wlr/types/wlr_compositor.h>
|
||||||
#include <wlr/types/wlr_wl_shell.h>
|
|
||||||
#include <wlr/types/wlr_xdg_shell_v6.h>
|
|
||||||
#include <wlr/types/wlr_xcursor_manager.h>
|
|
||||||
#include <wlr/types/wlr_gamma_control.h>
|
#include <wlr/types/wlr_gamma_control.h>
|
||||||
|
#include <wlr/types/wlr_idle.h>
|
||||||
|
#include <wlr/types/wlr_list.h>
|
||||||
|
#include <wlr/types/wlr_output_layout.h>
|
||||||
|
#include <wlr/types/wlr_output.h>
|
||||||
#include <wlr/types/wlr_primary_selection.h>
|
#include <wlr/types/wlr_primary_selection.h>
|
||||||
#include <wlr/types/wlr_screenshooter.h>
|
#include <wlr/types/wlr_screenshooter.h>
|
||||||
#include <wlr/types/wlr_list.h>
|
#include <wlr/types/wlr_wl_shell.h>
|
||||||
#include <wlr/types/wlr_idle.h>
|
#include <wlr/types/wlr_xcursor_manager.h>
|
||||||
#include "rootston/view.h"
|
#include <wlr/types/wlr_xdg_shell_v6.h>
|
||||||
#include "rootston/config.h"
|
#include "rootston/config.h"
|
||||||
#include "rootston/output.h"
|
#include "rootston/output.h"
|
||||||
|
#include "rootston/view.h"
|
||||||
|
|
||||||
struct roots_desktop {
|
struct roots_desktop {
|
||||||
struct wl_list views; // roots_view::link
|
struct wl_list views; // roots_view::link
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#ifndef _ROOTSTON_INPUT_H
|
#ifndef ROOTSTON_INPUT_H
|
||||||
#define _ROOTSTON_INPUT_H
|
#define ROOTSTON_INPUT_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/types/wlr_cursor.h>
|
#include <wlr/types/wlr_cursor.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/types/wlr_seat.h>
|
#include <wlr/types/wlr_seat.h>
|
||||||
#include "rootston/cursor.h"
|
|
||||||
#include "rootston/config.h"
|
#include "rootston/config.h"
|
||||||
#include "rootston/view.h"
|
#include "rootston/cursor.h"
|
||||||
#include "rootston/server.h"
|
#include "rootston/server.h"
|
||||||
|
#include "rootston/view.h"
|
||||||
|
|
||||||
struct roots_input {
|
struct roots_input {
|
||||||
struct roots_config *config;
|
struct roots_config *config;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _ROOTSTON_KEYBOARD_H
|
#ifndef ROOTSTON_KEYBOARD_H
|
||||||
#define _ROOTSTON_KEYBOARD_H
|
#define ROOTSTON_KEYBOARD_H
|
||||||
|
|
||||||
#include <xkbcommon/xkbcommon.h>
|
#include <xkbcommon/xkbcommon.h>
|
||||||
#include "rootston/input.h"
|
#include "rootston/input.h"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef _ROOTSTON_OUTPUT_H
|
#ifndef ROOTSTON_OUTPUT_H
|
||||||
#define _ROOTSTON_OUTPUT_H
|
#define ROOTSTON_OUTPUT_H
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
#include <pixman.h>
|
#include <pixman.h>
|
||||||
|
#include <time.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/types/wlr_output_damage.h>
|
#include <wlr/types/wlr_output_damage.h>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#ifndef _ROOTSTON_SEAT_H
|
#ifndef ROOTSTON_SEAT_H
|
||||||
#define _ROOTSTON_SEAT_H
|
#define ROOTSTON_SEAT_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include "rootston/input.h"
|
#include "rootston/input.h"
|
||||||
#include "rootston/keyboard.h"
|
#include "rootston/keyboard.h"
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
#ifndef _ROOTSTON_SERVER_H
|
#ifndef _ROOTSTON_SERVER_H
|
||||||
#define _ROOTSTON_SERVER_H
|
#define _ROOTSTON_SERVER_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/config.h>
|
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/types/wlr_data_device.h>
|
#include <wlr/config.h>
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
|
#include <wlr/types/wlr_data_device.h>
|
||||||
#ifdef WLR_HAS_XWAYLAND
|
#ifdef WLR_HAS_XWAYLAND
|
||||||
#include <wlr/xwayland.h>
|
#include <wlr/xwayland.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _ROOTSTON_VIEW_H
|
#ifndef ROOTSTON_VIEW_H
|
||||||
#define _ROOTSTON_VIEW_H
|
#define ROOTSTON_VIEW_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <wlr/config.h>
|
#include <wlr/config.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _ROOTSTON_XCURSOR_H
|
#ifndef ROOTSTON_XCURSOR_H
|
||||||
#define _ROOTSTON_XCURSOR_H
|
#define ROOTSTON_XCURSOR_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
#ifndef _WLR_UTIL_OS_COMPATIBILITY_H
|
#ifndef UTIL_OS_COMPATIBILITY_H
|
||||||
#define _WLR_UTIL_OS_COMPATIBILITY_H
|
#define UTIL_OS_COMPATIBILITY_H
|
||||||
|
|
||||||
int os_fd_set_cloexec(int fd);
|
int os_fd_set_cloexec(int fd);
|
||||||
|
|
||||||
int set_cloexec_or_close(int fd);
|
int set_cloexec_or_close(int fd);
|
||||||
|
|
||||||
int create_tmpfile_cloexec(char *tmpname);
|
int create_tmpfile_cloexec(char *tmpname);
|
||||||
|
|
||||||
int os_create_anonymous_file(off_t size);
|
int os_create_anonymous_file(off_t size);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef WLR_UTIL_SIGNAL_H
|
#ifndef UTIL_SIGNAL_H
|
||||||
#define WLR_UTIL_SIGNAL_H
|
#define UTIL_SIGNAL_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#define WLR_BACKEND_DRM_H
|
#define WLR_BACKEND_DRM_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/backend/session.h>
|
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
|
|
||||||
struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
#include <libinput.h>
|
#include <libinput.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/backend/session.h>
|
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
|
#include <wlr/backend/session.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
#include <wlr/types/wlr_input_device.h>
|
||||||
|
|
||||||
struct wlr_backend *wlr_libinput_backend_create(struct wl_display *display,
|
struct wlr_backend *wlr_libinput_backend_create(struct wl_display *display,
|
||||||
|
|
|
@ -5,17 +5,12 @@
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
|
|
||||||
struct wlr_backend *wlr_multi_backend_create(struct wl_display *display);
|
struct wlr_backend *wlr_multi_backend_create(struct wl_display *display);
|
||||||
|
|
||||||
void wlr_multi_backend_add(struct wlr_backend *multi,
|
void wlr_multi_backend_add(struct wlr_backend *multi,
|
||||||
struct wlr_backend *backend);
|
struct wlr_backend *backend);
|
||||||
|
|
||||||
void wlr_multi_backend_remove(struct wlr_backend *multi,
|
void wlr_multi_backend_remove(struct wlr_backend *multi,
|
||||||
struct wlr_backend *backend);
|
struct wlr_backend *backend);
|
||||||
|
|
||||||
bool wlr_backend_is_multi(struct wlr_backend *backend);
|
bool wlr_backend_is_multi(struct wlr_backend *backend);
|
||||||
|
|
||||||
struct wlr_session *wlr_multi_get_session(struct wlr_backend *base);
|
struct wlr_session *wlr_multi_get_session(struct wlr_backend *base);
|
||||||
|
|
||||||
bool wlr_multi_is_empty(struct wlr_backend *backend);
|
bool wlr_multi_is_empty(struct wlr_backend *backend);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef WLR_BACKEND_SESSION_H
|
#ifndef WLR_BACKEND_SESSION_H
|
||||||
#define WLR_BACKEND_SESSION_H
|
#define WLR_BACKEND_SESSION_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <wayland-server.h>
|
|
||||||
#include <libudev.h>
|
#include <libudev.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <wayland-server.h>
|
||||||
|
|
||||||
struct session_impl;
|
struct session_impl;
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#ifndef WLR_BACKEND_WAYLAND_H
|
#ifndef WLR_BACKEND_WAYLAND_H
|
||||||
#define WLR_BACKEND_WAYLAND_H
|
#define WLR_BACKEND_WAYLAND_H
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new wlr_wl_backend. This backend will be created with no outputs;
|
* Creates a new wlr_wl_backend. This backend will be created with no outputs;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef WLR_INTERFACES_WLR_KEYBOARD_H
|
#ifndef WLR_INTERFACES_WLR_KEYBOARD_H
|
||||||
#define WLR_INTERFACES_WLR_KEYBOARD_H
|
#define WLR_INTERFACES_WLR_KEYBOARD_H
|
||||||
|
|
||||||
#include <wlr/types/wlr_keyboard.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <wlr/types/wlr_keyboard.h>
|
||||||
|
|
||||||
struct wlr_keyboard_impl {
|
struct wlr_keyboard_impl {
|
||||||
void (*destroy)(struct wlr_keyboard *keyboard);
|
void (*destroy)(struct wlr_keyboard *keyboard);
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#define WLR_INTERFACES_WLR_OUTPUT_H
|
#define WLR_INTERFACES_WLR_OUTPUT_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <wlr/backend.h>
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
#include <wlr/backend.h>
|
|
||||||
|
|
||||||
struct wlr_output_impl {
|
struct wlr_output_impl {
|
||||||
void (*enable)(struct wlr_output *output, bool enable);
|
void (*enable)(struct wlr_output *output, bool enable);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef WLR_RENDER_H
|
#ifndef WLR_RENDER_H
|
||||||
#define WLR_RENDER_H
|
#define WLR_RENDER_H
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <wayland-server-protocol.h>
|
#include <wayland-server-protocol.h>
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef WLR_EGL_H
|
#ifndef WLR_RENDER_EGL_H
|
||||||
#define WLR_EGL_H
|
#define WLR_RENDER_EGL_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
#include <pixman.h>
|
#include <pixman.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
|
|
||||||
struct wlr_egl {
|
struct wlr_egl {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef WLR_RENDER_GLES2_H
|
#ifndef WLR_RENDER_GLES2_H
|
||||||
#define WLR_RENDER_GLES2_H
|
#define WLR_RENDER_GLES2_H
|
||||||
|
|
||||||
#include <wlr/render.h>
|
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
|
#include <wlr/render.h>
|
||||||
|
|
||||||
struct wlr_egl;
|
struct wlr_egl;
|
||||||
struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_backend *backend);
|
struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_backend *backend);
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef WLR_RENDER_INTERFACE_H
|
#ifndef WLR_RENDER_INTERFACE_H
|
||||||
#define WLR_RENDER_INTERFACE_H
|
#define WLR_RENDER_INTERFACE_H
|
||||||
|
|
||||||
#include <wayland-server-protocol.h>
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <wayland-server-protocol.h>
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
#define WLR_TYPES_WLR_CURSOR_H
|
#define WLR_TYPES_WLR_CURSOR_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
|
||||||
#include <wlr/types/wlr_output_layout.h>
|
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
|
#include <wlr/types/wlr_output_layout.h>
|
||||||
|
#include <wlr/types/wlr_output.h>
|
||||||
|
|
||||||
struct wlr_cursor_state;
|
struct wlr_cursor_state;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef WLR_TYPES_WLR_KEYBOARD_H
|
#ifndef WLR_TYPES_WLR_KEYBOARD_H
|
||||||
#define WLR_TYPES_WLR_KEYBOARD_H
|
#define WLR_TYPES_WLR_KEYBOARD_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <wayland-server.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <xkbcommon/xkbcommon.h>
|
#include <xkbcommon/xkbcommon.h>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef WLR_UTIL_LIST_H
|
#ifndef WLR_TYPES_WLR_LIST_H
|
||||||
#define WLR_UTIL_LIST_H
|
#define WLR_TYPES_WLR_LIST_H
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
struct wlr_list {
|
struct wlr_list {
|
||||||
size_t capacity;
|
size_t capacity;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#ifndef WLR_TYPES_WLR_OUTPUT_H
|
#ifndef WLR_TYPES_WLR_OUTPUT_H
|
||||||
#define WLR_TYPES_WLR_OUTPUT_H
|
#define WLR_TYPES_WLR_OUTPUT_H
|
||||||
|
|
||||||
|
#include <pixman.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <pixman.h>
|
|
||||||
#include <wayland-util.h>
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
|
#include <wayland-util.h>
|
||||||
|
|
||||||
struct wlr_output_mode {
|
struct wlr_output_mode {
|
||||||
uint32_t flags; // enum wl_output_mode
|
uint32_t flags; // enum wl_output_mode
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef WLR_TYPES_WLR_OUTPUT_DAMAGE_H
|
#ifndef WLR_TYPES_WLR_OUTPUT_DAMAGE_H
|
||||||
#define WLR_TYPES_WLR_OUTPUT_DAMAGE_H
|
#define WLR_TYPES_WLR_OUTPUT_DAMAGE_H
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
#include <pixman.h>
|
#include <pixman.h>
|
||||||
|
#include <time.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef WLR_TYPES_WLR_OUTPUT_LAYOUT_H
|
#ifndef WLR_TYPES_WLR_OUTPUT_LAYOUT_H
|
||||||
#define WLR_TYPES_WLR_OUTPUT_LAYOUT_H
|
#define WLR_TYPES_WLR_OUTPUT_LAYOUT_H
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <wayland-util.h>
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
#include <wayland-util.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
struct wlr_output_layout_state;
|
struct wlr_output_layout_state;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef WLR_TYPES_WLR_POINTER_H
|
#ifndef WLR_TYPES_WLR_POINTER_H
|
||||||
#define WLR_TYPES_WLR_POINTER_H
|
#define WLR_TYPES_WLR_POINTER_H
|
||||||
|
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wayland-server.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <wayland-server.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
|
|
||||||
struct wlr_pointer_impl;
|
struct wlr_pointer_impl;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef WLR_TYPES_WLR_PRIMARY_SELECTION_H
|
#ifndef WLR_TYPES_WLR_PRIMARY_SELECTION_H
|
||||||
#define WLR_TYPES_WLR_PRIMARY_SELECTION_H
|
#define WLR_TYPES_WLR_PRIMARY_SELECTION_H
|
||||||
|
|
||||||
#include <wlr/types/wlr_seat.h>
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
|
#include <wlr/types/wlr_seat.h>
|
||||||
|
|
||||||
struct wlr_primary_selection_device_manager {
|
struct wlr_primary_selection_device_manager {
|
||||||
struct wl_global *global;
|
struct wl_global *global;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#ifndef _WLR_SCREENSHOOTER_H
|
#ifndef WLR_TYPES_WLR_SCREENSHOOTER_H
|
||||||
#define _WLR_SCREENSHOOTER_H
|
#define WLR_TYPES_WLR_SCREENSHOOTER_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
|
|
||||||
struct wlr_screenshooter {
|
struct wlr_screenshooter {
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#ifndef WLR_TYPES_WLR_SEAT_H
|
#ifndef WLR_TYPES_WLR_SEAT_H
|
||||||
#define WLR_TYPES_WLR_SEAT_H
|
#define WLR_TYPES_WLR_SEAT_H
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <wlr/types/wlr_surface.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/types/wlr_keyboard.h>
|
#include <wlr/types/wlr_keyboard.h>
|
||||||
#include <wayland-server.h>
|
#include <wlr/types/wlr_surface.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains state for a single client's bound wl_seat resource and can be used
|
* Contains state for a single client's bound wl_seat resource and can be used
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#ifndef WLR_TYPES_WLR_SURFACE_H
|
#ifndef WLR_TYPES_WLR_SURFACE_H
|
||||||
#define WLR_TYPES_WLR_SURFACE_H
|
#define WLR_TYPES_WLR_SURFACE_H
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <pixman.h>
|
#include <pixman.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <time.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef WLR_TYPES_WLR_TABLET_PAD_H
|
#ifndef WLR_TYPES_WLR_TABLET_PAD_H
|
||||||
#define WLR_TYPES_WLR_TABLET_PAD_H
|
#define WLR_TYPES_WLR_TABLET_PAD_H
|
||||||
|
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wayland-server.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <wayland-server.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NOTE: the wlr tablet pad implementation does not currently support tablets
|
* NOTE: the wlr tablet pad implementation does not currently support tablets
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef WLR_TYPES_TABLET_TOOL_H
|
#ifndef WLR_TYPES_TABLET_TOOL_H
|
||||||
#define WLR_TYPES_TABLET_TOOL_H
|
#define WLR_TYPES_TABLET_TOOL_H
|
||||||
|
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wayland-server.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <wayland-server.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
|
|
||||||
struct wlr_tablet_tool_impl;
|
struct wlr_tablet_tool_impl;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef WLR_TYPES_WLR_TOUCH_H
|
#ifndef WLR_TYPES_WLR_TOUCH_H
|
||||||
#define WLR_TYPES_WLR_TOUCH_H
|
#define WLR_TYPES_WLR_TOUCH_H
|
||||||
|
|
||||||
#include <wayland-server.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <wayland-server.h>
|
||||||
|
|
||||||
struct wlr_touch_impl;
|
struct wlr_touch_impl;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef WLR_TYPES_WLR_XDG_SHELL_V6_H
|
#ifndef WLR_TYPES_WLR_XDG_SHELL_V6_H
|
||||||
#define WLR_TYPES_WLR_XDG_SHELL_V6_H
|
#define WLR_TYPES_WLR_XDG_SHELL_V6_H
|
||||||
|
|
||||||
|
#include <wayland-server.h>
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
#include <wlr/types/wlr_seat.h>
|
#include <wlr/types/wlr_seat.h>
|
||||||
#include <wayland-server.h>
|
|
||||||
|
|
||||||
struct wlr_xdg_shell_v6 {
|
struct wlr_xdg_shell_v6 {
|
||||||
struct wl_global *wl_global;
|
struct wl_global *wl_global;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef WLR_XWAYLAND_H
|
#ifndef WLR_XWAYLAND_H
|
||||||
#define WLR_XWAYLAND_H
|
#define WLR_XWAYLAND_H
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <time.h>
|
||||||
#include <wlr/config.h>
|
#include <wlr/config.h>
|
||||||
#include <wlr/types/wlr_compositor.h>
|
#include <wlr/types/wlr_compositor.h>
|
||||||
#include <wlr/types/wlr_seat.h>
|
#include <wlr/types/wlr_seat.h>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef XWAYLAND_INTERNALS_H
|
#ifndef WLR_XWM_H
|
||||||
#define XWAYLAND_INTERNALS_H
|
#define WLR_XWM_H
|
||||||
|
|
||||||
#include <xcb/render.h>
|
|
||||||
#include <wayland-server-core.h>
|
#include <wayland-server-core.h>
|
||||||
#include <wlr/xwayland.h>
|
#include <wlr/xwayland.h>
|
||||||
|
#include <xcb/render.h>
|
||||||
|
|
||||||
enum atom_name {
|
enum atom_name {
|
||||||
WL_SURFACE_ID,
|
WL_SURFACE_ID,
|
||||||
|
|
36
meson.build
36
meson.build
|
@ -157,16 +157,16 @@ wlroots = declare_dependency(
|
||||||
|
|
||||||
|
|
||||||
summary = [
|
summary = [
|
||||||
'',
|
'',
|
||||||
'----------------',
|
'----------------',
|
||||||
'wlroots @0@'.format(meson.project_version()),
|
'wlroots @0@'.format(meson.project_version()),
|
||||||
'',
|
'',
|
||||||
' libcap: @0@'.format(conf_data.get('WLR_HAS_LIBCAP', false)),
|
' libcap: @0@'.format(conf_data.get('WLR_HAS_LIBCAP', false)),
|
||||||
' systemd: @0@'.format(conf_data.get('WLR_HAS_SYSTEMD', false)),
|
' systemd: @0@'.format(conf_data.get('WLR_HAS_SYSTEMD', false)),
|
||||||
' elogind: @0@'.format(conf_data.get('WLR_HAS_ELOGIND', false)),
|
' elogind: @0@'.format(conf_data.get('WLR_HAS_ELOGIND', false)),
|
||||||
' xwayland: @0@'.format(conf_data.get('WLR_HAS_XWAYLAND', false)),
|
' xwayland: @0@'.format(conf_data.get('WLR_HAS_XWAYLAND', false)),
|
||||||
'----------------',
|
'----------------',
|
||||||
''
|
''
|
||||||
]
|
]
|
||||||
message('\n'.join(summary))
|
message('\n'.join(summary))
|
||||||
|
|
||||||
|
@ -195,18 +195,18 @@ if git.found()
|
||||||
etags = find_program('etags', required: false)
|
etags = find_program('etags', required: false)
|
||||||
if etags.found() and all_files.length() > 0
|
if etags.found() and all_files.length() > 0
|
||||||
custom_target('etags',
|
custom_target('etags',
|
||||||
build_by_default: true,
|
build_by_default: true,
|
||||||
input: all_files,
|
input: all_files,
|
||||||
output: 'TAGS',
|
output: 'TAGS',
|
||||||
command: [etags.path(), '-o', 'TAGS'] + all_files)
|
command: [etags.path(), '-o', 'TAGS'] + all_files)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ctags = find_program('ctags', required: false)
|
ctags = find_program('ctags', required: false)
|
||||||
if ctags.found() and all_files.length() > 0
|
if ctags.found() and all_files.length() > 0
|
||||||
custom_target('ctags',
|
custom_target('ctags',
|
||||||
build_by_default: true,
|
build_by_default: true,
|
||||||
input: all_files,
|
input: all_files,
|
||||||
output: 'tags',
|
output: 'tags',
|
||||||
command: [ctags.path(), '-o', 'tags'] + all_files)
|
command: [ctags.path(), '-o', 'tags'] + all_files)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -24,18 +24,18 @@ protocols = [
|
||||||
[wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'],
|
[wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'],
|
||||||
'gamma-control.xml',
|
'gamma-control.xml',
|
||||||
'gtk-primary-selection.xml',
|
'gtk-primary-selection.xml',
|
||||||
|
'idle.xml',
|
||||||
'screenshooter.xml',
|
'screenshooter.xml',
|
||||||
'server-decoration.xml',
|
'server-decoration.xml',
|
||||||
'idle.xml',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
client_protocols = [
|
client_protocols = [
|
||||||
[wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'],
|
[wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'],
|
||||||
'gamma-control.xml',
|
'gamma-control.xml',
|
||||||
'gtk-primary-selection.xml',
|
'gtk-primary-selection.xml',
|
||||||
|
'idle.xml',
|
||||||
'screenshooter.xml',
|
'screenshooter.xml',
|
||||||
'server-decoration.xml',
|
'server-decoration.xml',
|
||||||
'idle.xml',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
wl_protos_src = []
|
wl_protos_src = []
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
#include <wlr/util/log.h>
|
#include <stdlib.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#include "glapi.h"
|
#include "glapi.h"
|
||||||
|
|
||||||
// Extension documentation
|
// Extension documentation
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
#include <GLES2/gl2ext.h>
|
#include <GLES2/gl2ext.h>
|
||||||
#include <wayland-util.h>
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wayland-server-protocol.h>
|
#include <wayland-server-protocol.h>
|
||||||
|
#include <wayland-util.h>
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "render/gles2.h"
|
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
|
#include "render/gles2.h"
|
||||||
|
|
||||||
// Colored quads
|
// Colored quads
|
||||||
const GLchar quad_vertex_src[] =
|
const GLchar quad_vertex_src[] =
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
#include <GLES2/gl2ext.h>
|
#include <GLES2/gl2ext.h>
|
||||||
#include <wayland-util.h>
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wayland-server-protocol.h>
|
#include <wayland-server-protocol.h>
|
||||||
|
#include <wayland-util.h>
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
#include <wlr/render/interface.h>
|
#include <wlr/render/interface.h>
|
||||||
#include <wlr/render/matrix.h>
|
#include <wlr/render/matrix.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "util/signal.h"
|
|
||||||
#include "render/gles2.h"
|
#include "render/gles2.h"
|
||||||
|
#include "util/signal.h"
|
||||||
|
|
||||||
static struct pixel_format external_pixel_format = {
|
static struct pixel_format external_pixel_format = {
|
||||||
.wl_format = 0,
|
.wl_format = 0,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "render/gles2.h"
|
#include "render/gles2.h"
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#include <string.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <string.h>
|
||||||
#include <wayland-server-protocol.h>
|
#include <wayland-server-protocol.h>
|
||||||
|
#include <wlr/render/matrix.h>
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
#include <wlr/render/matrix.h>
|
|
||||||
|
|
||||||
/* Obtains the index for the given row/column */
|
/* Obtains the index for the given row/column */
|
||||||
static inline int mind(int row, int col) {
|
static inline int mind(int row, int col) {
|
||||||
|
|
|
@ -10,12 +10,12 @@ lib_wlr_render = static_library(
|
||||||
'wlr_render',
|
'wlr_render',
|
||||||
files(
|
files(
|
||||||
'egl.c',
|
'egl.c',
|
||||||
'matrix.c',
|
|
||||||
'gles2/pixel_format.c',
|
'gles2/pixel_format.c',
|
||||||
'gles2/renderer.c',
|
'gles2/renderer.c',
|
||||||
'gles2/shaders.c',
|
'gles2/shaders.c',
|
||||||
'gles2/texture.c',
|
'gles2/texture.c',
|
||||||
'gles2/util.c',
|
'gles2/util.c',
|
||||||
|
'matrix.c',
|
||||||
'wlr_renderer.c',
|
'wlr_renderer.c',
|
||||||
'wlr_texture.c',
|
'wlr_texture.c',
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/render/interface.h>
|
#include <wlr/render/interface.h>
|
||||||
|
|
||||||
void wlr_renderer_init(struct wlr_renderer *renderer,
|
void wlr_renderer_init(struct wlr_renderer *renderer,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wlr/render/interface.h>
|
#include <wlr/render/interface.h>
|
||||||
|
|
||||||
void wlr_texture_init(struct wlr_texture *texture,
|
void wlr_texture_init(struct wlr_texture *texture,
|
||||||
|
|
|
@ -2,20 +2,20 @@
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#endif
|
#endif
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <limits.h>
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <wlr/config.h>
|
#include <wlr/config.h>
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#include "rootston/config.h"
|
#include "rootston/config.h"
|
||||||
|
#include "rootston/ini.h"
|
||||||
#include "rootston/input.h"
|
#include "rootston/input.h"
|
||||||
#include "rootston/keyboard.h"
|
#include "rootston/keyboard.h"
|
||||||
#include "rootston/ini.h"
|
|
||||||
|
|
||||||
static void usage(const char *name, int ret) {
|
static void usage(const char *name, int ret) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
#define _XOPEN_SOURCE 700
|
#define _XOPEN_SOURCE 700
|
||||||
#include <stdlib.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <wlr/types/wlr_xcursor_manager.h>
|
||||||
|
#include <wlr/util/edges.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <linux/input-event-codes.h>
|
#include <linux/input-event-codes.h>
|
||||||
#elif __FreeBSD__
|
#elif __FreeBSD__
|
||||||
#include <dev/evdev/input-event-codes.h>
|
#include <dev/evdev/input-event-codes.h>
|
||||||
#endif
|
#endif
|
||||||
#include <wlr/types/wlr_xcursor_manager.h>
|
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include <wlr/util/edges.h>
|
|
||||||
#include "rootston/xcursor.h"
|
|
||||||
#include "rootston/cursor.h"
|
#include "rootston/cursor.h"
|
||||||
|
#include "rootston/xcursor.h"
|
||||||
|
|
||||||
struct roots_cursor *roots_cursor_create(struct roots_seat *seat) {
|
struct roots_cursor *roots_cursor_create(struct roots_seat *seat) {
|
||||||
struct roots_cursor *cursor = calloc(1, sizeof(struct roots_cursor));
|
struct roots_cursor *cursor = calloc(1, sizeof(struct roots_cursor));
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
#define _POSIX_C_SOURCE 199309L
|
#define _POSIX_C_SOURCE 199309L
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <time.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
#include <wlr/config.h>
|
#include <wlr/config.h>
|
||||||
#include <wlr/types/wlr_box.h>
|
#include <wlr/types/wlr_box.h>
|
||||||
#include <wlr/types/wlr_compositor.h>
|
#include <wlr/types/wlr_compositor.h>
|
||||||
#include <wlr/types/wlr_cursor.h>
|
#include <wlr/types/wlr_cursor.h>
|
||||||
#include <wlr/types/wlr_gamma_control.h>
|
#include <wlr/types/wlr_gamma_control.h>
|
||||||
#include <wlr/types/wlr_idle.h>
|
#include <wlr/types/wlr_idle.h>
|
||||||
|
#include <wlr/types/wlr_output_layout.h>
|
||||||
#include <wlr/types/wlr_primary_selection.h>
|
#include <wlr/types/wlr_primary_selection.h>
|
||||||
#include <wlr/types/wlr_server_decoration.h>
|
#include <wlr/types/wlr_server_decoration.h>
|
||||||
#include <wlr/types/wlr_output_layout.h>
|
|
||||||
#include <wlr/types/wlr_wl_shell.h>
|
#include <wlr/types/wlr_wl_shell.h>
|
||||||
#include <wlr/types/wlr_xcursor_manager.h>
|
#include <wlr/types/wlr_xcursor_manager.h>
|
||||||
#include <wlr/types/wlr_xdg_shell_v6.h>
|
#include <wlr/types/wlr_xdg_shell_v6.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "rootston/server.h"
|
|
||||||
#include "rootston/seat.h"
|
#include "rootston/seat.h"
|
||||||
#include "rootston/xcursor.h"
|
#include "rootston/server.h"
|
||||||
#include "rootston/view.h"
|
#include "rootston/view.h"
|
||||||
|
#include "rootston/xcursor.h"
|
||||||
|
|
||||||
void view_get_box(const struct roots_view *view, struct wlr_box *box) {
|
void view_get_box(const struct roots_view *view, struct wlr_box *box) {
|
||||||
box->x = view->x;
|
box->x = view->x;
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
|
#include <wlr/backend/libinput.h>
|
||||||
#include <wlr/types/wlr_cursor.h>
|
#include <wlr/types/wlr_cursor.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include <wlr/xcursor.h>
|
#include <wlr/xcursor.h>
|
||||||
#include <wlr/xwayland.h>
|
#include <wlr/xwayland.h>
|
||||||
#include <wlr/backend/libinput.h>
|
|
||||||
#include "rootston/server.h"
|
|
||||||
#include "rootston/config.h"
|
#include "rootston/config.h"
|
||||||
#include "rootston/input.h"
|
#include "rootston/input.h"
|
||||||
#include "rootston/keyboard.h"
|
#include "rootston/keyboard.h"
|
||||||
#include "rootston/seat.h"
|
#include "rootston/seat.h"
|
||||||
|
#include "rootston/server.h"
|
||||||
|
|
||||||
static const char *device_type(enum wlr_input_device_type type) {
|
static const char *device_type(enum wlr_input_device_type type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdbool.h>
|
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/types/wlr_input_device.h>
|
|
||||||
#include <wlr/types/wlr_pointer.h>
|
|
||||||
#include <wlr/backend/multi.h>
|
#include <wlr/backend/multi.h>
|
||||||
#include <wlr/backend/session.h>
|
#include <wlr/backend/session.h>
|
||||||
|
#include <wlr/types/wlr_input_device.h>
|
||||||
|
#include <wlr/types/wlr_pointer.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include <xkbcommon/xkbcommon.h>
|
#include <xkbcommon/xkbcommon.h>
|
||||||
#include "rootston/input.h"
|
#include "rootston/input.h"
|
||||||
#include "rootston/seat.h"
|
|
||||||
#include "rootston/keyboard.h"
|
#include "rootston/keyboard.h"
|
||||||
|
#include "rootston/seat.h"
|
||||||
|
|
||||||
static ssize_t pressed_keysyms_index(xkb_keysym_t *pressed_keysyms,
|
static ssize_t pressed_keysyms_index(xkb_keysym_t *pressed_keysyms,
|
||||||
xkb_keysym_t keysym) {
|
xkb_keysym_t keysym) {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/config.h>
|
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
#include <wlr/backend/headless.h>
|
#include <wlr/backend/headless.h>
|
||||||
#include <wlr/backend/multi.h>
|
#include <wlr/backend/multi.h>
|
||||||
|
#include <wlr/config.h>
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "rootston/config.h"
|
#include "rootston/config.h"
|
||||||
|
|
|
@ -8,8 +8,8 @@ sources = [
|
||||||
'main.c',
|
'main.c',
|
||||||
'output.c',
|
'output.c',
|
||||||
'seat.c',
|
'seat.c',
|
||||||
'xdg_shell_v6.c',
|
|
||||||
'wl_shell.c',
|
'wl_shell.c',
|
||||||
|
'xdg_shell_v6.c',
|
||||||
]
|
]
|
||||||
if get_option('enable_xwayland')
|
if get_option('enable_xwayland')
|
||||||
sources += ['xwayland.c']
|
sources += ['xwayland.c']
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include <time.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <wlr/types/wlr_output_layout.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <wlr/render/matrix.h>
|
||||||
#include <wlr/types/wlr_compositor.h>
|
#include <wlr/types/wlr_compositor.h>
|
||||||
|
#include <wlr/types/wlr_output_layout.h>
|
||||||
#include <wlr/types/wlr_wl_shell.h>
|
#include <wlr/types/wlr_wl_shell.h>
|
||||||
#include <wlr/types/wlr_xdg_shell_v6.h>
|
#include <wlr/types/wlr_xdg_shell_v6.h>
|
||||||
#include <wlr/render/matrix.h>
|
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include <wlr/util/region.h>
|
#include <wlr/util/region.h>
|
||||||
#include "rootston/server.h"
|
|
||||||
#include "rootston/output.h"
|
|
||||||
#include "rootston/config.h"
|
#include "rootston/config.h"
|
||||||
|
#include "rootston/output.h"
|
||||||
|
#include "rootston/server.h"
|
||||||
|
|
||||||
typedef void (*surface_iterator_func_t)(struct wlr_surface *surface,
|
typedef void (*surface_iterator_func_t)(struct wlr_surface *surface,
|
||||||
double lx, double ly, float rotation, void *data);
|
double lx, double ly, float rotation, void *data);
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/config.h>
|
#include <wlr/config.h>
|
||||||
|
#include <wlr/types/wlr_idle.h>
|
||||||
#include <wlr/types/wlr_xcursor_manager.h>
|
#include <wlr/types/wlr_xcursor_manager.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include <wlr/types/wlr_idle.h>
|
|
||||||
#include "rootston/xcursor.h"
|
|
||||||
#include "rootston/input.h"
|
|
||||||
#include "rootston/seat.h"
|
|
||||||
#include "rootston/keyboard.h"
|
|
||||||
#include "rootston/cursor.h"
|
#include "rootston/cursor.h"
|
||||||
|
#include "rootston/input.h"
|
||||||
|
#include "rootston/keyboard.h"
|
||||||
|
#include "rootston/seat.h"
|
||||||
|
#include "rootston/xcursor.h"
|
||||||
|
|
||||||
static void handle_keyboard_key(struct wl_listener *listener, void *data) {
|
static void handle_keyboard_key(struct wl_listener *listener, void *data) {
|
||||||
struct roots_keyboard *keyboard =
|
struct roots_keyboard *keyboard =
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue