2019-03-17 19:04:52 +00:00
|
|
|
/* Copyright (c), Charlotte Meyer <dev@buffet.sh>
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KIWMI_DESKTOP_DESKTOP_H
|
|
|
|
#define KIWMI_DESKTOP_DESKTOP_H
|
|
|
|
|
|
|
|
#include <wayland-server.h>
|
|
|
|
#include <wlr/render/wlr_renderer.h>
|
|
|
|
|
|
|
|
struct kiwmi_desktop {
|
|
|
|
struct wlr_compositor *compositor;
|
2019-12-21 14:06:56 +00:00
|
|
|
struct wlr_xdg_shell *xdg_shell;
|
2019-03-17 19:04:52 +00:00
|
|
|
struct wlr_data_device_manager *data_device_manager;
|
|
|
|
struct wlr_output_layout *output_layout;
|
|
|
|
struct wl_list outputs; // struct kiwmi_output::link
|
2019-12-26 20:55:10 +00:00
|
|
|
struct kiwmi_view *focused_view;
|
|
|
|
struct wl_list views; // struct kiwmi_view::link
|
2019-03-17 19:04:52 +00:00
|
|
|
|
2019-12-21 14:06:56 +00:00
|
|
|
struct wl_listener xdg_shell_new_surface;
|
2019-03-17 19:04:52 +00:00
|
|
|
struct wl_listener new_output;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool desktop_init(struct kiwmi_desktop *desktop, struct wlr_renderer *renderer);
|
|
|
|
|
|
|
|
#endif /* KIWMI_DESKTOP_DESKTOP_H */
|