Commit graph

2237 commits

Author SHA1 Message Date
Andrew J. Hesford
0af7bc886a docs/labwc.1: restructure, document session management 2024-03-04 01:57:32 +01:00
Andrew J. Hesford
c9d08f8218 session: only update activation environment...
...when running DRM backend or by explicit request
2024-03-04 01:57:32 +01:00
David F
22fe8cf546
session.c: updated dbus activation environment with more env vars
Fixes: #694
2024-03-03 18:47:58 +01:00
Andrew J. Hesford
f90b7dca2a session: run shutdown script, clean up activation env before exit 2024-03-02 21:30:03 -05:00
Johan Malm
4ddeb3cd42 action: reduce MoveToOutput logging 2024-03-02 21:23:01 +00:00
Johan Malm
3c3bcc2765 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.
2024-03-02 21:23:01 +00:00
Johan Malm
7e338fc365 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
2024-03-02 21:23:01 +00:00
Birger Schacht
1ea7e8b494 fix: typo in labwc-config.5.scd
specifc -> specific
2024-03-02 08:44:09 +01:00
01micko
5b2b1c31ab CONTRIBUTING.md: correct the instructions for adding a locale code 2024-03-02 02:48:02 +01:00
zenobit
5a70027e30 Add cs language 2024-03-02 02:44:55 +01:00
Johan Malm
59014e5071 build: bump version to 0.7.1 2024-03-01 21:18:02 +00:00
Johan Malm
e734519990 NEWS.md: update for 0.7.1 2024-03-01 21:13:37 +00:00
Weblate
9b47a5e11e 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
2024-02-29 21:50:15 +00:00
Consolatis
43e29f1f8d 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.
2024-02-28 20:51:17 +00:00
Consolatis
d3c5b0ebb8 CONTRIBUTING.md: Void maintainer nick change 2024-02-28 19:30:31 +01:00
Jens Peters
7110b7cf3e docs: add sendEventsMode to libinput snippet 2024-02-25 20:35:03 +01:00
Consolatis
ccbc75571a src/xdg-popup.c: delay popup unconstrain until after first commit
Fixes: #1372
2024-02-25 11:49:03 +00:00
Consolatis
598ab9bcff src/layers.c: delay popup unconstrain until after first commit
Fixes: #1372
2024-02-25 11:49:03 +00:00
Weblate
fb1a0a2bdf 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
2024-02-24 20:37:00 -05:00
Sachin Bhat
6fb06c54c2 config: support libinput sendEventsMode
This allows to enable / disable libinput devices.

Co-Authored-By: @Consolatis
2024-02-24 21:36:53 +01:00
Jens Peters
9456b50983 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.
2024-02-24 20:39:54 +01:00
Consolatis
7adf5533f9 src/output.c: log when disabling adaptive_sync on a nested labwc 2024-02-22 23:40:03 +01:00
Consolatis
d69faffc4e 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.
2024-02-22 23:40:03 +01:00
Johan Malm
1aa906e0de README.md: Add screenshot description
...and use the png files on the labwc website rather than imgur.

Fixes: #1363
2024-02-22 17:49:49 +01:00
Weblate
d00d3ec00b 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
2024-02-21 17:27:35 +00:00
Marvin Dostal
8be9c38460
Add click method libinput option (#1416)
<libinput>
  <device>
    <clickMethod>none|buttonAreas|clickfinger</clickMethod>
  </device>
</libinput>
2024-02-21 17:19:48 +00:00
Andrew J. Hesford
17bad48d87 edges: better ignore edges of windows not on same output as moving view 2024-02-14 22:08:31 -05:00
Consolatis
d3b0c69ec1 src/debug.c: detect more scene trees
Also
- resolve workspaces names and view app_id
- truncate everything
2024-02-14 21:25:41 +00:00
Consolatis
29a26d5ff7 edges: do not apply resistance to invisible edges 2024-02-14 21:20:45 +00:00
Andrew J. Hesford
551feaca0a CI: update Void-musl base image 2024-02-11 01:55:22 +01:00
Consolatis
118a62cb56 CI: add release build step 2024-02-10 19:22:12 +01:00
Consolatis
7500120670 src/ssd: ensure we crash properly when compiled without asserts 2024-02-10 19:22:12 +01:00
Consolatis
a5c6b2f83d Prevent 'unused variable' warnings when compiled without asserts 2024-02-10 19:22:12 +01:00
Consolatis
e9552fb661 src/seat.c: provide NULL fallback for output name
This fixes a warning when doing a release build.
2024-02-10 19:22:12 +01:00
Consolatis
8709962068 CI: try to use system wlroots 2024-02-10 19:22:12 +01:00
Andrew J. Hesford
6c87254146 view: cancel interactive resize when shading 2024-02-08 17:33:23 +00:00
Weblate
a8952913bc 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
2024-02-07 22:16:50 +00:00
Johan Malm
8b9ea7b343
Merge pull request #1491 from Consolatis/feature/fix_invisible_resize_area
src/ssd: allow invisible resize area across outputs
2024-02-07 22:13:57 +00:00
Ph42oN
f7e811f2fa
output: allow changing adaptive sync state
Fixes: #1412
2024-02-07 22:17:17 +01:00
Andrew J. Hesford
2c4f7e86dc
Merge pull request #1508 from ahesford/follow_the_white_rabbit
Refinements to edge behavior
2024-02-07 15:44:42 -05:00
Andrew J. Hesford
8a0f1f9355 resistance: only resist "entry" into another window space 2024-02-06 11:26:42 -05:00
Consolatis
b013cbba3a 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
2024-02-06 17:24:21 +01:00
Consolatis
382068e452 src/view.c: store outputs the view is visible on 2024-02-06 17:23:45 +01:00
Consolatis
e480c57445 src/theme.c: minor code improvements 2024-02-06 16:47:05 +01:00
Consolatis
bfd9437fc4 src/theme.c: use rounded hover overlays
Fixes: #1504
2024-02-06 16:47:05 +01:00
Andrew J. Hesford
2262851237 edges: weaken traversal requirement for applying resistance 2024-02-06 10:41:15 -05:00
Andrew J. Hesford
c01bf3f319 resistance: prevent "snapping" when windows change direction near edges 2024-02-06 10:00:52 -05:00
Consolatis
e52ccfbcf3 README.md: fix spelling
Reported-by: tyzef
2024-02-06 02:11:15 +01:00
Andrew J. Hesford
cf34e60240 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.
2024-02-05 22:05:22 +00:00
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