mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
xwm: get selection targets
This commit is contained in:
parent
1ada1b7f0b
commit
39e2ea8420
3 changed files with 69 additions and 6 deletions
|
|
@ -38,6 +38,12 @@ int main(int argc, char **argv) {
|
|||
server.desktop = desktop_create(&server, server.config);
|
||||
server.input = input_create(&server, server.config);
|
||||
|
||||
struct roots_seat *default_seat =
|
||||
roots_seat_create(server.input, ROOTS_CONFIG_DEFAULT_SEAT_NAME);
|
||||
if (server.desktop->xwayland) {
|
||||
server.desktop->xwayland->seat = default_seat->seat;
|
||||
}
|
||||
|
||||
const char *socket = wl_display_add_socket_auto(server.wl_display);
|
||||
if (!socket) {
|
||||
wlr_log_errno(L_ERROR, "Unable to open wayland socket");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue