Commit Graph

4699 Commits

Author SHA1 Message Date
GamesTrap
d7cc6477ae
Win32 C90 Fixes 2023-04-05 21:19:37 +02:00
GamesTrap
76951dbbf3
Added README.md entry 2023-04-05 20:49:04 +02:00
GamesTrap
7b9df90be2
Merge remote-tracking branch 'origin/taskbar-progress' into application-badge 2023-04-05 19:58:13 +02:00
GamesTrap
dacb814e8b
Merge upstream/master into origin/taskbar-progress 2023-04-05 19:57:47 +02:00
GamesTrap
aec406ec1f
Merge upstream/master into origin/application-badge 2023-04-05 19:55:52 +02:00
Jan Schürkamp
a734a8bbdb
Merge(#4): Added documentation
Add documentation for glfwSetWindowBadge and glfwSetWindowBadgeString
2023-04-04 22:05:07 +02:00
ws909
1f13c042b2 Add documentation for glfwSetWindowBadge and glfwSetWindowBadgeString 2023-04-03 09:06:22 +02:00
Camilla Löwy
3fa2360720 Update changelog
Related to #2198
2023-03-31 16:18:46 +02:00
TheBrokenRail
0b94e1b29b Wayland: Fix detection of joysticks after init
Closes #2198
2023-03-31 16:18:46 +02:00
Camilla Löwy
f27daa34ad Fix glfwinfo output of Vulkan layer spec version 2023-03-31 16:18:46 +02:00
Camilla Löwy
6f2d7064be Make glfwinfo try Vulkan even if GL/GLES fails 2023-03-31 16:18:46 +02:00
Camilla Löwy
9cce2896ee Null: Add (fictional) scancodes
This replaces the previous scheme where scancodes were equal to keycodes
(an implausible and potentially misleading situation) with a set of
scancodes invented purely for the null platform.
2023-03-31 15:56:01 +02:00
Camilla Löwy
23ab972724 Fix unquoted CMake variable references
The previous version did not handle paths containing whitespace
correctly.

Related to #2256
2023-03-31 15:33:15 +02:00
Camilla Löwy
fbdb53b9ca Wayland: Add initial support for libdecor
This is partly based on the implementation of libdecor support in
PR #1693 by @ christianrauch.

Where available, the libdecor library is loaded at init and becomes the
preferred method for window decorations.  On compositors that support
XDG decorations, libdecor in turn uses those.  If not, libdecor has
a plug-in archtecture and may load additional libraries to either use
compositor-specific decorations or draw its own.

If necessary, support for libdecor can be disabled with the
GLFW_WAYLAND_LIBDECOR init hint.  This is mostly in case some part of
the dynamic loading or duplication of header material added here turns
out to cause problems with future versions of libdecor-0.so.0.

Fixes #1639
Closes #1693
Related to #1725
2023-03-27 22:03:36 +02:00
Camilla Löwy
cd466cf9fd Wayland: Simplify decoration side detection
This commit simplifies the detection of which element of a fallback
decorated window the pointer has entered.  Instead of looping through
the list of windows, the user pointer of fallback decoration surfaces is
set to the GLFW window object.
2023-03-27 22:03:36 +02:00
Camilla Löwy
39f0e86228 Wayland: Clean up enum value names 2023-03-27 22:03:36 +02:00
Camilla Löwy
efa9297a41 Wayland: Simplify per-window ouput scales tracking
This replaces (one case of) manual management of weak links between
windows and monitors, both objects with complex life times, with
wl_object pointers used as opaque key values.
2023-03-27 22:03:36 +02:00
Camilla Löwy
91c837ace5 Wayland: Use tags to verify proxy ownership
This is in preparation for adding support for libdecor, which creates
its own proxies on our display.  It will likely also be helpful to some
people using native access on Wayland.

This is partly based on the implementation of libdecor support in
PR #1693 by @ christianrauch.
2023-03-27 22:03:36 +02:00
Camilla Löwy
6d9083af03 Wayland: Remove duplicate setting of user data
The surface user data is already set by wl_surface_add_listener.
2023-03-27 22:03:36 +02:00
Camilla Löwy
4cf510511c Wayland: Stop manually tracking interface versions
This is already tracked by the proxies we care about.
2023-03-27 22:03:36 +02:00
Camilla Löwy
c1a79c1c41 Wayland: Emit size event when setting aspect ratio 2023-03-27 22:03:36 +02:00
Camilla Löwy
8397b39afa Wayland: Fix some missing window refresh events 2023-03-27 22:03:36 +02:00
Camilla Löwy
735fc101f5 Wayland: Fix decorations not always being created
If a window was initially fullscreen then it would not get an XDG
decoration object.  If the window was later switched to windowed mode it
would then get fallback decorations instead of XDG ones.
2023-03-27 22:03:36 +02:00
Camilla Löwy
228428fa4f Wayland: Simplify test for fallback decorations
The GLFW fallback decorations only exist when the window is visible,
decorated and in windowed mode.
2023-03-27 22:03:36 +02:00
Camilla Löwy
82e77dbff4 Wayland: Pick more plausible default cursor size
This is not intended as a replacement for actually querying the desktop
for the correct size, but it appears to be a better fallback value.
2023-03-27 22:03:36 +02:00
GamesTrap
3ed4a360fd
Merge origin/taskbar-progress into origin/application-badge 2023-03-21 13:36:38 +01:00
GamesTrap
528dcc45f8
Moved credits from win32_window.c to CONTRIBUTORS.md 2023-03-14 14:54:00 +01:00
GamesTrap
de81fae268
Added GLFW_WIN32_GENERIC_BADGE window hint 2023-03-08 21:22:10 +01:00
GamesTrap
589e6b78d9
Added DBus pointer checks 2023-03-08 14:47:40 +01:00
Andreas
ef4d722b76
Merge(#3): Finalized progress API 2023-03-08 14:10:00 +01:00
GamesTrap
367a50e82d
Renamed badge API functions 2023-03-08 01:00:21 +01:00
GamesTrap
121fe73e93
Added GenerateGenericBadgeIcon() 2023-03-07 02:18:16 +01:00
GamesTrap
13f1b96386
Better error handling for GenerateTextBadgeIcon() 2023-03-07 01:52:15 +01:00
GamesTrap
aa0e9f8aa7
Changed error message in _glfwSetWindowTaskbarBadgeStringWin32() 2023-03-07 00:20:22 +01:00
GamesTrap
444d7de752
Added transparency to GenerateBadgeIcon() 2023-03-07 00:15:41 +01:00
GamesTrap
5ca07929a8
Added alt text to _glfwSetWindowTaskbarBadgeWin32() 2023-03-06 16:48:01 +01:00
GamesTrap
e637d78303
Adjusted GenerateBadgeIcon() 2023-03-06 16:46:41 +01:00
Jan Schürkamp
2caed8f826
Merge(#2): Updates the application badge API and implementations 2023-03-06 15:48:38 +01:00
ws909
0d74163c21 How exactly did I manage to remove that? Well, now it's back! 2023-03-06 13:42:24 +01:00
ws909
e84ade32ac Fix remaining incorrect function signatures for SetWindowTaskbarBadgeString 2023-03-06 13:35:50 +01:00
ws909
96492508b0 Fix parameter type of setWindowTaskbarBadgeString in internal.h 2023-03-06 13:32:58 +01:00
ws909
cf2d81d116 Add glfwSetWindowTaskbarBadgeString
Change from GLFW_DONT_CARE to 0 for disabling the badge for glfwSetWindowTaskbarBadge
2023-03-06 13:23:55 +01:00
GamesTrap
a1d851cd3c
Raised count limit to 999 and added better text rendering 2023-03-05 21:37:40 +01:00
GamesTrap
e83ffc1bdb
Added ellipsis 2023-03-05 02:11:26 +01:00
GamesTrap
2009465999
Centered badge count when smaller than 10 2023-03-05 02:01:04 +01:00
GamesTrap
5e8c055004
glfwSetWindowsTaskbarBadge() Added Linux implementation 2023-03-05 00:16:39 +01:00
GamesTrap
582f7ff70b
Win32: Implemented run-time badge generator 2023-03-04 23:05:27 +01:00
GamesTrap
7793239932
Fixed X11 function signature 2023-03-04 21:19:25 +01:00
GamesTrap
ec03ae4d05
Added glfwSetWindowTaskbarBadge() example to tests/window 2023-03-04 21:08:25 +01:00
GamesTrap
94fb107c24
Added boilerplate glfwSetWindowTaskbarBadge() 2023-03-04 21:08:05 +01:00