diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-05-31 07:05:18 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-05-31 07:05:18 +0200 |
| commit | c3217094db326dc20fe752cd33db8a5b9b01fa5d (patch) | |
| tree | 23c991651122fafcf98c34d410d888ec621763c0 /src/drivers/Wayland | |
| parent | 1abf1dd712d8721a09209cc493dde2d0bed024a4 (diff) | |
Slightly simplify Fl_Wayland_Window_Driver::makeWindow()
Diffstat (limited to 'src/drivers/Wayland')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index 52c5fd7eb..182f2f4a0 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1297,8 +1297,8 @@ void Fl_Wayland_Window_Driver::makeWindow() pWindow->redraw(); pWindow->handle(Fl::e_number = FL_SHOW); // get child windows to appear Fl::e_number = old_event; - // make sure each popup is mapped with its constraints before mapping next popup if (pWindow->menu_window() && !is_floatingtitle) { + // make sure each menu window is mapped with its constraints before mapping next popup pWindow->wait_for_expose(); if (previous_floatingtitle) { // a menuwindow with a menutitle //puts("previous_floatingtitle"); @@ -1333,7 +1333,6 @@ void Fl_Wayland_Window_Driver::makeWindow() win_pos->child_popup = NULL; xdg_popup_add_listener(xid->xdg_popup, &popup_listener, win_pos); wl_surface_commit(xid->wl_surface); - previous_floatingtitle->wait_for_expose(); struct win_positioner *parent_win_pos = (struct win_positioner*)xdg_popup_get_user_data(new_window->xdg_popup); parent_win_pos->child_popup = previous_floatingtitle; @@ -1538,7 +1537,7 @@ int Fl_Wayland_Window_Driver::set_cursor_4args(const Fl_RGB_Image *rgb, int hotx memcpy(data, rgb->array, ld * rgb->data_h()); Fl_RGB_Image *rgb2 = new Fl_RGB_Image(data, rgb->data_w(), rgb->data_h(), rgb->d(), rgb->ld()); rgb2->alloc_array = 1; - rgb2->scale(rgb->w(), rgb->h()); + rgb2->scale(rgb->w(), rgb->h(), 0, 1); rgb = rgb2; } // build a new wl_cursor and its image |
