Arjan Molenaar
f004f14b89
macos: fix in-app native shortcuts (again)
...
Popping an event of the queue in the IMContext handler
prevents it from being forwarded to the NSApp, in case the
(key) event was not handled by IMContext.
So I reverted to a mix of the original (4.13) and new (4.14.1) behavior
for fetching events: NSEvent lookup for IMContext uses loose matching,
so it can work with rewritten events. When sending events to NSApp, only
we're checking for an exact match.
Now in-app keyboard shortcuts (e.g. Ctrl-F2) work from within text
fields again.
2024-04-23 08:57:09 +02:00
Matthias Clasen
8f15f6959c
Merge branch 'vulkan-profiler-mark' into 'main'
...
gsk: Add a profiler mark for pipeline creation
See merge request GNOME/gtk!7172
2024-04-23 01:19:20 +00:00
Matthias Clasen
f26efd9adf
gsk: Add a profiler mark for pipeline creation
...
This is the Vulkan equivalent of shader compilation, it could be
expensive, so lets add a mark around it.
2024-04-22 20:47:25 -04:00
Matthias Clasen
3f342d75b2
Merge branch 'wip/alice/root-test' into 'main'
...
testsuite: Add css/style/root test
See merge request GNOME/gtk!7171
2024-04-22 20:26:46 +00:00
Alice Mikhaylenko
3ab189404e
testsuite: Add css/style/root test
...
Should have been a part of 76421847a5
but I forgot to commit it.
2024-04-22 21:34:50 +04:00
Matthias Clasen
48fc8d6606
Merge branch 'wip/alice/root' into 'main'
...
cssselector: Support :root
See merge request GNOME/gtk!7170
2024-04-22 16:26:18 +00:00
Matthias Clasen
2e0f411de9
Merge branch 'amolenaar/macos-fix-delayed-rendering' into 'main'
...
macos: Avoid repeatedly sending events back to macOS
See merge request GNOME/gtk!7158
2024-04-22 16:25:57 +00:00
Matthias Clasen
f08e36e225
Merge branch 'wip/alice/bugfix' into 'main'
...
csstokenizer: Fix an out of bounds when reading an ident followed by EOF
See merge request GNOME/gtk!7169
2024-04-22 16:25:17 +00:00
Matthias Clasen
9f358ac655
Merge branch 'matthiasc/for-main' into 'main'
...
roaring: Fix some ubsan warnings
See merge request GNOME/gtk!7165
2024-04-22 15:52:04 +00:00
Matthias Clasen
33d1349e53
Merge branch 'wip/alice/wayland-crash' into 'main'
...
wayland: Consistently handle enum type
Closes #6649
See merge request GNOME/gtk!7168
2024-04-22 15:25:31 +00:00
Alice Mikhaylenko
76421847a5
cssselector: Support :root
...
This will be useful for defining global variables.
2024-04-22 18:55:35 +04:00
Alice Mikhaylenko
840cd6e44c
csstokenizer: Fix an out of bounds when reading an ident followed by EOF
2024-04-22 17:59:29 +04:00
Arjan Molenaar
f81038e99a
macos: Avoid repeatedly sending events back to macOS
...
in the old approach it was possible that one NSEvent was
sent to the underlying NSApp multiple times. This resulted in
those events being forwarded to our (glib) event queue again.
The visual result was that no screen updates were done. Under the hood
the application was very busy with passing events around.
By popping the events off of our event queue, we make sure they're sent
only once.
2024-04-22 15:51:12 +02:00
Alice Mikhaylenko
007e7c68dc
wayland: Consistently handle enum type
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6649
2024-04-22 17:18:11 +04:00
Emmanuele Bassi
e5e147ad53
Merge branch 'wip/alice/flatpak-fix' into 'main'
...
Fix flatpak build
See merge request GNOME/gtk!7166
2024-04-22 13:04:33 +00:00
Alice Mikhaylenko
58e00040e0
Fix flatpak build
...
Regressed in 70cd0e28ab
2024-04-22 16:18:58 +04:00
Matthias Clasen
5d1b8399fb
testsuite: Fix another ubsan warning
...
The expression here was a bit too dense for ubsan to figure out
what branches aren't hit.
2024-04-21 22:24:02 -04:00
Matthias Clasen
deec2b6c6c
lsan: Don't suppress glib and gio leaks
...
These are useful to see and not all that common.
2024-04-21 22:02:44 -04:00
Matthias Clasen
246eb8ea25
gtk: Fix more ubsan warnings
...
Most of these are calling a get_instance_private() function before
checking that the object isn't NULL.
2024-04-21 22:01:06 -04:00
Matthias Clasen
815df9a76a
wayland: Fix an ubsan warning
...
dev_t requires 8-byte alignment, so we need to use memcpy.
2024-04-21 21:32:41 -04:00
Matthias Clasen
f896dddadc
inspector: Fix an ubsan warning
...
These values are too big for int, so cast them to double.
2024-04-21 21:21:11 -04:00
Matthias Clasen
d733e94a8b
roaring: Fix some ubsan warnings
...
Avoid warnings about memcpy (NULL, NULL, 0).
2024-04-21 21:20:16 -04:00
Matthias Clasen
59db0ca328
Merge branch 'matthiasc/for-main' into 'main'
...
wayland: Use wl_compositor version 6
See merge request GNOME/gtk!7164
2024-04-22 01:00:22 +00:00
Matthias Clasen
3bd97590a1
wayland: Tweak a debug message
...
We aren't drawing to subsurfaces.
2024-04-21 20:37:45 -04:00
Matthias Clasen
722a0fa36d
wayland: Check subsurface backgrounds better
...
Do the same checks for background coordinates that we do for the
subsurface coordinates themselves: they must be integral in both
application and device pixels.
2024-04-21 20:33:29 -04:00
Matthias Clasen
b21708c5e4
offload: Consolidate logging a bit
...
Spew a bit less per-frame. Unfortunately, we still spew for
every frame, and fixing that would require more extensive
refactoring to centralize all logging in gskoffload.c
2024-04-21 20:18:38 -04:00
Matthias Clasen
b5fb584316
wayland: Use gdk_debug_message consistently
...
For debug messages, we should always use gdk_debug_message.
2024-04-21 19:41:49 -04:00
Matthias Clasen
fd1e1b9b7c
Cosmetics
2024-04-21 19:35:52 -04:00
Matthias Clasen
c0caae0ff0
wayland: Use wl_compositor version 6
...
This gives us events for preferred_buffer_scale (which we ignore)
and preferred_buffer_transform (which we also currently ignore).
2024-04-21 19:27:58 -04:00
Matthias Clasen
5c972e4786
Post-release version bump
2024-04-21 12:27:05 -04:00
Matthias Clasen
1a3c5cf420
4.15.0
2024-04-21 12:21:40 -04:00
Matthias Clasen
eb7affd911
testsuite: Fix the offload tests
2024-04-21 12:21:40 -04:00
Matthias Clasen
a05dbff2c9
testsuite: Tweak the offload tests
...
We set GDK_DEBUG=force-offload now, so we can look at the actual
offload status.
2024-04-21 12:21:40 -04:00
Matthias Clasen
4b0d17b332
wayland: Fix an offload cornercase
...
Treat textures with background as opaque for the purposes of
offloading.
2024-04-21 12:21:40 -04:00
Matthias Clasen
2d8f677e63
Merge branch 'matthiasc/for-main' into 'main'
...
build: Fix docs build
See merge request GNOME/gtk!7162
2024-04-21 15:25:37 +00:00
Matthias Clasen
b5c9b6aa25
docs: Some updates to the render tool manpage
...
List all supported output formats and fix a few typos.
2024-04-21 11:03:31 -04:00
Matthias Clasen
86924c2f9a
docs: Add some metadata to man pages
...
It would be nice to include the version here, but that is trickier.
2024-04-21 11:03:14 -04:00
Matthias Clasen
af0f5e3f30
build: Fix docs build
...
There was an overlooked used of a dropped option here.
2024-04-21 10:15:06 -04:00
Matthias Clasen
9e6c72210d
Merge branch 'fix-dconf-reference' into 'main'
...
docs: Improve a reference
Closes #6635
See merge request GNOME/gtk!7161
2024-04-21 14:03:37 +00:00
Matthias Clasen
ce0b2d6953
NEWS: Updates
2024-04-21 09:40:55 -04:00
Matthias Clasen
d1bb3f66ac
ci: Use pangos documentation option
...
The gtk_doc option has been deprecated in pango.
Use the replacement to avoid a deprecation warning.
2024-04-21 09:40:55 -04:00
Matthias Clasen
70cd0e28ab
Drop deprecated build options
...
These cause harm in connection with subprojects if the subprojects
yield to a deprecated option. So just rip the bandaid off and
drop the deprecated build options.
2024-04-21 09:40:55 -04:00
Matthias Clasen
2e00bcc580
docs: Improve a reference
...
DConf is not what we use, it is actually GSettings.
Fixes : #6635
2024-04-20 20:12:54 -04:00
Matthias Clasen
db68c1f2c6
NEWS: Updates
2024-04-20 19:14:54 -04:00
Matthias Clasen
e3fa60a070
Merge branch 'matthiasc/for-main' into 'main'
...
ci: Stop using deprecated options
See merge request GNOME/gtk!7160
2024-04-20 22:35:20 +00:00
Matthias Clasen
c9c29d8bde
gsk: Only prefer Vulkan on Wayland
...
Make Vulkan the default on Vulkan-friendly platforms.
For now, that list only includes Wayland.
2024-04-20 18:10:21 -04:00
Matthias Clasen
cd59d62947
Merge branch 'offload-new-transfer-none' into 'main'
...
Drop return value annotation of gtk_graphics_offload_new()
See merge request GNOME/gtk!7159
2024-04-20 21:26:03 +00:00
Sebastian Dröge
4f4fe4ef44
Drop return value annotation of gtk_graphics_offload_new()
...
A floating reference is returned, not a full reference. By having no
annotation, like for all other widget constructors, the correct default
is used again.
2024-04-20 22:45:15 +03:00
Matthias Clasen
06f83847c6
ci: Stop using deprecated options
...
A small step towards being able to drop these eventually.
2024-04-20 13:44:08 -04:00
Matthias Clasen
941b5c2aeb
NEWS: Updates
2024-04-20 12:45:32 -04:00