Commit Graph

235 Commits

Author SHA1 Message Date
Christian Hergert 90f722234b Merge branch 'bilelmoussaoui/dmabuf-texture' into 'main'
Switch to using GdkDmaBufTexture

See merge request GNOME/libmks!45
2024-01-15 21:34:47 +00:00
Bilal Elmoussaoui 6e14423850 ci: Add missing dependencies
Needed for gdbus-codegen & coverage job
2024-01-14 16:44:37 +01:00
Benjamin Otte e1dc14b1d8 Add a GtkGrphicsOffload for dmabuf passthrough 2023-11-14 20:20:57 +01:00
Bilal Elmoussaoui bdcd59fd6c dmabuf paintable: Switch to GdkDmabufTexture 2023-10-25 23:50:08 +02:00
Bilal Elmoussaoui e295c48ccd Merge branch 'bilelmoussaoui/multi-sessions' into 'main'
session: Allow setting the unique name

See merge request GNOME/libmks!44
2023-10-25 21:24:29 +00:00
Bilal Elmoussaoui c03395e68a misc: Ignore images downloaded by functional test 2023-10-25 23:21:08 +02:00
Bilal Elmoussaoui 4bcff31a94 ci: Use dbus-run-session to ensure the fdo bus is available 2023-10-25 23:21:08 +02:00
Bilal Elmoussaoui 482ec4f9f6 session: Allow setting the unique name
If multiple instances of QEMU are running, with the currently exposed API
you can't interact with queued name owners and only with the main process.

Also modify mks-connect to make use of this and display the unique name there as well.
2023-10-25 23:21:08 +02:00
Bilal Elmoussaoui 9a57c2a95a misc: Drop empty private headers 2023-09-18 15:11:17 +02:00
Bilal Elmoussaoui 1de5cbc2ca Post release version bump 2023-09-14 10:52:59 +02:00
Bilal Elmoussaoui f8d9be2e56 Release libmks 0.1.5 2023-09-14 10:39:51 +02:00
Bilal Elmoussaoui 334a34a9b7 packit: Fix configuration 2023-09-14 10:36:29 +02:00
Bilal Elmoussaoui 34104db86a Release libmks 0.1.4 2023-09-14 10:33:02 +02:00
Bilal Elmoussaoui 574b88cb85 Merge branch 'bilelmoussaoui/packit-maybe' into 'main'
automation: Add Packit configuration

See merge request GNOME/libmks!42
2023-09-14 08:31:15 +00:00
Bilal Elmoussaoui c0fef65294 automation: Add Packit configuration
Would allow us to automate the fedora release
2023-09-14 10:29:02 +02:00
Bilal Elmoussaoui 5191fbf6c6 Post release version bump 2023-09-08 09:35:08 +02:00
Bilal Elmoussaoui f938033d82 Release libmks 0.1.3 2023-09-08 09:33:08 +02:00
Christian Hergert dbcfbe61a6 Merge branch 'bilelmoussaoui/fix-license' into 'main'
fix: Update license content to match used license

Closes #11

See merge request GNOME/libmks!40
2023-09-07 20:29:06 +00:00
Bilal Elmoussaoui f4ad23a65a build/gi: Stop hardcoding wrong header file name
As we now use link_with, and meson can figure out the rest by itself
2023-09-07 22:02:53 +02:00
Bilal Elmoussaoui 414b26fcd9 build/gi: Split generated sources to public/private
Since the switch to manual-register for gresources, the generated
functions were exposed in the gir file which is something we don't want
2023-09-07 22:02:49 +02:00
Bilal Elmoussaoui 058c1f4fb0 Merge branch 'libmks-functional_test' into 'main'
tests: add functional test

See merge request GNOME/libmks!41
2023-09-07 19:35:19 +00:00
Bilal Elmoussaoui 9e13893267 build: Use enabled to check for existance of feature options 2023-09-07 21:31:59 +02:00
Sandro Bonazzola 0b9e08a798 tests: add functional test
Also switches the CI to using rawhide for now to avoid building gtk4 ourselves
until fedora 39 is released

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
2023-09-07 21:31:59 +02:00
Bilal Elmoussaoui 801013ff33 fix: Update license content to match used license
Fixes #11
2023-09-01 10:58:51 +02:00
Bilal Elmoussaoui fd2cc3b19a Post release version bump 2023-08-31 19:42:18 +02:00
Bilal Elmoussaoui 3637397dc5 Release libmks 0.1.2 2023-08-31 19:41:16 +02:00
Christian Hergert c92f5c0a4a Merge branch 'bilelmoussaoui/use-notify' into 'main'
cleanup: Use explicit notify for properties

See merge request GNOME/libmks!37
2023-08-31 17:26:40 +00:00
Bilal Elmoussaoui efecc90f1f cleanup: Consistently use setters for properties 2023-08-31 18:51:09 +02:00
Christian Hergert 21136f13f3 Merge branch 'bilelmoussaoui/fix-gir-build' into 'main'
build: Fix generating GIR

See merge request GNOME/libmks!39
2023-08-31 16:24:16 +00:00
Christian Hergert 939bfe56f4 Merge branch 'bilelmoussaoui/dbus-iface' into 'main'
data: Sync the DBus spec file

See merge request GNOME/libmks!38
2023-08-31 16:23:05 +00:00
Christian Hergert 7a101fc4d7 Merge branch 'bilelmoussaoui/dmabuf-division-0' into 'main'
dmabuf: Avoid division by 0

See merge request GNOME/libmks!36
2023-08-31 16:12:04 +00:00
Christian Hergert ac87feda05 Merge branch 'bilelmoussaoui/leaks' into 'main'
fix: Plug few Touchable related leaks

See merge request GNOME/libmks!34
2023-08-31 16:10:17 +00:00
Christian Hergert 91ed701bd6 Merge branch 'bilelmoussaoui/dmabuf-fix' into 'main'
dmabuf: Only create a new texture when needed

See merge request GNOME/libmks!33
2023-08-31 16:09:59 +00:00
Bilal Elmoussaoui 6b51b61c8a tools: Remove unnecessary dark class 2023-08-31 11:48:14 +00:00
Bilal Elmoussaoui 7598cb3eac build: Use manual registration for gresource
As that is the recommendation for libraries having their own init function
2023-08-31 12:17:35 +02:00
Bilal Elmoussaoui 545b29e2bf build: Fix generating GIR
We didn't pass the generated sources to GIR making some of the types
unavailable
2023-08-31 12:02:40 +02:00
Bilal Elmoussaoui 73e49437e2 data: Sync the DBus spec file
Minus few Windows specific bits that we are not going to use any time soon
2023-08-30 11:05:59 +02:00
Bilal Elmoussaoui 4f08953fb0 dmabuf: Avoid division by 0
When opening mks for an already running VM, the QEMU dbus backend has no
way to tell to the VM refresh the display and submit a new UpdateDMABuf.

So by the time size_allocate is called, the height and width of the paintable are
still set to 0.

This should fix the size allocate warning we see now until we figure out a proper
fix from the QEMU side.
2023-08-29 11:42:15 +02:00
Bilal Elmoussaoui 035d9b7ac2 dmabuf: Only create a new texture when needed
If the widget gets resized, snapshot would end up being called
and we will try to re-create the same texture again which can
cause some artifacts
2023-08-23 23:07:48 +02:00
Bilal Elmoussaoui edd6308822 fix: Plug few Touchable related leaks 2023-08-23 10:12:17 +02:00
Bilal Elmoussaoui 9334cd4ee9 Post release version bump 2023-08-23 08:46:43 +02:00
Bilal Elmoussaoui 342c967fdc news: Add rendering fixes note 2023-08-23 08:46:06 +02:00
Bilal Elmoussaoui b2baf33851 Release libmks 0.1.1 2023-08-23 08:43:17 +02:00
Christian Hergert c0363de459 build: style cleanup and group unit testing bits together 2023-08-22 10:53:25 -07:00
Christian Hergert b6061c19b8 build: tweak wording for meson_options.txt 2023-08-22 10:51:40 -07:00
Christian Hergert 6ce2e2addb Merge branch 'unit_test' into 'main'
tests: add scaffolding for unit tests with coverage

See merge request GNOME/libmks!32
2023-08-22 17:49:40 +00:00
Sandro Bonazzola db33eece15 tests: add scaffolding for unit tests with coverage 2023-08-22 17:49:40 +00:00
Bilal Elmoussaoui 0cd80513e0 doap: It is actually libmks
Copy pasting is a hard thing to do!
2023-08-15 20:43:51 +00:00
Christian Hergert 46a05c4ba4 Merge branch 'bilelmoussaoui/fix-rendering' into 'main'
dmabuf-paintable: Build the texture when snapshot is called

See merge request GNOME/libmks!28
2023-08-15 19:41:08 +00:00
Bilal Elmoussaoui 640587ed0f dmabuf-paintable: Build the texture when snapshot is called
Always creating the texture even if the app is not being displayed
(minimized / different virtual monitor) or
if the GdkFrameClock drops a frame we end up doing a comparison with a
very old frame causing full redraws in certain cases or even artifacts
in others.

Instead, we only build the texture once snapshot is called and accumulate
the damage area until that happens to avoid updating the wrong area
2023-08-15 19:37:57 +02:00