Commit graph

21 commits

Author SHA1 Message Date
Gergő Sályi
a34ee177d0 Support output transforms having 90 degree rotations
Swap the physical width and height of an output for our calculations
if the output has a transform that includes a 90 degree rotation

This tries to fix the issue with broken wallpapers on rotated outputs
https://github.com/gergo-salyi/multibg-sway/issues/9
2024-10-09 16:09:33 +02:00
Gergő Sályi
b203a15222 Anchor the wlr_layer_surface to all 4 edges
Attempt to fix a crash with wayland protocol error reported in
https://github.com/gergo-salyi/multibg-sway/issues/8
2024-09-30 21:09:04 +02:00
Gergő Sályi
ea45c60ab1 Add a logging message to initialization 2024-09-30 20:49:26 +02:00
Gergő Sályi
1f253ac3f9 Formatting only - apply added editorconfig to all files 2024-09-30 20:29:09 +02:00
Gergő Sályi
0749c9df34 Add missing check if updated output has a positive resolution 2024-09-30 20:13:20 +02:00
Gergő Sályi
77552b9426 Update dependencies, fix incompatibilities 2024-09-30 19:54:21 +02:00
Gergő Sályi
abb85692e4 Add --pixelformat cli argument
Enables setting --pixelformat=baseline
to force wl_buffers to use the wayland default xrgb8888
2024-05-11 00:55:54 +02:00
Gergő Sályi
ec22b1cb65 Also align wl_buffer stride to 4 for any pixel format
bgr888 buffers may have a stride only aligned to 3, this caused issues:
https://github.com/gergo-salyi/multibg-sway/issues/6
2024-05-10 23:45:16 +02:00
Gergő Sályi
2711872a53 Add support for outputs with fractional scale factor
Hopefully this will help displaying the wallpapers correctly
on outputs with fractional scale factor:
https://github.com/gergo-salyi/multibg-sway/issues/5
2024-03-25 14:09:44 +01:00
Gergő Sályi
8e20b360ae Consider integer scale factor for LayerSurface and WlSurface
Hopefully this will help displaying the wallpapers correctly
on outputs with higher than 1 integer scale factor:
https://github.com/gergo-salyi/multibg-sway/issues/4
2024-01-02 20:51:14 +01:00
Gergő Sályi
67abbb9a37 Remove inactive and superseded code 2024-01-02 18:58:59 +01:00
Gergő Sályi
3fc86cbf96 Update dependencies, fix incompatibilities 2024-01-02 18:42:50 +01:00
Gergő Sályi
71dc725ec7 Create shm slot pools per output instead of using one in the global state
This allows the release of graphics memory per output when an output is
destroyed, unlike when we had only one shm slot pool that cannot shrink

Hopefully this will help with a claimed leak of graphics memory:
https://github.com/gergo-salyi/multibg-sway/issues/2
2023-08-31 17:35:35 +02:00
Gergő Sályi
54809851d9 Before drawing a background check if the buffer to use is already active 2023-08-31 16:43:37 +02:00
Gergő Sályi
7681beecba Log shm slot pool size on new/destroyed output
This might help to keep better track on our graphics memory use
2023-08-31 16:17:41 +02:00
Gergő Sályi
bb96b6c36f Update readme and --help that resizing was added 2023-04-27 00:59:51 +02:00
Gergő Sályi
a2471bda0b Implement image resizing 2023-04-26 23:22:46 +02:00
Gergő Sályi
80f7f88532 Fix panic when the process is suspended
In main event loop mio poll should immediately continue and retry on EINTR
https://github.com/gergo-salyi/multibg-sway/issues/1
2023-04-26 21:18:20 +02:00
Gergő Sályi
7103939a6e Add documentation about logging errors to stderr 2023-04-08 06:54:14 +02:00
Gergő Sályi
fbfd7e722e Update 2023-04-07 21:49:13 +02:00
Gergő Sályi
3eedfa1eb5 Initial commit 2023-04-07 17:25:48 +02:00