summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
AgeCommit message (Collapse)Author
2023-01-09Virtual member Fl_Window_Driver::makeWindow() now returns voidManoloFLTK
2023-01-09Wayland: Possibly better way to complete popup constructionManoloFLTK
2023-01-08Wayland: Improved implementation of menu windowsManoloFLTK
2022-12-30Wayland+FreeBSD: fix "test/mandelbrot crashes on rightclick" (#618)ManoloFLTK
2022-12-27Wayland: Dropdown menu moves when navigated (#613) - cont'dManoloFLTK
Menu windows containing sub-menus are now processed differently.
2022-12-26Wayland: Fix for "Dropdown menu moves when navigated" (#613)ManoloFLTK
This commit uses Wayland popup positionning methods to handle common menu windows and prevents them from expanding below display bottom or above top. The previous algorithm remains in place for menu windows higher than the display height. Further changes for these big menus may come later.
2022-12-24Fix for "Fatal error while communicating with the Wayland server" (#610)ManoloFLTK
This commit should fix: once the mouse leaves the app window area and returns back to it (app loses focus and gets it again) the crash happens.
2022-12-09Add new Wayland-specific fl_wl_compositor() functionManoloFLTK
2022-12-08Simplify prototype of Fl_Wayland_Graphics_Driver::buffer_commit() memberManoloFLTK
2022-12-07Wayland: fix progressive drawing as in test/mandelbrotManoloFLTK
2022-11-20Replace #if FLTK_USE_X11 by #ifdef FLTK_USE_X11ManoloFLTK
2022-11-07Create class Fl_Unix_Screen_Driver used by X11 and Wayland platformsManoloFLTK
2022-11-05Fix two rare potential bugs (NULL pointer dereferencing)Albrecht Schlosser
Both bugs can happen if a widget doesn't have an associated window() or in similar situations. These fixes returns NULL to prevent crashes. Bugs observed in special test scenarios, not real-life programs.
2022-11-05Wayland: simpler handling of the z-order of subwindowsManoloFLTK
It's not necessary to call wl_subsurface_place_above() because "A new sub-surface is initially added as the top-most in the stack of its siblings and parent."
2022-11-01Fix trailing whitespaceAlbrecht Schlosser
2022-09-26Replace all calls to sprintf() by calls to snprintf().ManoloFLTK
2022-09-22Wayland: fix window closing with titlelbar close button.ManoloFLTK
2022-09-11Fix fl_read_image() under hybrid Wayland/X11 platform.ManoloFLTK
Function fl_read_image() obliges to keep a minimal use of global variable fl_window also under the Wayland platform, even if its type (Window) makes little sense for the hybrid library because it has its X11 value (given by X11/X.h) which is not meaningful for the Wayland leg of the hybrid platform. Virtual member function Fl_Surface_Device::as_image_surface() becomes useless.
2022-09-11Add needed variable for Wayland-only platform.ManoloFLTK
2022-09-09Wayland: support going from borderless to bordered window.ManoloFLTK
2022-09-09Wayland: fix handling of fast calls to Fl_Window::flush().ManoloFLTK
Also fix scaling of borderless windows.
2022-09-08Wayland: remove memory leak from missing wl_callback_destroy() call.ManoloFLTK
This hopefully corresponds to the memory leak mentioned in fltk.general named "FLTK and Wayland".
2022-09-07Improve support of child windows that may leak outside their parent window.ManoloFLTK
1) add Wayland code that prevent subwindows from leaking outside their parent. This does not cover GL subwindows. 2) add macOS code that prevent GL subwindows from leaking outside their parent. This fixes issue #494 for the macOS platform. N.B.: Wayland GL subwindows are not prevented from leaking because no solution that would not require any change in client applications was found. Code that would cover Wayland GL subwindows but would require client applications to always use the FL_ALPHA flag is included in this commit in commented out form.
2022-09-03Fix for issue #493ManoloFLTK
2022-09-01Simplify Fl_Window_Driver::screen_num() member functions.ManoloFLTK
2022-08-29Make hybrid Wayland/X11 platform.ManoloFLTK
2022-08-23Wayland: Fix obscure problem when closing file dialog under recent OS versions.ManoloFLTK
The problem is that the app sometimes stops after closing a file dialog window. It results in fact from a bug in function draw_title_bar of libdecor-gtk.c that erroneously calls libdecor_frame_set_max_content_size(). This bug is being proposed to be fixed by a MR to libdecor. But moving the libdecor_frame_set_min/max_content_size() calls after the capability changes hides the bug, and the problem with file dialog doesn't show.
2022-08-20Add static Fl_Wayland_Window_Driver::gl_plugin() member function.ManoloFLTK
2022-08-15Remove useless Fl_Wayland_Window_Driver::show_with_args_begin/end().ManoloFLTK
2022-08-15Fix Fl_Wayland_Window_Driver::decoration_sizes().ManoloFLTK
2022-08-07Wayland platform: fix declaration of local variable 'scale'.ManoloFLTK
2022-08-07Wayland platform: move repeated code into ↵ManoloFLTK
Fl_Wayland_Graphics_Driver::buffer_commit().
2022-08-06Wayland: make sure wl_surface_frame() is followed by wl_surface_commit().ManoloFLTK
2022-08-06Wayland: fix regression from 50d26b0 in test/mandelbrot.ManoloFLTK
2022-07-27Fix for issue #471 for the Wayland platform.ManoloFLTK
2022-07-26Remove useless variables and preprocessor directives.ManoloFLTK
2022-07-04Wayland platform.: complete support of gl_start/gl_finish.ManoloFLTK
2022-06-12New member Fl_Cairo_Graphics_Driver::bitmap_to_pattern() to avoid code ↵ManoloFLTK
duplication.
2022-06-11Fix Fl_Wayland_Window_Driver::shape_bitmap_(Fl_Image*).ManoloFLTK
2022-06-11Remove useless code from Fl_Wayland_Window_Driver::{un}map()ManoloFLTK
That code was useless because map() and unmap() get only called for subwindows.
2022-05-17Weston support: handle click on titlebar.ManoloFLTK
2022-05-16Fix Fl_Wayland_Window_Driver::wait_for_expose() - still WIP.ManoloFLTK
2022-05-16Improve Fl_Wayland_Window_Driver::wait_for_expose().ManoloFLTK
2022-05-16Fix Fl_Wayland_Window_Driver::take_focus() required for recent Wayland versions.ManoloFLTK
2022-05-13Have FLTK follow the Wayland surface holding keyboard focus.ManoloFLTK
2022-05-10Slightly simplify Fl_Wayland_Window_Driver::use_border().ManoloFLTK
2022-05-10Remove typos.ManoloFLTK
2022-05-10Add missing closing parenthesis.ManoloFLTK
2022-05-10 Fix for issue #441: Some minor regressions with borderless+fullscreen ↵ManoloFLTK
(Wayland).
2022-05-09Cleaner declaration of public function fl_wl_cairo().ManoloFLTK