mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-12 13:29:45 -05:00
Merge pull request #487 from emersion/xwm-selection
xwm clipboard sync, 2nd edition
This commit is contained in:
commit
10c72f4bf6
10 changed files with 780 additions and 9 deletions
|
|
@ -27,7 +27,7 @@ static const char *device_type(enum wlr_input_device_type type) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static struct roots_seat *input_get_seat(struct roots_input *input, char *name) {
|
||||
struct roots_seat *input_get_seat(struct roots_input *input, char *name) {
|
||||
struct roots_seat *seat = NULL;
|
||||
wl_list_for_each(seat, &input->seats, link) {
|
||||
if (strcmp(seat->seat->name, name) == 0) {
|
||||
|
|
|
|||
|
|
@ -60,6 +60,9 @@ int main(int argc, char **argv) {
|
|||
ready(NULL, NULL);
|
||||
#else
|
||||
if (server.desktop->xwayland != NULL) {
|
||||
struct roots_seat *xwayland_seat =
|
||||
input_get_seat(server.input, ROOTS_CONFIG_DEFAULT_SEAT_NAME);
|
||||
wlr_xwayland_set_seat(server.desktop->xwayland, xwayland_seat->seat);
|
||||
wl_signal_add(&server.desktop->xwayland->events.ready,
|
||||
&server.desktop->xwayland_ready);
|
||||
server.desktop->xwayland_ready.notify = ready;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue