Fix name of static member variable Fl_Wayland_Screen_Driver::wl_display

and add explanatory comment.
This commit is contained in:
ManoloFLTK 2023-05-20 06:05:34 +02:00
parent 89454508a2
commit 60440632ee
2 changed files with 2 additions and 1 deletions

View File

@ -1182,7 +1182,7 @@ static void sync_done(void *data, struct wl_callback *cb, uint32_t time) {
Fl_Wayland_Screen_Driver *scr_driver = (Fl_Wayland_Screen_Driver*)Fl::screen_driver();
Fl_Wayland_Screen_Driver::output *output;
wl_list_for_each(output, &scr_driver->outputs, link) { // each screen of the system
while (!output->done) wl_display_dispatch(scr_driver->wl_display);
while (!output->done) wl_display_dispatch(Fl_Wayland_Screen_Driver::wl_display);
}
}

View File

@ -957,6 +957,7 @@ static void popup_configure(void *data, struct xdg_popup *xdg_popup, int32_t x,
int HH;
Fl_Window_Driver::menu_parent(&HH);
if (window->fl_win->h() > HH && y != win_pos->y) { // A menu taller than the display
// Under KDE, height is set to the display height or less: we ignore that.
window->state = (y - win_pos->y);
// make selected item visible, if there's one
Fl_Window_Driver::scroll_to_selected_item(window->fl_win);