Consolatis
0e557150f2
view: ensure output is usable before setting adaptive sync
...
Fixes #2337
Backported from
36e099fc93
Slightly modified to remove the additional `assert()`
to keep the code churn to a minimum.
2024-11-16 22:19:17 +00:00
Johan Malm
6c05316f55
buf.c: fix off by one bug in buf_add_char()
...
Written-by: @johanmalm
Fixes : #2313
Backported from 7e50c60b00
2024-11-07 23:55:04 +01:00
Johan Malm
6fe3c97443
ci: use -Wno-expansion-to-defined to avoid Arch CI error
...
...with this warning message:
[100/161] Compiling C object labwc.p/src_button_button-svg.c.o
FAILED: labwc.p/src_button_button-svg.c.o
gcc -Ilabwc.p -I. -I.. -Iinclude -I../include -I/usr/include/wlroots-0.18 -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/lib/pkgconfig/../../include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O0 -g -DWLR_USE_UNSTABLE -Wundef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca -Wunused-macros -Wno-unused-parameter '-DLABWC_VERSION="0.8.0"' '-DGETTEXT_PACKAGE="labwc"' '-DLOCALEDIR="/usr/local/share/locale"' -pthread -MD -MQ labwc.p/src_button_button-svg.c.o -MF labwc.p/src_button_button-svg.c.o.d -o labwc.p/src_button_button-svg.c.o -c ../src/button/button-svg.c
In file included from ../src/button/button-svg.c:7:
/usr/lib/pkgconfig/../../include/librsvg-2.0/librsvg/rsvg.h:1331:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
1331 | #if LIBRSVG_CHECK_FEATURE(PIXBUF)
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Backported from e5f60ce8a7
2024-11-07 23:55:04 +01:00
Consolatis
7de2a9f86a
src/menu: prevent delayed pipe menu response on item destroy ( #2094 )
...
Without this patch we would happily access `pipe_ctx->item`
members even if the item had been destroyed in the meantime.
2024-08-20 17:20:30 +01:00
Consolatis
2aa9e1143b
multirect: remove destroy listener before freeing
...
Detected by `-Db_sanitize=address,undefined` for libwayland
2024-07-26 22:53:21 +02:00
Johan Malm
71136fdf65
build: bump version to 0.7.4
2024-07-19 22:06:14 +01:00
Johan Malm
f91912d3c1
NEWS.md: update for 0.7.4
2024-07-19 22:06:14 +01:00
Consolatis
6a422b6162
ssd: make borders respect snapped state on Reconfigure
...
Fixes : #1862
2024-07-19 21:52:57 +01:00
Christopher Snowhill
f7021b7504
config: initialize some missing defaults
2024-07-18 03:12:05 +02:00
Consolatis
88a67d586c
magnifier: disable direct scanout when active
...
Fixes : #1980
2024-07-17 22:50:11 +02:00
Johan Malm
7756d5b975
menu: fix crash triggered by pipemenu without parent <menu>
...
...such as the one in the example below:
<?xml version="1.0" encoding="UTF-8"?>
<openbox_menu>
<menu id="root-menu" label="obmenu-generator" execute="obmenu-generator"/>
</openbox_menu>
We should consider supporting this construct in future.
Reported-by: cry0xen via IRC
2024-07-16 22:59:33 +02:00
Consolatis
5a6a72da36
CI: add wlroots 0.17 packages for Arch and FreeBSD
2024-07-16 22:59:21 +02:00
Birger Schacht
c64853a519
docs: fix typo in labwc-config.5.scd
2024-07-16 22:59:04 +02:00
Johan Malm
307f199158
build: bump version to 0.7.3
2024-07-12 17:27:36 +01:00
Johan Malm
80ae55136e
NEWS.md: update for 0.7.3
2024-07-12 17:19:00 +01:00
Weblate
c7b3f4f9d8
Translation updates from weblate
...
Co-authored-by: Heimen Stoffels <vistausss@fastmail.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: tark1998 <tark1998@gmail.com>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/ko/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/nl/
Translation: Labwc/labwc
2024-07-08 21:11:46 +01:00
John Lindgren
b1a6a36582
menu: fix small memory leaks
2024-07-08 19:44:50 +01:00
John Lindgren
3ca1e94b1f
menu: try other paths (and fix memory leak) if fopen() fails
2024-07-08 19:44:50 +01:00
John Lindgren
5979cc137a
theme: fix memory leak of button icons
2024-07-08 19:44:50 +01:00
tokyo4j
1b122422f5
session-lock: clear focused surface on lock
...
Before this commit, keyboard events were sent to the focused surface
before the session-lock client maps its surfaces.
2024-07-07 15:48:32 +09:00
tokyo4j
6bc93cf468
session-lock: restore focused view on unlock
...
Before this commit, the topmost view is focused on unlock. This commit
changes it to remember the focused view on lock then restore it on
unlock.
2024-07-07 15:48:32 +09:00
tokyo4j
880522d142
session-lock: never allow multiple session-locks
...
I forgot to set session_lock_manager->lock, so it was always NULL.
This barely worked, but allowed multiple session-locks and conflicted
with comments in session-lock.h.
2024-07-07 15:48:32 +09:00
tokyo4j
11f02075c2
session-lock: refactor
...
No changes in logic.
2024-07-07 15:48:32 +09:00
tokyo4j
30694c2174
session-lock: remove cruft
...
The color to fill screen with is always black and we don't need reset
its color on every session-lock destruction.
2024-07-07 15:48:32 +09:00
Andrew J. Hesford
9153c22dab
xwayland: allow persistence
...
Closes : #1958 .
2024-07-04 05:19:19 +02:00
Johan Malm
370d62beda
Remove subprojects/seatd.wrap as no longer needed
2024-07-02 22:06:57 +02:00
Consolatis
a466591e0d
ssd/ssd-shadow.c: fix memory leak
...
Before this patch, we were leaking memory [0] because the
shadow implementation did not free the ssd_parts on destruction.
There was also no check if shadows were actually enabled via
rc.xml or not so this also impacted people who were not using
shadows but were not setting the shadow size via their theme to 0.
[0] 44 bytes per ssd_part * 8 parts * 2 states == 704 bytes per
view closed. Note that Reconfigure also re-creates the SSD, thus
we were also leaking 704 bytes * nr_views per Reconfigure.
2024-07-02 20:34:25 +01:00
John Lindgren
a98f2635ea
xdg: support xdg-shell v3 with popup repositioning
...
See https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3514
which added support on the wlroots side.
We now re-run popup positioning (for both xdg-shell and layer-shell
popups) when the "reposition" event is received. This allows popups that
change size (such as qmpanel's applications menu) to be positioned
correctly.
xdg-shell v3 also gives the compositor some additional "hints" for popup
positioning (reactive, parent_size, and parent_configure_serial) which
are available but we don't make use of currently.
2024-07-01 20:16:31 +01:00
Consolatis
45b197b8a4
magnifier: fix flickering on simultaneous gamma changes
...
Gamma changes take another code path and thus did not
render the magnifier. This patch consalidates both
code paths and therefore also renders the magnifier on
gamma changes.
Fixes : #1905
2024-06-29 23:36:41 +02:00
Johan Malm
b8c3e064e7
menu: support menu.overlap.x with pipemenus
...
No inteded functional change intended with refactoring of
get_submenu_position().
Fixes #1870
2024-06-28 19:58:01 +02:00
tokyo4j
74e1ba72e3
view: don't try to restore to very small width/height on unmaximize
...
Thonny (Python IDE made with Tk) may set the window geometry to 1x1 and
maximizes the window before mapping. This set `view->natural_geometry`
to 1x1, so labwc tried to restore the window geometry to it on
unmaximize, causing validation errors in `ssd_update_geometry()` as its
width and height are smaller than `LAB_MIN_VIEW_{WIDTH,HEIGHT}`.
This commit fixes it by not allowing geometries smaller than
`LAB_MIN_VIEW_{WIDTH,HEIGHT}` in `view->natural_geometry`.
2024-06-28 14:07:26 +02:00
Jens Peters
3b605b0142
ssd: set squared corners for tiled views conditionally
...
Respect the snapping settings for notify-client.
2024-06-27 22:29:11 +01:00
Jens Peters
2c979fe269
ssd: extend border over squared corners
2024-06-27 22:29:11 +01:00
Jens Peters
98347e454e
ssd: show squared corners when the view is tiled
2024-06-27 22:29:11 +01:00
droc12345
f2755a4e2e
action: remember initial direction of PreviousView
...
...when cycling windows. Also make the toggling of direction when shift
is pressed relative to the initial direction. For example if W-j is
bound to PreviousWindow, subsequent key presses will continue to
cycle backwards unless shift if pressed.
Add documentation for using shift/arrow keys in Next/Previous
2024-06-26 22:03:56 +01:00
stefonarch
7f94486773
Remove fuzzy for capitalized translations
2024-06-25 15:03:29 +02:00
tokyo4j
f4f5a02b0a
dnd: show dnd icon above layer-shell surfaces
2024-06-25 14:56:57 +02:00
Weblate
9fc41a9730
Translation updates from weblate
...
Co-authored-by: Abdullah Albaroty <albaroty@gmail.com>
Co-authored-by: Jan Rolski <wbcwknvstb@proton.me>
Co-authored-by: Priit Jõerüüt <lxqtwlate@joeruut.com>
Co-authored-by: Standreas <standreas@riseup.net>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/ar/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/de/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/et/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/it/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/pl/
Translation: Labwc/labwc
2024-06-24 21:28:13 +01:00
Weblate
7440c5096a
Translation updates from weblate
...
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/
Translation: Labwc/labwc
2024-06-23 14:32:17 +01:00
stefonarch
832c007e6b
Updated labwc.pot file
2024-06-23 12:33:36 +01:00
tokyo4j
2e00630d80
src/main.c: initialize locale after reading environments file
...
This makes the locale for client-menu items and workspace names follow
the env var `LANG` defined in `~/.config/environments`.
2024-06-23 01:02:03 +02:00
tokyo4j
edd674f96b
po/meson.build: minor formatting
2024-06-23 01:02:03 +02:00
Jens Peters
1495708095
input: test if tablet device is a libinput device
...
Otherwise we might end with a failed assertion if the
tablet or pad isn't a libinput device.
Fixes https://github.com/labwc/labwc/issues/1916
2024-06-18 22:14:40 +01:00
Jens Peters
b63c6a0fc2
action: add ToggleTabletMouseEmulation
...
Useful for switching between application-defined and
mapped tablet pad buttons. Also for quickly troubleshooting
tablet behavior.
2024-06-18 22:13:28 +01:00
Johan Malm
1dadb12807
menu: capitalize Roll Up/Down
...
...because it seems like better English and is more consistent with other
menu entries.
Same for 'Move Left' and 'Move Right'
2024-06-15 21:31:00 +01:00
Simon Long
99893e63c3
Typo
2024-06-15 21:22:58 +01:00
Simon Long
2573162a4f
Use existing reset_keybind function
2024-06-15 21:22:58 +01:00
Simon Long
e6c239e783
Move extern to h file
2024-06-15 21:22:58 +01:00
Simon Long
5b1ab48abf
Fix release keybindings being triggered after mouse bindings
2024-06-15 21:22:58 +01:00
tokyo4j
bb1d0b4352
Implement <resize><drawContents>
...
<resize><drawContents>[yes|no] configures whether to let the clients
redraw its window content content while resizing.
When <resize><drawContents> is set to no, a multi-rect is shown to
indicate the geometry of the resized window.
2024-06-15 21:17:01 +01:00