Rename fd_callback() to wayland_socket_callback()

This commit is contained in:
ManoloFLTK 2023-02-19 08:53:00 +01:00
parent 51f08dfe1c
commit 147bda5471

View File

@ -1101,7 +1101,7 @@ static const struct wl_registry_listener registry_listener = {
};
static void fd_callback(int fd, struct wl_display *display) {
static void wayland_socket_callback(int fd, struct wl_display *display) {
struct pollfd fds = (struct pollfd) { fd, POLLIN, 0 };
do {
if (wl_display_dispatch(display) == -1) {
@ -1144,10 +1144,8 @@ void Fl_Wayland_Screen_Driver::open_display_platform() {
if (!has_xrgb) {
Fl::fatal("Error: no WL_SHM_FORMAT_ARGB8888 shm format\n");
}
/*if (compositor == Fl_Wayland_Screen_Driver::unspecified) {
Fl::warning("FLTK could not identify the type of the running Wayland compositor");
}*/
Fl::add_fd(wl_display_get_fd(wl_display), FL_READ, (Fl_FD_Handler)fd_callback, wl_display);
Fl::add_fd(wl_display_get_fd(wl_display), FL_READ, (Fl_FD_Handler)wayland_socket_callback,
wl_display);
fl_create_print_window();
}