]> git.mdlowis.com Git - proto/labwc.git/log
proto/labwc.git
23 months agoCI: ensure Void has a font installed
Consolatis [Sat, 16 Mar 2024 17:16:44 +0000 (18:16 +0100)]
CI: ensure Void has a font installed

Otherwise the runtime test randomly fails due to
strange pango behavior. This is a workaround for
the issue and not a permanent fix.

A full investigation into pango internals is required
to figure out why `pango_layout_get_extents()` returns
invalid data after the first call. See PR #1627 for a
testcase.

23 months agoCI: rewrite smoke test and support LABWC_RUNS env var
Consolatis [Sat, 16 Mar 2024 17:02:01 +0000 (18:02 +0100)]
CI: rewrite smoke test and support LABWC_RUNS env var

23 months agosrc/common/buf.c: enhance the buffer API
Consolatis [Sat, 16 Mar 2024 03:39:45 +0000 (04:39 +0100)]
src/common/buf.c: enhance the buffer API

There is at least one user of the buffer API that reuse a single
buffer by just resetting `buf.len` to `0`. This works as long as
the new user of the buffer actually adds something to the buffer.

However, if we don't add anything but still provide `buf.buf` to
a consumer, the old content will be re-used.

This patch thus adds two new clearing variants to the buffer API:
- `buf_clear()` which doesn't reset the internal allocations
- `buf_reset()` which does free the internal allocations

Additionally, this patch makes `buffer_add_char()` public which
allows adding single characters to an existing buffer. This will
be used in a future PR which implements custom format strings for
the OSD.

23 months agoosd: add window-switcher field content types (#1623)
droc12345 [Sat, 16 Mar 2024 15:28:37 +0000 (10:28 -0500)]
osd: add window-switcher field content types (#1623)

...`workspace`, `state`, `type_short` and `output`.

Example usage:

    <windowSwitcher allWorkspaces="yes">
      <fields>
        <field content="workspace" width="5%" />
        <field content="state" width="3%" />
        <field content="type_short" width="3%" />
        <field content="output" width="9%" />
        <field content="identifier" width="30%" />
        <field content="title" width="50%" />
      </fields>
    </windowSwitcher>

23 months agoTranslation updates from weblate
Weblate [Fri, 15 Mar 2024 16:23:30 +0000 (17:23 +0100)]
Translation updates from weblate

Co-authored-by: Hiroaki Yamamoto <hrak1529@gmail.com>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/ja/
Translation: Labwc/labwc

23 months agoTranslation updates from weblate
Weblate [Tue, 12 Mar 2024 21:48:48 +0000 (22:48 +0100)]
Translation updates from weblate

Co-authored-by: Abdullah Albaroty <albaroty@gmail.com>
Co-authored-by: Hiroaki Yamamoto <hrak1529@gmail.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: alwanasary <baity.jannati@gmail.com>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/ar/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/id/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/ja/
Translation: Labwc/labwc

23 months agoIME: support IME popup
tokyo4j [Thu, 22 Feb 2024 18:50:55 +0000 (03:50 +0900)]
IME: support IME popup

23 months agoCI: add simple runtime test
Consolatis [Wed, 13 Mar 2024 14:26:16 +0000 (15:26 +0100)]
CI: add simple runtime test

23 months agoaction: allow client-menu to open at mouse cursor
Andrew J. Hesford [Sun, 10 Mar 2024 18:28:41 +0000 (14:28 -0400)]
action: allow client-menu to open at mouse cursor

23 months agosession: Don't close a null dir in read_environment_dir
Scarcely There [Wed, 13 Mar 2024 05:22:49 +0000 (00:22 -0500)]
session: Don't close a null dir in read_environment_dir

Closes: #1615 [via git-merge-pr]
23 months agosession: abort process_line early if line contains no key
Andrew J. Hesford [Wed, 13 Mar 2024 10:14:55 +0000 (06:14 -0400)]
session: abort process_line early if line contains no key

23 months agokeyboard: use 'us' as fallback for XKB_DEFAULT_LAYOUT
Johan Malm [Mon, 11 Mar 2024 22:04:52 +0000 (22:04 +0000)]
keyboard: use 'us' as fallback for XKB_DEFAULT_LAYOUT

...if keymap cannot be created for the provided XKB_DEFAULT_LAYOUT.

If keymap still cannot be created, exit with a helpful message to avoid
crash that is hard to understand.

Fixes: https://github.com/stefonarch/lxqt-labwc-session/issues/7
23 months agoReload cursor theme and size on reconfigure
Simon Long [Tue, 12 Mar 2024 19:53:41 +0000 (19:53 +0000)]
Reload cursor theme and size on reconfigure

Fixes: #1587
23 months agodocs/labwc-config.5: fix "environment directory" typo
Andrew J. Hesford [Tue, 12 Mar 2024 11:35:42 +0000 (07:35 -0400)]
docs/labwc-config.5: fix "environment directory" typo

23 months agoworkspaces: add ability to set prefix when using number argument
droc12345 [Mon, 11 Mar 2024 22:19:03 +0000 (17:19 -0500)]
workspaces: add ability to set prefix when using number argument

23 months agosession: process environment.d and allow empty variables
Andrew J. Hesford [Sat, 9 Mar 2024 17:03:30 +0000 (12:03 -0500)]
session: process environment.d and allow empty variables

1. All '*.env' files in an 'environment.d' directory alongside each
   potential 'environment' file will be parsed and added to the
   environment.

2. For the purposes of configuration merging, an environment definition
   exists at one level if either the 'environment' file is defined or
   its corresponding 'environment.d' contains any valid '*.env' file.

3. Variable declarations of the form "VARIABLE=", with no following
   value, will be written to the environment as empty strings.

23 months agodocs/labwc-config.5.scd: fix typo
Standreas [Mon, 11 Mar 2024 07:17:52 +0000 (08:17 +0100)]
docs/labwc-config.5.scd: fix typo

23 months agoREADME.md: add alt-space binding
Jens Peters [Sun, 10 Mar 2024 18:38:33 +0000 (19:38 +0100)]
README.md: add alt-space binding

That one was missing in the default bindings.

2 years agocursor: process layer subsurfaces in `cursor_button_press()`
Johan Malm [Thu, 7 Mar 2024 19:15:02 +0000 (19:15 +0000)]
cursor: process layer subsurfaces in `cursor_button_press()`

...to give keyboard focus to layer-shell clients if exclusive or on-demand
interactivity is set, so that menu popups can be navigated with the
keyboard. This still only works if the client is in top (or overlay)
layers. Support for bottom and background to be done as a separate patch
set.

Revert 06b19f0 to process layer-shell subsurfaces in
`cursor_button_press()`, but only when their parent layer-shell surface
has keyboard interactivity.

Fix bug in `get_cursor_context()` which resulted in layer-surfaces not
being detected correctly.

Background:

Commit 06b19f0 (issue #1131) disabled processing of layer-shell
subsurfaces in cursor_button_press() because when pressing a task in
Waybar (Gtk panel using layer-shell subsurfaces) the foreign-toplevel
minimize-raise action did not work correctly as the action logic relied on
the recipient window being activated and by clicking on the panel, the
panel itself was both surface-focusd and activated (and thus the window
de-activated).

The un-intended consequence was that by not responding to layer-subsurface
cursor buttons presses, layer-shell clients (such as panels) were not
given keyboard focus if they indeed wanted it by setting exclusive or
on-demand keyboard interactivity.

The good news is that that following @jlindgren90's refactoring (various)
the only place where we call `view_set_actived()` is in
`focus_change_notify()` in `seat.c` and we now only do it for views
(bb8f0bc).

Another side-effect (positive) of 06b19f0 was that a Waybar dnd bug was
fixed (pointer-serial-number validation failure).

Have tested with sfwbar, waybar and tint (test-panel) the following
results:
- Minimize-raise works even when on-demand keyboard interactivity is set
- Keyboard interactivity is given popup-menus (sfwbar and tint) when the
  panels are in the top layer (support for bottom will be as a separate
  patch set)
- Waybar dnd still works (even when hard-coding keyboard-interactivity)

References:
- https://github.com/labwc/labwc/commit/bb8f0bc960dca192b8579d67297c0586ec20bfe0
- https://github.com/labwc/labwc/blob/40ce95a68cf19796dd67b0527fddfdbe46181805/src/seat.c#L481-L483
- https://github.com/labwc/labwc/blob/40ce95a68cf19796dd67b0527fddfdbe46181805/src/dnd.c#L24
- https://github.com/johanmalm/tint

Fixes: #1572
2 years agoFix various typos across the codebase
Hiroaki Yamamoto [Fri, 8 Mar 2024 12:59:20 +0000 (21:59 +0900)]
Fix various typos across the codebase

2 years agoAdd optional headless fallback output
Consolatis [Thu, 7 Mar 2024 01:11:46 +0000 (02:11 +0100)]
Add optional headless fallback output

This allows configuring a headless fallback output that
is automatically created whenever there is no other output
around. It is destroyed when a new output is discovered.

It can be enabled by setting the environment variable
LABWC_FALLBACK_OUTPUT to the desired output name.

The feature benefits applications like wayvnc the most
as there is always an output available to connect to.

Co-Authored-By: Simon Long <simon@raspberrypi.com>
2 years agoview: validate move/resize request from clients
tokyo4j [Thu, 7 Mar 2024 15:53:39 +0000 (00:53 +0900)]
view: validate move/resize request from clients

Move/resize requests from xwayland views and xdg toplevels should be
ignored when the view is not pressed.

This is relevant for touchpad taps with <tapAndDrag> disabled.

When the user taps the client surface (e.g. chromium and mpv) with the
setting above, libinput sends button press & release signals so quickly
that the compositor receives move/resize request from the client AFTER
the button release signal is processed, so `interactive_finish()` is
never called.

2 years agostyle: prettify comments
tokyo4j [Thu, 7 Mar 2024 15:45:04 +0000 (00:45 +0900)]
style: prettify comments

Prettify comments formatted by clang-format at commit 77328698

2 years agosrc/output.c: refactor virtual output related functions
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.

2 years agoTranslation updates from weblate
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

2 years agosrc/action.c: remove assumption about MoveToOutput direction being valid
Consolatis [Wed, 6 Mar 2024 03:46:40 +0000 (04:46 +0100)]
src/action.c: remove assumption about MoveToOutput direction being valid

2 years agosrc/action.c: fix MoveToOutput action by renaming 'name' argument
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!)
2 years agodocs/labwc.1: fix LABWC_PWD -> LABWC_PID typo
Andrew J. Hesford [Tue, 5 Mar 2024 22:50:53 +0000 (17:50 -0500)]
docs/labwc.1: fix LABWC_PWD -> LABWC_PID typo

2 years agoosd: show preview for windows on other workspaces
Johan Malm [Tue, 5 Mar 2024 21:01:39 +0000 (21:01 +0000)]
osd: show preview for windows on other workspaces

Written-by: @Consolatis
2 years agoosd: only call wl_array_{init,relesase} once
Johan Malm [Mon, 4 Mar 2024 20:30:31 +0000 (20:30 +0000)]
osd: only call wl_array_{init,relesase} once

2 years agoosd: optionally show windows on all workspaces
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">`

2 years agoosd: do not use server->workspace_current->tree
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.

2 years agoosd: restore preview at end of cycling
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.

2 years agowindow-rules: add root-toplevel critiera
Johan Malm [Tue, 30 Jan 2024 18:04:43 +0000 (18:04 +0000)]
window-rules: add root-toplevel critiera

2 years agoosd: include always-on-top views in window-switcher
Johan Malm [Thu, 25 Jan 2024 19:54:59 +0000 (19:54 +0000)]
osd: include always-on-top views in window-switcher

2 years agodesktop: refactor desktop_cycle_view()
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

2 years agoview: remove view_is_related(), no longer used
John Lindgren [Wed, 14 Feb 2024 08:13:12 +0000 (03:13 -0500)]
view: remove view_is_related(), no longer used

2 years agoseat: don't deactivate view for any non-view surface
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.

2 years agoRevert "desktop: allow re-focus between "globally active" views of the same PID"
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.

2 years agoxwayland: remove "try to focus on parent surface" logic
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).

2 years agoxwayland: treat Globally Active windows according to type
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
2 years agoHandle touch on headerbar (#1550)
Simon Long [Tue, 5 Mar 2024 20:41:17 +0000 (20:41 +0000)]
Handle touch on headerbar (#1550)

...using cursor emulate events.

2 years agoIME: support input method
tokyo4j [Fri, 9 Feb 2024 07:52:37 +0000 (16:52 +0900)]
IME: support input method

2 years agosrc/server.c: filter out xwayland shell for usual clients
Consolatis [Sun, 25 Feb 2024 23:54:57 +0000 (00:54 +0100)]
src/server.c: filter out xwayland shell for usual clients

2 years agosrc/output.c: restore flicker free resize when running nested
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.

2 years agoAdd weblate information (#1581)
Standreas [Mon, 4 Mar 2024 21:20:08 +0000 (22:20 +0100)]
Add weblate information (#1581)

...and some sub-headings

2 years agokey-state: use struct assignment
John Lindgren [Sat, 11 Nov 2023 04:44:41 +0000 (23:44 -0500)]
key-state: use struct assignment

2 years agodocs/labwc.1: restructure, document session management
Andrew J. Hesford [Mon, 4 Mar 2024 00:33:10 +0000 (19:33 -0500)]
docs/labwc.1: restructure, document session management

2 years agosession: only update activation environment...
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

2 years agosession.c: updated dbus activation environment with more env vars
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
2 years agosession: run shutdown script, clean up activation env before exit
Andrew J. Hesford [Sun, 18 Feb 2024 17:23:14 +0000 (12:23 -0500)]
session: run shutdown script, clean up activation env before exit

2 years agoaction: reduce MoveToOutput logging
Johan Malm [Sat, 2 Mar 2024 19:40:33 +0000 (19:40 +0000)]
action: reduce MoveToOutput logging

2 years agoview: add MoveToOutput `wrap` attribute
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.

2 years agoview: fix view_get_adjacent_output() bug
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
2 years agofix: typo in labwc-config.5.scd
Birger Schacht [Sat, 2 Mar 2024 07:41:13 +0000 (08:41 +0100)]
fix: typo in labwc-config.5.scd

specifc -> specific

2 years agoCONTRIBUTING.md: correct the instructions for adding a locale code
01micko [Sat, 2 Mar 2024 01:39:36 +0000 (11:39 +1000)]
CONTRIBUTING.md: correct the instructions for adding a locale code

2 years agoAdd cs language
zenobit [Sat, 2 Mar 2024 00:01:22 +0000 (01:01 +0100)]
Add cs language

2 years agobuild: bump version to 0.7.1
Johan Malm [Fri, 1 Mar 2024 21:16:21 +0000 (21:16 +0000)]
build: bump version to 0.7.1

2 years agoNEWS.md: update for 0.7.1
Johan Malm [Fri, 2 Feb 2024 20:55:16 +0000 (20:55 +0000)]
NEWS.md: update for 0.7.1

2 years agoTranslation updates from weblate
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

2 years agodocs/rc.xml: remove gap from the example config
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.

2 years agoCONTRIBUTING.md: Void maintainer nick change
Consolatis [Wed, 28 Feb 2024 18:28:51 +0000 (19:28 +0100)]
CONTRIBUTING.md: Void maintainer nick change

2 years agodocs: add sendEventsMode to libinput snippet
Jens Peters [Sun, 25 Feb 2024 19:31:16 +0000 (20:31 +0100)]
docs: add sendEventsMode to libinput snippet

2 years agosrc/xdg-popup.c: delay popup unconstrain until after first commit
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
2 years agosrc/layers.c: delay popup unconstrain until after first commit
Consolatis [Sat, 24 Feb 2024 22:05:02 +0000 (23:05 +0100)]
src/layers.c: delay popup unconstrain until after first commit

Fixes: #1372
2 years agoTranslation updates from weblate
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

2 years agoconfig: support libinput sendEventsMode
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
2 years agoseat: fix configure condition for click method
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.

2 years agosrc/output.c: log when disabling adaptive_sync on a nested labwc
Consolatis [Thu, 22 Feb 2024 20:24:05 +0000 (21:24 +0100)]
src/output.c: log when disabling adaptive_sync on a nested labwc

2 years agosrc/output.c: notify clients about config errors
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.

2 years agoREADME.md: Add screenshot description
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
2 years agoTranslation updates from weblate
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

2 years agoAdd click method libinput option (#1416)
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>

2 years agoedges: better ignore edges of windows not on same output as moving view
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

2 years agosrc/debug.c: detect more scene trees
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

2 years agoedges: do not apply resistance to invisible edges
Consolatis [Thu, 8 Feb 2024 13:23:06 +0000 (14:23 +0100)]
edges: do not apply resistance to invisible edges

2 years agoCI: update Void-musl base image
Andrew J. Hesford [Sun, 11 Feb 2024 00:22:56 +0000 (19:22 -0500)]
CI: update Void-musl base image

2 years agoCI: add release build step
Consolatis [Sat, 10 Feb 2024 16:18:18 +0000 (17:18 +0100)]
CI: add release build step

2 years agosrc/ssd: ensure we crash properly when compiled without asserts
Consolatis [Sat, 10 Feb 2024 17:16:10 +0000 (18:16 +0100)]
src/ssd: ensure we crash properly when compiled without asserts

2 years agoPrevent 'unused variable' warnings when compiled without asserts
Consolatis [Sat, 10 Feb 2024 17:02:30 +0000 (18:02 +0100)]
Prevent 'unused variable' warnings when compiled without asserts

2 years agosrc/seat.c: provide NULL fallback for output name
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.

2 years agoCI: try to use system wlroots
Consolatis [Sat, 10 Feb 2024 17:41:58 +0000 (18:41 +0100)]
CI: try to use system wlroots

2 years agoview: cancel interactive resize when shading
Andrew J. Hesford [Thu, 8 Feb 2024 15:13:33 +0000 (10:13 -0500)]
view: cancel interactive resize when shading

2 years agoTranslation updates from weblate
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

2 years agoMerge pull request #1491 from Consolatis/feature/fix_invisible_resize_area
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

2 years agooutput: allow changing adaptive sync state
Ph42oN [Wed, 7 Feb 2024 21:17:17 +0000 (23:17 +0200)]
output: allow changing adaptive sync state

Fixes: #1412
2 years agoMerge pull request #1508 from ahesford/follow_the_white_rabbit
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

2 years agoresistance: only resist "entry" into another window space
Andrew J. Hesford [Tue, 6 Feb 2024 16:26:42 +0000 (11:26 -0500)]
resistance: only resist "entry" into another window space

2 years agosrc/ssd: allow invisible resize area across outputs
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
2 years agosrc/view.c: store outputs the view is visible on
Consolatis [Wed, 31 Jan 2024 21:07:13 +0000 (22:07 +0100)]
src/view.c: store outputs the view is visible on

2 years agosrc/theme.c: minor code improvements
Consolatis [Mon, 5 Feb 2024 14:16:16 +0000 (15:16 +0100)]
src/theme.c: minor code improvements

2 years agosrc/theme.c: use rounded hover overlays
Consolatis [Sun, 4 Feb 2024 22:08:05 +0000 (23:08 +0100)]
src/theme.c: use rounded hover overlays

Fixes: #1504
2 years agoedges: weaken traversal requirement for applying resistance
Andrew J. Hesford [Tue, 6 Feb 2024 15:41:15 +0000 (10:41 -0500)]
edges: weaken traversal requirement for applying resistance

2 years agoresistance: prevent "snapping" when windows change direction near edges
Andrew J. Hesford [Tue, 6 Feb 2024 15:00:48 +0000 (10:00 -0500)]
resistance: prevent "snapping" when windows change direction near edges

2 years agoREADME.md: fix spelling
Consolatis [Tue, 6 Feb 2024 01:09:04 +0000 (02:09 +0100)]
README.md: fix spelling

Reported-by: tyzef
2 years agoedges: limit edge attraction and resistance...
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.

2 years agomeson.build: install badges for labwc and migrate to data/
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

2 years agoCONTRIBUTING.md: add Debian maintainer
Consolatis [Sat, 3 Feb 2024 21:51:09 +0000 (22:51 +0100)]
CONTRIBUTING.md: add Debian maintainer

2 years agosrc/desktop.c: reduce OSD log spam on hover
Consolatis [Fri, 2 Feb 2024 20:56:58 +0000 (21:56 +0100)]
src/desktop.c: reduce OSD log spam on hover

2 years agoNEWS.md: s/under-cursor/cursor/
Johan Malm [Fri, 2 Feb 2024 19:28:26 +0000 (19:28 +0000)]
NEWS.md: s/under-cursor/cursor/