mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
Configure wlr_xdg_output_manager during init
This commit is contained in:
parent
b3a1cf1073
commit
94ecd0f0aa
|
@ -12,15 +12,17 @@
|
||||||
#include <wlr/types/wlr_layer_shell.h>
|
#include <wlr/types/wlr_layer_shell.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_wl_shell.h>
|
|
||||||
#include <wlr/types/wlr_xcursor_manager.h>
|
#include <wlr/types/wlr_xcursor_manager.h>
|
||||||
|
#include <wlr/types/wlr_xdg_output.h>
|
||||||
|
#include <wlr/types/wlr_wl_shell.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
// TODO WLR: make Xwayland optional
|
// TODO WLR: make Xwayland optional
|
||||||
#include <wlr/xwayland.h>
|
#include <wlr/xwayland.h>
|
||||||
#include "sway/commands.h"
|
#include "sway/commands.h"
|
||||||
#include "sway/config.h"
|
#include "sway/config.h"
|
||||||
#include "sway/server.h"
|
|
||||||
#include "sway/input/input-manager.h"
|
#include "sway/input/input-manager.h"
|
||||||
|
#include "sway/server.h"
|
||||||
|
#include "sway/tree/layout.h"
|
||||||
|
|
||||||
static void server_ready(struct wl_listener *listener, void *data) {
|
static void server_ready(struct wl_listener *listener, void *data) {
|
||||||
wlr_log(L_DEBUG, "Compositor is ready, executing cmds in queue");
|
wlr_log(L_DEBUG, "Compositor is ready, executing cmds in queue");
|
||||||
|
@ -61,6 +63,9 @@ bool server_init(struct sway_server *server) {
|
||||||
server->new_output.notify = handle_new_output;
|
server->new_output.notify = handle_new_output;
|
||||||
wl_signal_add(&server->backend->events.new_output, &server->new_output);
|
wl_signal_add(&server->backend->events.new_output, &server->new_output);
|
||||||
|
|
||||||
|
wlr_xdg_output_manager_create(server->wl_display,
|
||||||
|
root_container.sway_root->output_layout);
|
||||||
|
|
||||||
server->layer_shell = wlr_layer_shell_create(server->wl_display);
|
server->layer_shell = wlr_layer_shell_create(server->wl_display);
|
||||||
wl_signal_add(&server->layer_shell->events.new_surface,
|
wl_signal_add(&server->layer_shell->events.new_surface,
|
||||||
&server->layer_shell_surface);
|
&server->layer_shell_surface);
|
||||||
|
|
Loading…
Reference in a new issue