Fix name of static member variable Fl_Wayland_Screen_Driver::wl_display
and add explanatory comment.
This commit is contained in:
parent
89454508a2
commit
60440632ee
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user