ManoloFLTK
1d0e63ea78
Improve member function Fl_Wayland_Screen_Driver::surface_to_window()
...
Rename it to Fl_Wayland_Window_Driver::surface_to_window() and
avoid loop over all mapped FLTK windows that used to be performed.
2023-04-03 15:25:19 +02:00
ManoloFLTK
cebf6b5368
Wayland: update comment about differences between compositors
...
Mutter goes back to what it did in earlier versions.
Fortunately, FLTK can handle this change.
2023-04-03 11:20:26 +02:00
ManoloFLTK
7e08bd7e26
Wayland + Weston: fix focus loss after click on titlebar
2023-04-03 08:21:07 +02:00
ManoloFLTK
e239d00cad
Fix "Wayland: non-resizable windows are positioned in the wrong place" ( #711 )
2023-04-02 18:05:36 +02:00
ManoloFLTK
70252b0c1a
Improve Wayland support of Fl::event_key(int)
...
Key pressed when the Wayland window acquires focus are now detected.
2023-03-29 12:53:39 +02:00
ManoloFLTK
a681aa803c
Complete explanatory comment about Weston compositor
2023-03-29 09:30:30 +02:00
ManoloFLTK
43c4bd1031
Wayland: improve switching window to/from fullscreen mode
...
The call to Fl_Window::fullscreen() can be made before or after the window is show()'n
Tested compositors: Mutter, Plasma, Weston.
2023-03-29 08:49:14 +02:00
ManoloFLTK
5e101bc00c
Wayland + Plasma: fix switching fullscreen mode for borderless window
2023-03-28 14:39:11 +02:00
ManoloFLTK
43a9c70d8c
Wayland: fix regression in test/fullscreen
...
Commit e918d94 to fix issue #708 broke turning back from fullscreen state
for borderless window, visible in test/fullscreen.
2023-03-28 05:10:52 +02:00
Albrecht Schlosser
5a4e7caa54
Windows: use SHGetFolderPathW() for application data folder ( #710 )
...
See GitHub issue #710 : "Fl_Preferences not stored on Windows 10"
Summary: don't use the undocumented registry key "Shell Folders",
use function SHGetFolderPathW() instead although this function is
meanwhile deprecated (but available since Windows XP).
Note: tested with 32-bit build running on Windows XP (works).
2023-03-27 19:51:09 +02:00
ManoloFLTK
6aa6866d80
Wayland: move "struct seat" inside class Fl_Wayland_Screen_Driver
2023-03-27 11:31:26 +02:00
ManoloFLTK
31b5d5b562
Complete Fl_Wayland_Screen_Driver::close_display()
2023-03-27 11:06:17 +02:00
ManoloFLTK
cce40848ce
Improve methods Fl_Wayland_Screen_Driver::en/disable_im()
2023-03-26 17:38:44 +02:00
ManoloFLTK
a242e4a65d
Implement methods Fl_Wayland_Screen_Driver::en/disable_im()
2023-03-26 11:04:01 +02:00
Albrecht Schlosser
16338ff4e4
Wayland: remove compilation warning ( #706 ) - cont'd
...
The previous attempt to fix this issue in commit
dcb4c39956 missed to remove the keyword
'struct' in the offending statement. This new commit actually removes
the compiler warning.
2023-03-25 16:40:52 +01:00
ManoloFLTK
40537ae335
Wayland: slightly simpler writing of function wl_keyboard_key()
2023-03-25 15:52:03 +01:00
ManoloFLTK
9aa62f4492
Add Fl_Cairo_Graphics_Driver::focus_rect() override
...
This allows to bypass what looks like a Cairo bug:
FLTK_SCALING_FACTOR=1.7 bin/test/tabs
click on tab2
---> crash
But no crash with other scaling factor values (e.g., 1.8).
2023-03-25 15:31:30 +01:00
ManoloFLTK
9d7e680925
Wayland: Fl::get_key(c) for lower case letters different behavior from X11 ( #404 )
2023-03-25 14:51:57 +01:00
ManoloFLTK
9f9e584919
Wayland Fl_Copy_Surface and Fl::copy() issues ( #707 ) - cont'd
2023-03-24 16:56:25 +01:00
ManoloFLTK
e918d94b67
Fix: Wayland backend draws everything two or three times ( #708 )
2023-03-24 15:34:35 +01:00
ManoloFLTK
dcb4c39956
Wayland: remove compilation warning ( #706 )
...
drivers/Wayland/Fl_Wayland_Window_Driver.cxx:1515:47: warning: declaration ‘struct wld_window::custom_cursor’ does not declare anything
2023-03-23 18:42:02 +01:00
ManoloFLTK
b98aa7bee6
Remove extraneous Wayland-related comment from Windows code
2023-03-22 21:05:28 +01:00
ManoloFLTK
41c94c4d87
Wayland: attempt to improve registry_handle_global_remove()
...
This function still needs to be tested on a true multi-display Unix box
2023-03-20 10:39:55 +01:00
ManoloFLTK
ad3ead111a
Simulate one display for OWL Wayland compositor
2023-03-20 09:57:36 +01:00
Matthias Melcher
f9004352b4
Fix gl_rect and OGL::fl_point #688
2023-03-18 20:14:39 +01:00
ManoloFLTK
a9fb6a979f
Rename bool variable for better clarity
2023-03-16 10:41:54 +01:00
ManoloFLTK
0eb6a0e193
Fix Fl_Wayland_Screen_Driver::get_mouse() for scale factor effect
2023-03-14 16:59:29 +01:00
ManoloFLTK
add43cd3fc
Wayland: add support for multiple high or low DPI displays - cont'd
2023-03-14 11:50:44 +01:00
ManoloFLTK
16448d5ba8
Wayland: improve cursor_surface_enter()
2023-03-14 08:09:39 +01:00
ManoloFLTK
8aafe6cf69
Fix Fl_Wayland_Window_Driver::set_cursor_4args()
2023-03-13 15:31:12 +01:00
ManoloFLTK
9980dc6fa1
Remove unused variable
2023-03-13 12:31:25 +01:00
ManoloFLTK
eeb9267e6e
Wayland: add support for multiple high or low DPI displays
2023-03-13 10:38:28 +01:00
ManoloFLTK
73a2ca5261
Fix c'tor of Fl_Wayland_Image_Surface_Driver for HighDPI displays
2023-03-10 13:17:53 +01:00
ManoloFLTK
2ee688dae9
Improve member function Fl_Wayland_Gl_Window_Driver::make_current_before()
2023-03-10 10:17:20 +01:00
Albrecht Schlosser
0f3b5ded8f
Fix dependencies, typos, trailing whitespace, and formatting
...
No code changes.
2023-03-09 18:28:37 +01:00
ManoloFLTK
2527632054
Fix gl_overlay under Wayland
2023-03-09 17:41:37 +01:00
ManoloFLTK
e32d4bcab9
Fix Fl_Wayland_Screen_Driver::x() and friends
2023-03-09 16:56:57 +01:00
ManoloFLTK
e409b01ba6
Remove useless repetition from array dead_keys[]
2023-03-08 12:19:09 +01:00
ManoloFLTK
b14172401d
Fix: Shift-Tab not "reverse navigating" on some platforms ( #696 )
2023-03-08 09:04:55 +01:00
ManoloFLTK
f89a9f9efc
DnD of filenames: make Wayland behave as Windows and macOS
...
and also add more detailed documentation of platform-specific behaviors.
2023-03-06 11:08:04 +01:00
ManoloFLTK
a52811567e
Wayland: improve DnD of filenames to allow space-containing names
2023-03-05 11:54:55 +01:00
ManoloFLTK
5ae92f034a
Simpler use of member variable wl_registry in class Fl_Wayland_Screen_Driver
2023-03-04 08:34:10 +01:00
ManoloFLTK
b438d448fb
Remove unused variable declaration + fix in wayland.dox
2023-03-03 18:00:44 +01:00
ManoloFLTK
77c6877374
Reorder members of class Fl_Wayland_Screen_Driver
2023-03-03 16:47:49 +01:00
ManoloFLTK
37764fcd28
Improve Fl_Wayland_Window_Driver::wld_scale()
2023-03-03 09:28:12 +01:00
ManoloFLTK
86c238c000
Add Fl_Wayland_Window_Driver::wld_scale() member function
2023-03-02 11:36:26 +01:00
ManoloFLTK
147bda5471
Rename fd_callback() to wayland_socket_callback()
2023-02-19 08:53:00 +01:00
ManoloFLTK
2af43ef4c8
Remove special FL_CURSOR_NONE implementation in Wayland
2023-02-17 16:24:41 +01:00
ManoloFLTK
e84a1730ad
Wayland: improve and document support of FL_CURSOR_NONE
2023-02-17 09:52:34 +01:00
ManoloFLTK
f6b87790cc
Wayland: new struct wl_cursor *custom_cursor member variable
2023-02-15 22:52:20 +01:00