Commit graph

61 commits

Author SHA1 Message Date
Rick Calixte
14f5733584 meson.build: install badges for labwc and migrate to data/
A .desktop file was previously added for the labwc session, this adds a
badge for it where it is supported. The .desktop files and the badges
are also moved to `data/`.

Ref: #36, 9fa783e, labwc/labwc-artwork#7
2024-02-03 22:05:28 +00:00
Johan Malm
eb41fb1e0b build: bump version to 0.7.0 2023-12-22 17:03:32 +00:00
Consolatis
ddc9047a67 Restore nested resize
Chases: 756ecf8ee9f1e75bc7b8297dc84f97c7d699174b
backend/wayland: use request_state when toplevel is resized

Chases: 3ef68a484243555b020200c6f95246d994932c3f
backend/x11: use request_state when window is resized

Ref: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/2693

We now delay requested resolution changes by the backend until
the next frame event which causes us to render the new content
on the already enlarged buffer. Before this change, an empty
(black) buffer would have been shown instead before the next
frame event caused a new render of the actual contents.

Keep commiting the new state and then scheduling a frame event
would not help as due to the commit call it would still show an
empty buffer in the meantime.

Just modifying wlr_output->pending wouldn't work either because
wlr_scene_output_commit() *completely* ignores it (and it will
be removed in future wlroots commits). For this reason we move
to wlr_scene_output_build_state() directly because it allows us
to supply the current wlr_output->pending state and thus apply
any resolution change in lockstep with new rendering. Result:
No more flickering in the wayland backend and resizing is again
smooth as butter.

This prevents constant flicker while resizing
when running nested via the wayland backend.

For the X11 backend (can be tested via `WLR_BACKENDS=x11 labwc`),
it is still rather janky but at least doesn't cause endless self-
resizing anymore.
2023-11-27 21:01:53 +00:00
Consolatis
5feda28f12 Chase wlroots: Update meson.build wlroots requirement to >= 0.17 2023-11-27 21:01:53 +00:00
Johan Malm
7af5f1d5ce build: bump version to 0.6.6 2023-11-25 21:14:12 +00:00
Johan Malm
48e0b3f6a6 build: bump version to 0.6.5 2023-09-23 16:54:34 +01:00
Johan Malm
715405fe29 build: make svg buttons optional
Add -Dsvg=disabled to your meson setup/configure command to disable svg
buttons even if the correct version of librsvg is available.

Note that regardless of this patch and the value of the 'svg' variable,
the build will gracefully fall back to not using librsvg if the correct
version is not available.

Helped-by: @01micko
2023-09-17 19:26:41 +01:00
Johan Malm
c62df26c2a Support svg buttons
In the theme directory add close-{active,inactive}.svg instead of
close.xbm - and similarly for iconify, menu and max.
2023-09-17 19:26:41 +01:00
Johan Malm
a6a03daae3 Support png buttons
In the theme directory add close-{active,inactive}.png instead of
close.xbm - and similarly for iconify, menu and max.
2023-08-09 07:38:17 +01:00
Johan Malm
6b83db34af build: bump version to 0.6.4 2023-07-14 20:44:38 +01:00
Johan Malm
63db731cf4 build: bump version to 0.6.3 2023-05-08 07:29:12 +01:00
Johan Malm
7914d06760 build: bump version to 0.6.2 2023-03-20 20:21:09 +00:00
Consolatis
82e9e866ec Enable more compiler warnings 2023-02-01 10:42:22 +01:00
Johan Malm
a3fff9f87b build: bump version to 0.6.1 2023-01-29 16:22:09 +00:00
Jan Beich
1e66ba8fd7 build: drop pixman dependency after 532656ad5b 2022-11-18 10:37:51 +01:00
Johan Malm
029700f0bf build: bump version to 0.6.0 2022-11-17 22:13:55 +00:00
Eli Schwartz
2656cf525f
meson: use proper dependency fallback for wlroots
Make the subproject wrap file declare the dependencies it provides.

Remove the manual subproject invocation and allow Meson to select
whichever wlroots it finds which satisfies the version requirement --
either a system one via pkg-config, or the subproject fallback.

Use a dependency-generic method of acquiring wlroots configuration info
-- enabled features are present in the pkg-config file and additionally
exported as declare_dependency() variables, so there is no need to do C
preprocessor checks for it.

This ensures that Meson best practices are followed, and also...

Fixes #318
2022-05-09 17:48:43 -04:00
01micko
cbed8acf01 nls: add native language support
- adds labwc.pot and po files for de, es, it and sv
- added notes in NEWS.md and CONTRIBUTING.md
- addresses #269
- conditional upon `msgfmt` being installed
- can be disabled at build time
2022-05-02 10:33:42 +01:00
Johan Malm
286b2146c3 Chase wlroots X11 hints update 2022-04-20 18:48:49 +01:00
Johan Malm
177c130183 build: set 'check: false' on run_command
Future meson releases will change the default, so we explicitly set
check: false to maintain behaviour
2022-02-23 21:47:01 +00:00
Johan Malm
b79744e7b0 Chase wlroots master
We need it for wlr_scene_layer_surface_v1_create()
2022-02-23 21:47:01 +00:00
Johan Malm
b7818df434 build: bump version to 0.5.0 2022-02-18 21:24:38 +00:00
Michael Weiss
6a3536cdd7 build: Relax the version constraint for wlroots to accept patch releases
Patch releases only contain backwards compatible changes (mainly bug
fixes) so we want to allow them. This fixes the build with the recently
released wlroots 0.15.1 and uses the same version constraints as other
projects that depend on wlroots (e.g., Sway).
2022-02-04 21:44:54 +00:00
Johan Malm
12b05604a2 build: bump version to 0.4.0 2021-12-31 21:05:49 +00:00
Johan Malm
be300764b5 build: use wlroots 0.15.0 2021-12-26 22:42:51 +00:00
ARDiDo
64cc0b91e8 build: bump wlroots dependency version number 2021-12-17 10:32:43 -05:00
Dima Krasner
354161663e build: when building wlroots subproject, link statically 2021-11-08 19:10:37 +00:00
Johan Malm
d6af585837 build: remove scdoc stdin/stdout hack
From version 0.59.0, meson supports feeding the input file as stdin.
See sway@9727db67
2021-09-22 20:21:00 +01:00
notthewave
8c2542d7a3 Specify GPL-2.0-only 2021-09-01 13:04:31 +01:00
Johan Malm
c9312edf0b build: bump wlroots dependency version number 2021-07-16 19:58:22 +01:00
Johan Malm
9fa783e7b4 Add labwc.desktop (issue #36) 2021-07-12 21:41:12 +01:00
kalekale
a1ae16c1cf meson: bump wlroots dependency version number 2021-06-29 12:52:39 +01:00
Johan Malm
d38d1a9bd0 labwc 0.3.0 2021-06-28 20:59:43 +01:00
Johan Malm
1bbaf162c0 meson.build: fix style 2021-06-26 18:23:46 +01:00
Johan Malm
448b3c5870 build: bump wlroots dependency to 0.15.0 2021-06-26 10:12:52 +01:00
Johan Malm
6744e10301 meson.build: require wlroots ['>=0.14.0', '<0.15.0']
Also specify required version when using wlroots as subproject
2021-04-17 14:26:25 +01:00
Johan Malm
147bd706d4 meson.build: require wayland-server >=1.19.0
Fix typo - it previously said 0.19.0
2021-04-17 14:21:42 +01:00
Johan Malm
981c03e7e4 meson.build: update version 2021-04-17 14:18:52 +01:00
Jan Beich
b997d8e793 meson: unbreak with system wlroots after fd4ea3542f
meson.build:50:2: ERROR: All keyword arguments must be after positional arguments.
2021-04-15 22:21:06 +01:00
Johan Malm
fd4ea3542f labwc 0.2.0 2021-04-15 21:35:47 +01:00
Johan Malm
f5689410be README/meson.build: update dependencies 2021-04-10 08:30:56 +01:00
Johan Malm
1cb8095bb7 meson.build: add rev-parse to version number 2021-03-17 21:21:49 +00:00
Johan Malm
fddeb74527 meson.build: remove -Wno-enum-compare 2021-03-15 18:11:44 +00:00
Johan Malm
1fb9d5eaa4 meson.build: add drm dependency for drm_fourcc.h 2021-03-13 23:33:32 +00:00
Jan Beich
0ca3eb8f79 meson: require wlroots 0.13.0 after 15ebd25294
src/server.c:93:61: error: too few arguments to function call, expected 2, have 1
        server->backend = wlr_backend_autocreate(server->wl_display);
                          ~~~~~~~~~~~~~~~~~~~~~~                   ^
subprojects/wlroots/include/wlr/backend.h:43:21: note: 'wlr_backend_autocreate' declared here
struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
                    ^
src/xdg.c:180:2: warning: implicit declaration of function 'wlr_xdg_surface_for_each_popup_surface' is invalid in C99 [-Wimplicit-function-declaration]
        wlr_xdg_surface_for_each_popup_surface(view->xdg_surface, iterator, data);
        ^
ld: error: undefined symbol: wlr_xdg_surface_for_each_popup_surface
>>> referenced by xdg.c:180 (src/xdg.c:180)
>>>               labwc.p/src_xdg.c.o:(xdg_toplevel_view_for_each_popup_surface)
2021-03-13 23:23:33 +00:00
Johan Malm
5101ee87eb main.c: add -v, -V, -d command line options 2021-03-06 11:38:17 +00:00
Johan Malm
2a7086d9f7 meson.build: link with -lm 2021-01-12 16:47:26 +00:00
Johan Malm
54804fd3df Implement damage tracking 2021-01-09 22:51:20 +00:00
Ben Lönnqvist
695ce28b55 add libinput as a dependency to meson.build 2021-01-02 19:19:22 +00:00
Johan Malm
cfc6e18cdc Make xwayland support optional 2020-12-30 10:29:21 +00:00