Commit Graph

212 Commits

Author SHA1 Message Date
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
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
Christian Hergert
f9d91ddb60 Merge branch 'bilelmoussaoui/cleanup-2' into 'main'
Various cleanups

See merge request GNOME/libmks!29
2023-08-11 03:22:46 +00:00
Christian Hergert
4343e01abf Merge branch 'bilelmoussaoui/post-migration' into 'main'
docs: Adapt post GNOME group migration

See merge request GNOME/libmks!30
2023-08-11 03:22:11 +00:00
Christian Hergert
10573a416a Merge branch 'bilelmoussaoui/doap' into 'main'
misc: Add a doap file

See merge request GNOME/libmks!31
2023-08-11 02:54:50 +00:00
Bilal Elmoussaoui
bbc43d73e6 misc: Add a doap file
Required since the migration to GNOME group
2023-08-10 22:20:52 +00:00
Bilal Elmoussaoui
69bb9db52a docs: Adapt post GNOME group migration 2023-07-11 14:48:23 +02:00
Bilal Elmoussaoui
7e51d6d38e cleanup: Drop remaining publicly exposed speaker types
Should have been more careful...
2023-07-06 01:48:20 +02:00
Bilal Elmoussaoui
7fafb9f268 cleanup: Prefix & rename create_socketpair 2023-06-23 22:28:34 +02:00
Christian Hergert
61846c127b Merge branch 'bilelmoussaoui/touch-support-v2' into 'main'
touch support: round 2

See merge request chergert/libmks!27
2023-06-23 17:54:05 +00:00
Bilal Elmoussaoui
af8d90d1b5 display: Expose a helper for retriving guest position
When running an Android VM with GL support, Android somehow enforces
support for only touch events making it difficult to work with QEMU +
Android for devolpement / demo purposes without a touch screen.

This helper is useful for being able to emulate motion / click
events as touch ones
2023-06-21 21:09:29 +02:00
Bilal Elmoussaoui
3aee839269 touch: update per latest changes in upstream API 2023-06-20 00:04:04 +02:00
Christian Hergert
a8b605f401 lib: use GLib numeric types
I'm trying to be consistent and keep with GLib type definitions except for
char/int/double/float.
2023-06-15 16:09:22 -07:00
Christian Hergert
5a55efe987 build: add mks-touchable.h to enums generation
Related !26
2023-06-15 16:06:25 -07:00
Christian Hergert
092e6cd418 Merge branch 'bilelmoussaoui/touch-support' into 'main'
Add touch events support

See merge request chergert/libmks!26
2023-06-15 23:03:54 +00:00
Bilal Elmoussaoui
2385ad2f04 tools: Display touch device info 2023-06-15 13:57:19 +02:00
Bilal Elmoussaoui
10fa9edd8f misc: Replace some of g_warning usages with g_debug
To avoid spamming the user's journald
2023-06-15 13:57:19 +02:00
Bilal Elmoussaoui
c28a6f85e2 device: Implement the new touch interface 2023-06-15 13:57:19 +02:00
Bilal Elmoussaoui
f8a8b61171 display-picture: Split guest absolute position into a helper
Will be shared with touch events in the next commit
2023-06-15 13:47:20 +02:00
Christian Hergert
b99b6b42b4 Post-release version bump 2023-06-07 15:07:22 -07:00
Christian Hergert
7a320017a0 Release libmks 0.1.0 2023-06-07 15:06:30 -07:00
Christian Hergert
93e2e70c7b dmabuf-paintable: remove use of arc box
There is only a single unref of this, via the GdkGLTexture so just use a
free function and g_new0()/g_free().
2023-06-02 10:23:31 -07:00
Christian Hergert
a2525530ec screen: remove mks-screen-private.h
It wasn't doing anything for us, so just remove it.
2023-06-02 10:22:27 -07:00
Christian Hergert
58d99fb8b1 dmabuf-paintable: code style cleanup 2023-06-02 10:19:37 -07:00
Christian Hergert
0d43432bfa janitorial: code style and formatting cleanup 2023-06-02 10:18:54 -07:00