Commit graph

2417 commits

Author SHA1 Message Date
Christopher Snowhill
9e9c29d7f5 config: initialize some missing defaults 2024-07-18 03:09:56 +02:00
Consolatis
40684bad9d magnifier: disable direct scanout when active
Fixes: #1980
2024-07-17 22:44:48 +02:00
Consolatis
8ddfcb80e5 CI: switch Arch and FreeBSD to wlroots 0.18
Also add wlroots0.18-devel to Void, assuming that is what the
package will be called once available. For previous packaging
see https://github.com/void-linux/void-packages/pull/48323/files
2024-07-17 21:28:59 +01:00
Consolatis
93f817e20e chase: wlroots.wrap: track the wlroots 0.18 branch 2024-07-17 21:28:59 +01:00
Consolatis
0d00e9a232 chase: move to stable tablet protocol and require w-p >= 1.35
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4645
2024-07-17 21:28:59 +01:00
Consolatis
924e31f089 chase: version pkgconfig, headers, and library
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4614
2024-07-17 21:28:59 +01:00
Consolatis
d16c6dd63a chase: tablet_pad to tablet
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4585
2024-07-17 21:28:59 +01:00
Consolatis
5c6e1ed878 chase: use wayland pointer enums rather than wlr ones
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4575
2024-07-17 21:28:59 +01:00
Consolatis
d8d45dc2cb chase: request initial configure
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4396
2024-07-17 21:28:59 +01:00
Consolatis
0a03c00b8b chase: backend create now requires event_loop arg
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4443
2024-07-17 21:28:59 +01:00
Consolatis
36b0dc2db4 chase: output->pending
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4202
2024-07-17 21:28:59 +01:00
Consolatis
0d354519e8 chase: relative axis direction
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4003
2024-07-17 21:28:59 +01:00
Consolatis
d8f57fe4e7 chase: presentation is now handled internally
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4482
2024-07-17 21:28:59 +01:00
Consolatis
72fd2af4f2 chase: tearing hint
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4480
2024-07-17 21:28:59 +01:00
Consolatis
6becc02ca4 chase: let wlr_scene track damage again
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4253
2024-07-17 21:28:59 +01:00
Consolatis
d2579a0088 chase: handle xdg new toplevel event
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4345
2024-07-17 21:28:59 +01:00
Consolatis
3b2ab4a48e chase: move xdg destroy signal to toplevel / popup
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4345
2024-07-17 21:28:59 +01:00
Consolatis
50047db8b2 chase: output-layout takes wl_display in constructor
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
2024-07-17 21:28:59 +01:00
Consolatis
d37309008c chase: disable restacking of unmanaged windows
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4052
2024-07-17 21:28:59 +01:00
Consolatis
3e614814fe chase: input inhibit removal
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4440
2024-07-17 21:28:59 +01:00
Consolatis
d1fbb3c7cc chase: wlroots version dep to 0.18 2024-07-17 21:28:59 +01:00
Johan Malm
7dd7b5cc59 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-15 22:00:11 +01:00
Consolatis
714511736b src/xdg.c: verify source surface for xdg_activation request
wlroots < 0.17 didn't allow to reliably check the source surface of
an xdg activation request as it reset the surface to NULL when it
was destroyed before the token was used. This happens regularly for
notifications for example. Thus we treated the token as valid even
without checking for the source surface.

wlroots 0.17 added a new_token signal where we can attach information
to the existing token which we can then use when evaluating activation
requests. This patch implements that check.
2024-07-14 22:11:12 +02:00
Consolatis
e9fdd1f493 CI: add wlroots 0.17 packages for Arch and FreeBSD 2024-07-14 22:02:40 +02:00
Birger Schacht
3be20dc6c7 docs: fix typo in labwc-config.5.scd 2024-07-13 09:46:29 -04: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