]>
git.mdlowis.com Git - proto/labwc.git/log
Consolatis [Wed, 6 Mar 2024 23:22:51 +0000 (00:22 +0100)]
src/output.c: refactor virtual output related functions
This commit moves the virtual output related functions
into their own file at `src/output-virtual.c` with its
own include file to reduce `include/labwc.h` bit by bit.
Additionally, it removes the need to keep the
`server->headless.pending_output_name` char array around
by temporarily disconnecting the handler when creating a
new virtual output. This allows to set the output name
right in the `output_virtual_add()` call rather than to
store the pending name until the new output event handler
has been called.
It also makes adding a virtual fallback output easier in
a follow-up PR.
Weblate [Wed, 6 Mar 2024 09:23:27 +0000 (10:23 +0100)]
Translation updates from weblate
Co-authored-by: Abdullah Albaroty <albaroty@gmail.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/ar/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/de/
Translation: Labwc/labwc
Consolatis [Wed, 6 Mar 2024 03:46:40 +0000 (04:46 +0100)]
src/action.c: remove assumption about MoveToOutput direction being valid
Consolatis [Wed, 6 Mar 2024 03:30:17 +0000 (04:30 +0100)]
src/action.c: fix MoveToOutput action by renaming 'name' argument
We were using the argument name 'name' before
which is already used by the action itself:
`<action name="MoveToOutput" name="HDMI-A-1" />`
Change the argument name to "output" which also
matches the `FocusOutput` action.
Fixes: #1589
Reported-by: @bnason (thanks!)
Andrew J. Hesford [Tue, 5 Mar 2024 22:50:53 +0000 (17:50 -0500)]
docs/labwc.1: fix LABWC_PWD -> LABWC_PID typo
Johan Malm [Tue, 5 Mar 2024 21:01:39 +0000 (21:01 +0000)]
osd: show preview for windows on other workspaces
Written-by: @Consolatis
Johan Malm [Mon, 4 Mar 2024 20:30:31 +0000 (20:30 +0000)]
osd: only call wl_array_{init,relesase} once
Johan Malm [Sun, 3 Mar 2024 20:03:32 +0000 (20:03 +0000)]
osd: optionally show windows on all workspaces
Also share common config option (rc.window_switcher.criteria) in osd.c and
desktop.c to make sure the window lists are always consistent.
Configure with `<windowSwitcher allWorkspaces="yes|no">`
Johan Malm [Sun, 3 Mar 2024 19:51:15 +0000 (19:51 +0000)]
osd: do not use server->workspace_current->tree
...as it is no longer needed following the use of shared infrastructure
between osd.c and desktop.c introduced in the last few commits.
Johan Malm [Tue, 30 Jan 2024 18:06:21 +0000 (18:06 +0000)]
osd: restore preview at end of cycling
...so that sub-views are shown in front of root ones.
Johan Malm [Tue, 30 Jan 2024 18:04:43 +0000 (18:04 +0000)]
window-rules: add root-toplevel critiera
Johan Malm [Thu, 25 Jan 2024 19:54:59 +0000 (19:54 +0000)]
osd: include always-on-top views in window-switcher
Johan Malm [Thu, 25 Jan 2024 19:52:54 +0000 (19:52 +0000)]
desktop: refactor desktop_cycle_view()
...in preparation for using common window-rule criteria with osd.c
No functional change intended.
Related-to #1454
John Lindgren [Wed, 14 Feb 2024 08:13:12 +0000 (03:13 -0500)]
view: remove view_is_related(), no longer used
John Lindgren [Wed, 14 Feb 2024 08:11:32 +0000 (03:11 -0500)]
seat: don't deactivate view for any non-view surface
Now we now longer gray-out the active window when opening a focusable
popup menu (e.g. the applications menu from an XWayland panel). This
matches Openbox behavior.
John Lindgren [Wed, 14 Feb 2024 03:35:56 +0000 (22:35 -0500)]
Revert "desktop: allow re-focus between "globally active" views of the same PID"
This is undesired when a focusable popup (e.g. applications menu) of an
unfocusable view (e.g. XWayland panel) is closed.
This reverts commit
f6e3527767fffe81fa05073ae73893bb89a45d4f .
John Lindgren [Wed, 14 Feb 2024 03:32:14 +0000 (22:32 -0500)]
xwayland: remove "try to focus on parent surface" logic
This was apparently to fix an Intellij focus issue, but I don't see any
issues with Intellij currently, and the logic is wrong when the parent
XWayland surface doesn't want focus (e.g. an XWayland panel with a
focusable applications menu).
John Lindgren [Thu, 15 Feb 2024 02:11:03 +0000 (21:11 -0500)]
xwayland: treat Globally Active windows according to type
Tested with IntelliJ IDEA and JDownloader 2, which were problematic in
the past.
Fixes: #1139 #1341
Simon Long [Tue, 5 Mar 2024 20:41:17 +0000 (20:41 +0000)]
Handle touch on headerbar (#1550)
...using cursor emulate events.
tokyo4j [Fri, 9 Feb 2024 07:52:37 +0000 (16:52 +0900)]
IME: support input method
Consolatis [Sun, 25 Feb 2024 23:54:57 +0000 (00:54 +0100)]
src/server.c: filter out xwayland shell for usual clients
Consolatis [Tue, 27 Feb 2024 22:25:45 +0000 (23:25 +0100)]
src/output.c: restore flicker free resize when running nested
PR #1301 did partly revert the first variant because
`lab_wlr_scene_output_commit()` (which uses the `output->pending`
state in contrast to `wlr_scene_output_commit()`) was deemd to
cause 'frozen' frames during video playback (#1273).
We are now back at using `lab_wlr_scene_output_commit()` for
unrelated reasons and the cause of the original issue #1273 was
likely that `wlr_scene_output_send_frame_done()` was only sent
on a successful commit. This was changed to always be sent.
So lets restore the flicker free nested resize as well.
Standreas [Mon, 4 Mar 2024 21:20:08 +0000 (22:20 +0100)]
Add weblate information (#1581)
...and some sub-headings
John Lindgren [Sat, 11 Nov 2023 04:44:41 +0000 (23:44 -0500)]
key-state: use struct assignment
Andrew J. Hesford [Mon, 4 Mar 2024 00:33:10 +0000 (19:33 -0500)]
docs/labwc.1: restructure, document session management
Andrew J. Hesford [Sun, 3 Mar 2024 20:04:24 +0000 (15:04 -0500)]
session: only update activation environment...
...when running DRM backend or by explicit request
David F [Sun, 3 Mar 2024 17:47:58 +0000 (18:47 +0100)]
session.c: updated dbus activation environment with more env vars
Fixes: #694
Andrew J. Hesford [Sun, 18 Feb 2024 17:23:14 +0000 (12:23 -0500)]
session: run shutdown script, clean up activation env before exit
Johan Malm [Sat, 2 Mar 2024 19:40:33 +0000 (19:40 +0000)]
action: reduce MoveToOutput logging
Johan Malm [Sat, 2 Mar 2024 15:42:05 +0000 (15:42 +0000)]
view: add MoveToOutput `wrap` attribute
Support `wrap` in view_get_adjacent_output(). This means that when seeking
an adjacent output in a particular direction from an output that is
already furthest in that direction within the layout, rather than
returning NULL, wrap around from the leftmost to the rightmost, or topmost
to the bottommost and vice versa.
Example usage:
<action name="MoveToOutput" direction="right" wrap="yes" />
Wrap is disabled by default to keep the user interface consistent.
Johan Malm [Sat, 2 Mar 2024 15:34:52 +0000 (15:34 +0000)]
view: fix view_get_adjacent_output() bug
...when using more than two outputs.
Use the centre of the view's output as the reference coordinate when
seeking adjacent outputs.
Fixes: #1582
Birger Schacht [Sat, 2 Mar 2024 07:41:13 +0000 (08:41 +0100)]
fix: typo in labwc-config.5.scd
specifc -> specific
01micko [Sat, 2 Mar 2024 01:39:36 +0000 (11:39 +1000)]
CONTRIBUTING.md: correct the instructions for adding a locale code
zenobit [Sat, 2 Mar 2024 00:01:22 +0000 (01:01 +0100)]
Add cs language
Johan Malm [Fri, 1 Mar 2024 21:16:21 +0000 (21:16 +0000)]
build: bump version to 0.7.1
Johan Malm [Fri, 2 Feb 2024 20:55:16 +0000 (20:55 +0000)]
NEWS.md: update for 0.7.1
Weblate [Thu, 29 Feb 2024 14:23:25 +0000 (15:23 +0100)]
Translation updates from weblate
Co-authored-by: Alice Ventus <zolkin.ag@phystech.edu>
Co-authored-by: Jouni Järvinen <jounijarvis@gmail.com>
Co-authored-by: Moo <hazap@hotmail.com>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/fi/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/lt/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/ru/
Translation: Labwc/labwc
Consolatis [Wed, 28 Feb 2024 20:37:04 +0000 (21:37 +0100)]
docs/rc.xml: remove gap from the example config
Some distro packages install the example config at /etc/xdg/labwc/rc.xml
and thus users of those packages were having a gap 10 setting by default.
Lets remove the gap from the example config to match our intended default.
Consolatis [Wed, 28 Feb 2024 18:28:51 +0000 (19:28 +0100)]
CONTRIBUTING.md: Void maintainer nick change
Jens Peters [Sun, 25 Feb 2024 19:31:16 +0000 (20:31 +0100)]
docs: add sendEventsMode to libinput snippet
Consolatis [Sat, 24 Feb 2024 22:16:55 +0000 (23:16 +0100)]
src/xdg-popup.c: delay popup unconstrain until after first commit
Fixes: #1372
Consolatis [Sat, 24 Feb 2024 22:05:02 +0000 (23:05 +0100)]
src/layers.c: delay popup unconstrain until after first commit
Fixes: #1372
Weblate [Sat, 24 Feb 2024 22:23:23 +0000 (23:23 +0100)]
Translation updates from weblate
Co-authored-by: Sabri Ünal <libreajans@gmail.com>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/tr/
Translation: Labwc/labwc
Sachin Bhat [Sun, 25 Jun 2023 23:36:54 +0000 (07:36 +0800)]
config: support libinput sendEventsMode
This allows to enable / disable libinput devices.
Co-Authored-By: @Consolatis
Jens Peters [Sat, 24 Feb 2024 18:12:56 +0000 (19:12 +0100)]
seat: fix configure condition for click method
Exclude none (zero) from the bitmask test , otherwise
the bitmask test is always true when click method is
configured to 'none' and as a result the configuration
will be skipped.
Consolatis [Thu, 22 Feb 2024 20:24:05 +0000 (21:24 +0100)]
src/output.c: log when disabling adaptive_sync on a nested labwc
Consolatis [Thu, 22 Feb 2024 20:22:28 +0000 (21:22 +0100)]
src/output.c: notify clients about config errors
Preliminary fix for #1525.
Based on the protocol we should also revert all
previously correctly committed outputs. #1528
is doing just that but may cause regressions so
we need a short term solution and then deal with
potential issues in #1528 after the release.
Johan Malm [Mon, 19 Feb 2024 22:01:27 +0000 (22:01 +0000)]
README.md: Add screenshot description
...and use the png files on the labwc website rather than imgur.
Fixes: #1363
Weblate [Wed, 21 Feb 2024 14:23:23 +0000 (15:23 +0100)]
Translation updates from weblate
Co-authored-by: A S Alam <amanpreet.alam@gmail.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: winerysearch <david.fitala@gmail.com>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/hu/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/pa/
Translation: Labwc/labwc
Marvin Dostal [Wed, 21 Feb 2024 17:19:48 +0000 (18:19 +0100)]
Add click method libinput option (#1416)
<libinput>
<device>
<clickMethod>none|buttonAreas|clickfinger</clickMethod>
</device>
</libinput>
Andrew J. Hesford [Thu, 1 Feb 2024 21:56:54 +0000 (16:56 -0500)]
edges: better ignore edges of windows not on same output as moving view
Consolatis [Fri, 9 Feb 2024 04:12:00 +0000 (05:12 +0100)]
src/debug.c: detect more scene trees
Also
- resolve workspaces names and view app_id
- truncate everything
Consolatis [Thu, 8 Feb 2024 13:23:06 +0000 (14:23 +0100)]
edges: do not apply resistance to invisible edges
Andrew J. Hesford [Sun, 11 Feb 2024 00:22:56 +0000 (19:22 -0500)]
CI: update Void-musl base image
Consolatis [Sat, 10 Feb 2024 16:18:18 +0000 (17:18 +0100)]
CI: add release build step
Consolatis [Sat, 10 Feb 2024 17:16:10 +0000 (18:16 +0100)]
src/ssd: ensure we crash properly when compiled without asserts
Consolatis [Sat, 10 Feb 2024 17:02:30 +0000 (18:02 +0100)]
Prevent 'unused variable' warnings when compiled without asserts
Consolatis [Sat, 10 Feb 2024 16:25:27 +0000 (17:25 +0100)]
src/seat.c: provide NULL fallback for output name
This fixes a warning when doing a release build.
Consolatis [Sat, 10 Feb 2024 17:41:58 +0000 (18:41 +0100)]
CI: try to use system wlroots
Andrew J. Hesford [Thu, 8 Feb 2024 15:13:33 +0000 (10:13 -0500)]
view: cancel interactive resize when shading
Weblate [Tue, 30 Jan 2024 08:23:13 +0000 (09:23 +0100)]
Translation updates from weblate
Co-authored-by: Heimen Stoffels <vistausss@fastmail.com>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.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>
Co-authored-by: bittin <bittin@reimu.nl>
Co-authored-by: daniel <punished.haddock@proton.me>
Co-authored-by: kmephistoh <kanhaosmile@gmail.com>
Co-authored-by: pixis1 <vaninpixel89@gmail.com>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/
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/nl/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/pl/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/pt/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/ru/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/sv/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/uk/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/zh_CN/
Translation: Labwc/labwc
Johan Malm [Wed, 7 Feb 2024 22:13:57 +0000 (22:13 +0000)]
Merge pull request #1491 from Consolatis/feature/fix_invisible_resize_area
src/ssd: allow invisible resize area across outputs
Ph42oN [Wed, 7 Feb 2024 21:17:17 +0000 (23:17 +0200)]
output: allow changing adaptive sync state
Fixes: #1412
Andrew J. Hesford [Wed, 7 Feb 2024 20:44:42 +0000 (15:44 -0500)]
Merge pull request #1508 from ahesford/follow_the_white_rabbit
Refinements to edge behavior
Andrew J. Hesford [Tue, 6 Feb 2024 16:26:42 +0000 (11:26 -0500)]
resistance: only resist "entry" into another window space
Consolatis [Wed, 31 Jan 2024 21:09:15 +0000 (22:09 +0100)]
src/ssd: allow invisible resize area across outputs
This uses the new `view->outputs` bitset to calculate the intersection
with *all* outputs the view is currently visible on.
This ensures that the invisible resize handle works across outputs
while still making sure that it won't leak into neighboring ones just
because it is positioned closely to an output edge (either manually,
maximized or snapped via SnapToEdge or SnapToRegion).
Co-Authored-By: @johanmalm
Fixes: #1486
Reported-By: @lurch
Consolatis [Wed, 31 Jan 2024 21:07:13 +0000 (22:07 +0100)]
src/view.c: store outputs the view is visible on
Consolatis [Mon, 5 Feb 2024 14:16:16 +0000 (15:16 +0100)]
src/theme.c: minor code improvements
Consolatis [Sun, 4 Feb 2024 22:08:05 +0000 (23:08 +0100)]
src/theme.c: use rounded hover overlays
Fixes: #1504
Andrew J. Hesford [Tue, 6 Feb 2024 15:41:15 +0000 (10:41 -0500)]
edges: weaken traversal requirement for applying resistance
Andrew J. Hesford [Tue, 6 Feb 2024 15:00:48 +0000 (10:00 -0500)]
resistance: prevent "snapping" when windows change direction near edges
Consolatis [Tue, 6 Feb 2024 01:09:04 +0000 (02:09 +0100)]
README.md: fix spelling
Reported-by: tyzef
Andrew J. Hesford [Fri, 2 Feb 2024 19:43:52 +0000 (14:43 -0500)]
edges: limit edge attraction and resistance...
...to edges actually encountered by motion during interactive moves and
resizes.
In addition, ignore edge resistance and attraction for minimized views.
Rick Calixte [Mon, 22 Jan 2024 19:44:58 +0000 (14:44 -0500)]
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
Consolatis [Sat, 3 Feb 2024 21:51:09 +0000 (22:51 +0100)]
CONTRIBUTING.md: add Debian maintainer
Consolatis [Fri, 2 Feb 2024 20:56:58 +0000 (21:56 +0100)]
src/desktop.c: reduce OSD log spam on hover
Johan Malm [Fri, 2 Feb 2024 19:28:26 +0000 (19:28 +0000)]
NEWS.md: s/under-cursor/cursor/
Andrew J. Hesford [Fri, 2 Feb 2024 17:03:20 +0000 (12:03 -0500)]
view: respect rc.gap when moving to cursor
Fixes: #1494
Andrew J. Hesford [Tue, 30 Jan 2024 21:15:14 +0000 (16:15 -0500)]
NEWS.md: note changes in snapping behavior
Andrew J. Hesford [Thu, 1 Feb 2024 14:44:44 +0000 (09:44 -0500)]
edges: only snap to neighbors on outputs containing the changing view
Andrew J. Hesford [Thu, 1 Feb 2024 14:41:54 +0000 (09:41 -0500)]
edges: simplify output edge validation
Andrew J. Hesford [Tue, 30 Jan 2024 19:41:33 +0000 (14:41 -0500)]
view: better honor usable areas when changing outputs...
...in view_move_to_edge. If a view is fully within the usable area of
its original output, it should be fully within the usable area (if
possible) on its new output.
Andrew J. Hesford [Tue, 30 Jan 2024 20:19:17 +0000 (15:19 -0500)]
Merge pull request #1482 from ahesford/whats_in_the_box
Comprehensive snapping/resistance rewrite
Andrew J. Hesford [Tue, 23 Jan 2024 18:44:40 +0000 (13:44 -0500)]
edges, resistance, snap: unified resistance and snapping engine
Andrew J. Hesford [Tue, 23 Jan 2024 17:19:42 +0000 (12:19 -0500)]
placement: consider gaps when placing new windows
Johan Malm [Tue, 30 Jan 2024 18:02:28 +0000 (18:02 +0000)]
Merge pull request #1463 from ahesford/boris-and-doris
view, xdg: notify clients when tiling windows
Andrew J. Hesford [Tue, 23 Jan 2024 03:11:53 +0000 (22:11 -0500)]
xdg: add snapping.notifyClient option to control tiling events
Andrew J. Hesford [Tue, 23 Jan 2024 00:04:16 +0000 (19:04 -0500)]
interactive: reset tiled state when dragging out of snapped position
This ensures that client-side decorations (and maybe other client
behaviors) behave intuitively during interative moves, but means that
drag to snapped position -> drag to maximize -> un-maximize
will put the window back to its natural geometry (saved before the first
snap) rather than back to the snapped position. This is a change in
behavior, but a) simplifies the logic a bit, because the tiled state is
always in sync with the window geometry and b) in some sense is "more
correct", because the window has been "visually" un-tiled the minute the
window starts dragging.
Note that maximizing using an action (including the button) a window
that has been snapped and then un-maximizing the window will put the
window back to the snapped position, as it always has.
Andrew J. Hesford [Mon, 22 Jan 2024 20:38:14 +0000 (15:38 -0500)]
view, xdg: notify clients when tiling windows
Johan Malm [Mon, 29 Jan 2024 21:51:23 +0000 (21:51 +0000)]
Merge pull request #1487 from ahesford/dont_think_about_elephants
xdg: make sure wlroots knows client size before activation
Andrew J. Hesford [Mon, 29 Jan 2024 20:07:27 +0000 (15:07 -0500)]
xdg: make sure wlroots always knows the correct client size
redtide [Fri, 26 Jan 2024 16:17:16 +0000 (17:17 +0100)]
NEWS.md: fix indentation
Jens Peters [Fri, 26 Jan 2024 15:29:02 +0000 (16:29 +0100)]
NEWS.md: wrap xml in markdown code blocks
Consolatis [Wed, 24 Jan 2024 17:06:57 +0000 (18:06 +0100)]
xwayland: support querying window types
Andrew J. Hesford [Thu, 25 Jan 2024 15:45:59 +0000 (10:45 -0500)]
view: ensure midpoint is visible on layout change
Fixes: #1476.
Johan Malm [Wed, 24 Jan 2024 21:39:46 +0000 (21:39 +0000)]
environment: add Thunderbird to MOZ_ENABLE_WAYLAND description
Johan Malm [Thu, 28 Dec 2023 22:22:54 +0000 (22:22 +0000)]
NEWS.md: update for 0.7.1
John Lindgren [Tue, 23 Jan 2024 23:22:56 +0000 (18:22 -0500)]
xwayland: prevent crash due to unexpected surface dissociate events
Fixes #1360
Fixes #1466
Consolatis [Mon, 22 Jan 2024 14:22:26 +0000 (15:22 +0100)]
src/output.c: expose output configuration test to clients
Consolatis [Mon, 22 Jan 2024 14:21:18 +0000 (15:21 +0100)]
src/output.c: properly test new output configurations
Fixes #1458