diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-02 14:39:11 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-02 14:39:11 +0100 |
| commit | ddc213d91c28e5f0729a7f397e88104baa7024bc (patch) | |
| tree | de22a273db274a8c47cbd4c02db29427b32d3354 /src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | |
| parent | 96fd8a5f7a78730465a3fc3dcdab90b508bbab43 (diff) | |
Add preliminary support of Wayland under macOS
Wayland under macOS is WIP at
https://github.com/owl-compositor/owl
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 3cd02dcf6..88a199e50 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1056,8 +1056,10 @@ static void registry_handle_global(void *user_data, struct wl_registry *wl_regis } else if (strcmp(interface, "org_kde_plasma_shell") == 0) { Fl_Wayland_Screen_Driver::compositor = Fl_Wayland_Screen_Driver::KDE; //fprintf(stderr, "Running the KDE compositor\n"); - } - else if (strcmp(interface, zwp_text_input_manager_v3_interface.name) == 0) { + } else if (strncmp(interface, "zowl_mach_ipc", 13) == 0) { + Fl_Wayland_Screen_Driver::compositor = Fl_Wayland_Screen_Driver::OWL; + //fprintf(stderr, "Running the Owl compositor\n"); + } else if (strcmp(interface, zwp_text_input_manager_v3_interface.name) == 0) { scr_driver->text_input_base = (struct zwp_text_input_manager_v3 *) wl_registry_bind(wl_registry, id, &zwp_text_input_manager_v3_interface, 1); //printf("scr_driver->text_input_base=%p version=%d\n",scr_driver->text_input_base,version); } |
