diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-11-14 18:14:48 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-11-14 18:14:48 +0100 |
| commit | 4b315d190c41133786cc8b84282a7c102b31c14c (patch) | |
| tree | 7b5f265f0f1d6bb872fdec91bc58079748c6b676 /src/drivers | |
| parent | 6842a43a3170c6f7a852186d5688baebdac16e2c (diff) | |
Fix dependencies and whitespace issues
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx | 2 | ||||
| -rw-r--r-- | src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx index b130b5b8f..34e4971da 100644 --- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx @@ -95,7 +95,7 @@ void Fl_Wayland_Graphics_Driver::create_shm_buffer(Fl_Wayland_Graphics_Driver::w wl_list_init(&pool_data->buffers); wl_shm_pool_set_user_data(current_pool, pool_data); } - buffer->wl_buffer = wl_shm_pool_create_buffer(current_pool, chunk_offset, + buffer->wl_buffer = wl_shm_pool_create_buffer(current_pool, chunk_offset, width, height, stride, wld_format); wl_buffer_add_listener(buffer->wl_buffer, &buffer_listener, buffer); // add this buffer to head of list of current pool's buffers diff --git a/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx b/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx index f060542ea..973746f7c 100644 --- a/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx +++ b/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx @@ -673,7 +673,7 @@ void Fl_Wayland_Screen_Driver::copy(const char *stuff, int len, int clipboard, // we transmit the adequate value of index in fl_selection_buffer[index] wl_data_source_add_listener(seat->data_source, &data_source_listener, (void*)1); wl_data_source_offer(seat->data_source, wld_plain_text_clipboard); - wl_data_device_set_selection(seat->data_device, + wl_data_device_set_selection(seat->data_device, seat->data_source, seat->keyboard_enter_serial); //fprintf(stderr, "wl_data_device_set_selection len=%d to %d\n", len, clipboard); |
