Support protocols made easy by wlr_scene
This commit is contained in:
parent
abe883a6f3
commit
68dcc824bb
2 changed files with 7 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
||||||
#include <wlr/types/wlr_layer_shell_v1.h>
|
#include <wlr/types/wlr_layer_shell_v1.h>
|
||||||
#include <wlr/types/wlr_output_layout.h>
|
#include <wlr/types/wlr_output_layout.h>
|
||||||
|
#include <wlr/types/wlr_presentation_time.h>
|
||||||
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
||||||
#include <wlr/types/wlr_xdg_output_v1.h>
|
#include <wlr/types/wlr_xdg_output_v1.h>
|
||||||
#include <wlr/types/wlr_xdg_shell.h>
|
#include <wlr/types/wlr_xdg_shell.h>
|
||||||
|
@ -67,6 +68,10 @@ desktop_init(struct kiwmi_desktop *desktop)
|
||||||
|
|
||||||
wlr_scene_attach_output_layout(desktop->scene, desktop->output_layout);
|
wlr_scene_attach_output_layout(desktop->scene, desktop->output_layout);
|
||||||
|
|
||||||
|
struct wlr_presentation *presentation =
|
||||||
|
wlr_presentation_create(server->wl_display, server->backend);
|
||||||
|
wlr_scene_set_presentation(desktop->scene, presentation);
|
||||||
|
|
||||||
desktop->xdg_shell = wlr_xdg_shell_create(server->wl_display);
|
desktop->xdg_shell = wlr_xdg_shell_create(server->wl_display);
|
||||||
desktop->xdg_shell_new_surface.notify = xdg_shell_new_surface_notify;
|
desktop->xdg_shell_new_surface.notify = xdg_shell_new_surface_notify;
|
||||||
wl_signal_add(
|
wl_signal_add(
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include <wlr/types/wlr_gamma_control_v1.h>
|
#include <wlr/types/wlr_gamma_control_v1.h>
|
||||||
#include <wlr/types/wlr_primary_selection_v1.h>
|
#include <wlr/types/wlr_primary_selection_v1.h>
|
||||||
#include <wlr/types/wlr_screencopy_v1.h>
|
#include <wlr/types/wlr_screencopy_v1.h>
|
||||||
|
#include <wlr/types/wlr_viewporter.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
|
|
||||||
#include "luak/luak.h"
|
#include "luak/luak.h"
|
||||||
|
@ -67,6 +68,7 @@ server_init(struct kiwmi_server *server, char *config_path)
|
||||||
wlr_data_control_manager_v1_create(server->wl_display);
|
wlr_data_control_manager_v1_create(server->wl_display);
|
||||||
wlr_gamma_control_manager_v1_create(server->wl_display);
|
wlr_gamma_control_manager_v1_create(server->wl_display);
|
||||||
wlr_primary_selection_v1_device_manager_create(server->wl_display);
|
wlr_primary_selection_v1_device_manager_create(server->wl_display);
|
||||||
|
wlr_viewporter_create(server->wl_display);
|
||||||
|
|
||||||
server->socket = wl_display_add_socket_auto(server->wl_display);
|
server->socket = wl_display_add_socket_auto(server->wl_display);
|
||||||
if (!server->socket) {
|
if (!server->socket) {
|
||||||
|
|
Loading…
Reference in a new issue