mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 03:15:21 +08:00
Fix "FLTK apps broken under LabWC compositor" (#1231)
This commit is contained in:
@@ -1566,6 +1566,10 @@ static const struct xdg_surface_listener xdg_surface_listener = {
|
|||||||
static bool compute_full_and_maximized_areas(Fl_Wayland_Screen_Driver::output *output,
|
static bool compute_full_and_maximized_areas(Fl_Wayland_Screen_Driver::output *output,
|
||||||
int& Wfullscreen, int& Hfullscreen,
|
int& Wfullscreen, int& Hfullscreen,
|
||||||
int& Wworkarea, int& Hworkarea) {
|
int& Wworkarea, int& Hworkarea) {
|
||||||
|
if (Fl_Wayland_Screen_Driver::compositor == Fl_Wayland_Screen_Driver::unspecified) {
|
||||||
|
Wfullscreen = 0;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
bool found_workarea = false;
|
bool found_workarea = false;
|
||||||
Fl_Wayland_Screen_Driver *scr_driver = (Fl_Wayland_Screen_Driver*)Fl::screen_driver();
|
Fl_Wayland_Screen_Driver *scr_driver = (Fl_Wayland_Screen_Driver*)Fl::screen_driver();
|
||||||
struct wl_surface *wl_surface = wl_compositor_create_surface(scr_driver->wl_compositor);
|
struct wl_surface *wl_surface = wl_compositor_create_surface(scr_driver->wl_compositor);
|
||||||
|
|||||||
Reference in New Issue
Block a user