]> git.mdlowis.com Git - proto/labwc.git/log
proto/labwc.git
2 years agoedges: simplify output edge validation
Andrew J. Hesford [Thu, 1 Feb 2024 14:41:54 +0000 (09:41 -0500)]
edges: simplify output edge validation

2 years agoview: better honor usable areas when changing outputs...
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.

2 years agoMerge pull request #1482 from ahesford/whats_in_the_box
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

2 years agoedges, resistance, snap: unified resistance and snapping engine
Andrew J. Hesford [Tue, 23 Jan 2024 18:44:40 +0000 (13:44 -0500)]
edges, resistance, snap: unified resistance and snapping engine

2 years agoplacement: consider gaps when placing new windows
Andrew J. Hesford [Tue, 23 Jan 2024 17:19:42 +0000 (12:19 -0500)]
placement: consider gaps when placing new windows

2 years agoMerge pull request #1463 from ahesford/boris-and-doris
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

2 years agoxdg: add snapping.notifyClient option to control tiling events
Andrew J. Hesford [Tue, 23 Jan 2024 03:11:53 +0000 (22:11 -0500)]
xdg: add snapping.notifyClient option to control tiling events

2 years agointeractive: reset tiled state when dragging out of snapped position
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.

2 years agoview, xdg: notify clients when tiling windows
Andrew J. Hesford [Mon, 22 Jan 2024 20:38:14 +0000 (15:38 -0500)]
view, xdg: notify clients when tiling windows

2 years agoMerge pull request #1487 from ahesford/dont_think_about_elephants
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

2 years agoxdg: make sure wlroots always knows the correct client size
Andrew J. Hesford [Mon, 29 Jan 2024 20:07:27 +0000 (15:07 -0500)]
xdg: make sure wlroots always knows the correct client size

2 years agoNEWS.md: fix indentation
redtide [Fri, 26 Jan 2024 16:17:16 +0000 (17:17 +0100)]
NEWS.md: fix indentation

2 years agoNEWS.md: wrap xml in markdown code blocks
Jens Peters [Fri, 26 Jan 2024 15:29:02 +0000 (16:29 +0100)]
NEWS.md: wrap xml in markdown code blocks

2 years agoxwayland: support querying window types
Consolatis [Wed, 24 Jan 2024 17:06:57 +0000 (18:06 +0100)]
xwayland: support querying window types

2 years agoview: ensure midpoint is visible on layout change
Andrew J. Hesford [Thu, 25 Jan 2024 15:45:59 +0000 (10:45 -0500)]
view: ensure midpoint is visible on layout change

Fixes: #1476.
2 years agoenvironment: add Thunderbird to MOZ_ENABLE_WAYLAND description
Johan Malm [Wed, 24 Jan 2024 21:39:46 +0000 (21:39 +0000)]
environment: add Thunderbird to MOZ_ENABLE_WAYLAND description

2 years agoNEWS.md: update for 0.7.1
Johan Malm [Thu, 28 Dec 2023 22:22:54 +0000 (22:22 +0000)]
NEWS.md: update for 0.7.1

2 years agoxwayland: prevent crash due to unexpected surface dissociate events
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

2 years agosrc/output.c: expose output configuration test to clients
Consolatis [Mon, 22 Jan 2024 14:22:26 +0000 (15:22 +0100)]
src/output.c: expose output configuration test to clients

2 years agosrc/output.c: properly test new output configurations
Consolatis [Mon, 22 Jan 2024 14:21:18 +0000 (15:21 +0100)]
src/output.c: properly test new output configurations

Fixes #1458

2 years agointeractive: unify interactive_{cancel,finish} where possible
Andrew J. Hesford [Tue, 23 Jan 2024 13:54:02 +0000 (08:54 -0500)]
interactive: unify interactive_{cancel,finish} where possible

This also fixes a bug wherein dragging a window and pressing a hot-key
to maximize or fullscreen a window could leave a snap-region highlight
visible after the interactive move was canceled.

2 years agoresistance: properly handled shaded windows
Andrew J. Hesford [Tue, 23 Jan 2024 03:49:03 +0000 (22:49 -0500)]
resistance: properly handled shaded windows

2 years agoview: do not resize fullscreen windows
Jens Peters [Mon, 22 Jan 2024 22:52:33 +0000 (23:52 +0100)]
view: do not resize fullscreen windows

2 years agoview: fix early return condition
Jens Peters [Mon, 22 Jan 2024 22:14:25 +0000 (23:14 +0100)]
view: fix early return condition

2 years agodocs: describe MoveToOutput/FitToOutput action
Jens Peters [Mon, 22 Jan 2024 21:56:47 +0000 (22:56 +0100)]
docs: describe MoveToOutput/FitToOutput action

2 years agoaction: add FitToOutput
Jens Peters [Mon, 22 Jan 2024 21:56:18 +0000 (22:56 +0100)]
action: add FitToOutput

2 years agoaction: add MoveToOutput
Jens Peters [Sun, 21 Jan 2024 22:45:47 +0000 (23:45 +0100)]
action: add MoveToOutput

2 years agoview: add move_to_output() function
Jens Peters [Sun, 21 Jan 2024 22:44:27 +0000 (23:44 +0100)]
view: add move_to_output() function

2 years agoview: expose view_get_adjacent_output
Jens Peters [Sun, 21 Jan 2024 22:40:25 +0000 (23:40 +0100)]
view: expose view_get_adjacent_output

2 years agoview: allow overriding of cursor placement policy
Jens Peters [Sun, 21 Jan 2024 22:25:01 +0000 (23:25 +0100)]
view: allow overriding of cursor placement policy

2 years agoview: fix typo
Jens Peters [Sun, 21 Jan 2024 16:15:12 +0000 (17:15 +0100)]
view: fix typo

2 years agodocs: extend touch section
Jens Peters [Fri, 19 Jan 2024 09:37:33 +0000 (10:37 +0100)]
docs: extend touch section

2 years agoseat: re-map pointer to output on reconfigure
Jens Peters [Fri, 19 Jan 2024 09:12:44 +0000 (10:12 +0100)]
seat: re-map pointer to output on reconfigure

Makes testing easier, also consistent with other
devices types on reconfigure.

2 years agoseat: get output name from touch config for current device
Jens Peters [Fri, 19 Jan 2024 09:10:02 +0000 (10:10 +0100)]
seat: get output name from touch config for current device

The output name attached to the touch device has
still priority.

2 years agoconfig: add finding touch configurations
Jens Peters [Fri, 19 Jan 2024 09:07:52 +0000 (10:07 +0100)]
config: add finding touch configurations

2 years agoconfig: parse multiple touch configurations
Jens Peters [Fri, 19 Jan 2024 09:06:53 +0000 (10:06 +0100)]
config: parse multiple touch configurations

Also temporary disable touch output mapping.
Will be restored later.

2 years agoconfig: introduce touch config structure
Jens Peters [Fri, 19 Jan 2024 08:28:55 +0000 (09:28 +0100)]
config: introduce touch config structure

2 years agoinput: move function to config
Jens Peters [Wed, 17 Jan 2024 18:01:06 +0000 (19:01 +0100)]
input: move function to config

This function is only about rc, so fits better
in config.

2 years agoRemoved obsolete comment
Standreas [Mon, 22 Jan 2024 10:02:41 +0000 (11:02 +0100)]
Removed obsolete comment

"unshade" exists now.

2 years agoresistance: support negative strengths to indicate attractive snapping
Andrew J. Hesford [Sun, 21 Jan 2024 17:56:37 +0000 (12:56 -0500)]
resistance: support negative strengths to indicate attractive snapping

2 years agoresistance: add window-edge resistance for interactive moves/resizes
Andrew J. Hesford [Sun, 21 Jan 2024 02:59:46 +0000 (21:59 -0500)]
resistance: add window-edge resistance for interactive moves/resizes

2 years agoview: fix regression whereby cursor is not updated
Johan Malm [Fri, 19 Jan 2024 20:27:23 +0000 (20:27 +0000)]
view: fix regression whereby cursor is not updated

...on view destruction because focus_change_notify() in seat.c changes
server->active_view so the logic introduced by 6c6e406 (which checks if
view =! active_view) is no longer right.

The glitches described in the commit below have not come back.
https://github.com/labwc/labwc/commit/6c6e406507bfb0e9a809b74029b5b05b5a095768

Fixes #1393

2 years agostring-helpers.c: add string_empty()
Johan Malm [Fri, 19 Jan 2024 19:06:07 +0000 (19:06 +0000)]
string-helpers.c: add string_empty()

2 years agokeyboard: set keyboard layout on reconfigure
Simon Long [Tue, 16 Jan 2024 12:43:18 +0000 (12:43 +0000)]
keyboard: set keyboard layout on reconfigure

If keyboard-layout-per-toplevel-window is used, reset the group (index)
for each window on --reconfigure whenever the keymap has changed.

Refactor to use a common configure function for reconfigure and
keyboard-group creation.

Co-authored-by: @johanmalm
Fixes #1407

2 years agoHonour -c <file> on --reconfigure
Johan Malm [Thu, 18 Jan 2024 19:45:49 +0000 (19:45 +0000)]
Honour -c <file> on --reconfigure

2 years agoconfig: support merging multiple config files
Johan Malm [Tue, 9 Jan 2024 22:00:45 +0000 (22:00 +0000)]
config: support merging multiple config files

Add the -m|--merge-config command line option to iterate backwards over
XDG Base Dir paths and read config/theme files multiple times.

For example if both ~/.config/labwc/rc.xml and /etc/xdg/labwc/rc.xml
exist, the latter will be read first and then the former (if
--merge-config is enabled).

When $XDG_CONFIG_HOME is defined, make it replace (not augment)
$HOME/.config. Similarly, make $XDG_CONFIG_DIRS replace /etc/xdg when
defined.

XDG Base Dir Spec does not specify whether or not an application (or a
compositor!) should (a) define that only the file under the most important
base directory should be used, or (b) define rules for merging the
information from the different files.

ref: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

In the case of labwc there is a use-case for both positions, just to be
clear, the default behaviour, described by position (a) above, does NOT
change.

This change affects the following config/theme files:
  - rc.xml
  - menu.xml
  - autostart
  - environment
  - themerc
  - themerc-override
  - Theme buttons, for example max.xbm

Instead of caching global config/theme directories, create lists of paths
(e.g.  '/home/foo/.config/labwc/rc.xml', '/etc/xdg/labwc/rc.xml', etc).
This creates more common parsing logic and just reversing the direction
of iteration and breaks early if config-merge is not wanted.

Enable better fallback for themes. For example if a particular theme does
not exist in $HOME/.local/share/themes, it will be searched for in
~/.themes/ and so on. This also applies to theme buttons which now
fallback on an individual basis.

Avoid using stat() in most situations and just go straight to fopen().

Fixes #1406

2 years agobutton: save a few cycles by returning early
Johan Malm [Wed, 17 Jan 2024 21:50:53 +0000 (21:50 +0000)]
button: save a few cycles by returning early

...and in preparation for the merge-config patch, avoid building
directory lists for empty filenames.

2 years agoview: assign output on surface creation instead of mapping...
Andrew J. Hesford [Wed, 17 Jan 2024 18:12:35 +0000 (13:12 -0500)]
view: assign output on surface creation instead of mapping...

...and notify the client of the preferred output scale when doing so.
This should allow clients to better determine an optimal size if they
are initially configured (unmapped) with zero size.

In particular, this fixes an issue with foot:

    https://codeberg.org/dnkl/foot/issues/1579

2 years agoTranslation updates from weblate
Weblate [Sun, 7 Jan 2024 14:23:06 +0000 (15:23 +0100)]
Translation updates from weblate

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Co-authored-by: Jouni Järvinen <jounijarvis@gmail.com>
Co-authored-by: Masamichi Ito <ito32bit+github@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/de/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/ja/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/lt/
Translation: Labwc/labwc

2 years agokeyboard: cancel key repeat on vt change
Johan Malm [Sun, 14 Jan 2024 19:52:43 +0000 (19:52 +0000)]
keyboard: cancel key repeat on vt change

...(calling `wlr_session_change_vt()`) because when the session is
switched, the access to the keyboard is lost and therefore the RELEASE
event will not be passed to the compositor.

Fixes bug whereby compositor crashes on VT change on FreeBSD.

Fixes #1424

2 years agofeat: add Shade/Unshade/ToggleShade actions
Consolatis [Tue, 8 Aug 2023 01:39:35 +0000 (03:39 +0200)]
feat: add Shade/Unshade/ToggleShade actions

This builds on the work of @Consolatis in #1018.

Co-authored-by: Consolatis <35009135+Consolatis@users.noreply.github.com>
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
2 years agodocs: add touch section
Jens Peters [Sat, 13 Jan 2024 21:56:00 +0000 (22:56 +0100)]
docs: add touch section

2 years agoseat: re-map pointer to output on output change
Jens Peters [Sat, 13 Jan 2024 21:54:05 +0000 (22:54 +0100)]
seat: re-map pointer to output on output change

2 years agoseat: configure libinput for touch on reconfigure
Jens Peters [Sat, 13 Jan 2024 09:05:05 +0000 (10:05 +0100)]
seat: configure libinput for touch on reconfigure

2 years agoseat: remove not needed device type test
Jens Peters [Sat, 13 Jan 2024 09:03:25 +0000 (10:03 +0100)]
seat: remove not needed device type test

The device type is already validated in the calling
function.

2 years agoseat: re-map touch to output on output change
Jens Peters [Fri, 12 Jan 2024 23:25:45 +0000 (00:25 +0100)]
seat: re-map touch to output on output change

2 years agoseat: re-map touch to output on reconfigure
Jens Peters [Fri, 12 Jan 2024 23:25:19 +0000 (00:25 +0100)]
seat: re-map touch to output on reconfigure

2 years agoseat: map touch to configured output name
Jens Peters [Fri, 12 Jan 2024 23:25:08 +0000 (00:25 +0100)]
seat: map touch to configured output name

The output name linked to the touch device
has preference when set. This happens when
the compositor runs in nested mode.

2 years agoconfig: add touch output mapping configuration
Jens Peters [Fri, 12 Jan 2024 23:19:44 +0000 (00:19 +0100)]
config: add touch output mapping configuration

2 years agoFixed some typos, whitespace, periods, 80-column lines
Tomi Ollila [Sat, 13 Jan 2024 17:51:20 +0000 (19:51 +0200)]
Fixed some typos, whitespace, periods, 80-column lines

- typos: LINGUAS manually, rest with help of aspell(1)
- whitespace: some trailing spaces/tabs, one utf-8 NBSP (#xC2 #xA0)
- made most text in docs/ fit in max 80-column wide lines
- consistent trailing periods in sentences in labwc-actions.5.scd and
  labwc-config.5.scd; labwc-theme.5.scd had different consistency,
  changed it follow these other files with sentence-ending periods
- and ", respectively" (comma often used to separate)

2 years agodocs: fix element ending
Jens Peters [Fri, 12 Jan 2024 22:58:24 +0000 (23:58 +0100)]
docs: fix element ending

2 years agoview: fix crash when a minimized fullscreen window closes
bi4k8 [Thu, 11 Jan 2024 14:56:04 +0000 (14:56 +0000)]
view: fix crash when a minimized fullscreen window closes

Do not call view methods after invalidating an invariant of the view
(view->scene_tree != NULL)

2 years agomenu: run actions on button release
Johan Malm [Thu, 28 Dec 2023 22:44:59 +0000 (22:44 +0000)]
menu: run actions on button release

...and call actions after closing menus so that virtual keyboard input
caused by actions are sent to the surface with keyboard-focus rather
than being consumed by the open menu.

Fixes: #1366
2 years agodocs: extend tablet section
Jens Peters [Tue, 9 Jan 2024 05:58:42 +0000 (06:58 +0100)]
docs: extend tablet section

Also change order to be in line with the xml elements.

2 years agoseat: re-map tablet to output on output change
Jens Peters [Tue, 9 Jan 2024 05:58:35 +0000 (06:58 +0100)]
seat: re-map tablet to output on output change

2 years agoseat: re-map tablet to output on reconfigure
Jens Peters [Mon, 8 Jan 2024 17:45:49 +0000 (18:45 +0100)]
seat: re-map tablet to output on reconfigure

2 years agoseat: map tablet to output on init
Jens Peters [Sun, 7 Jan 2024 21:24:16 +0000 (22:24 +0100)]
seat: map tablet to output on init

2 years agoseat: extract function
Jens Peters [Sun, 7 Jan 2024 21:22:06 +0000 (22:22 +0100)]
seat: extract function

2 years agoseat: change order
Jens Peters [Sun, 7 Jan 2024 21:20:38 +0000 (22:20 +0100)]
seat: change order

More in line with other functions.

2 years agoconfig: add tablet output mapping configuration
Jens Peters [Sun, 7 Jan 2024 21:19:05 +0000 (22:19 +0100)]
config: add tablet output mapping configuration

Also add missing default for 'tablet.rotation'.

2 years agoconfig: change order
Jens Peters [Sun, 7 Jan 2024 21:18:06 +0000 (22:18 +0100)]
config: change order

More in line with the xml structure.

2 years agoinput: add missing new lines
Jens Peters [Sun, 7 Jan 2024 21:15:25 +0000 (22:15 +0100)]
input: add missing new lines

2 years agoMerge pull request #1419 from ahesford/bond-james-bond
Johan Malm [Tue, 9 Jan 2024 21:56:45 +0000 (21:56 +0000)]
Merge pull request #1419 from ahesford/bond-james-bond

view, xwayland: fixes for new size constraints

2 years agoxwayland: only constrain initial size for unsized clients
Andrew J. Hesford [Tue, 9 Jan 2024 01:12:45 +0000 (20:12 -0500)]
xwayland: only constrain initial size for unsized clients

2 years agoview: only constrain sizes for oversized views
Andrew J. Hesford [Tue, 9 Jan 2024 01:05:49 +0000 (20:05 -0500)]
view: only constrain sizes for oversized views

...and ensure initial position is on the target display.

2 years agorcxml: avoid crash when checking environment for WLR_DRM_NO_ATOMIC
Andrew J. Hesford [Mon, 8 Jan 2024 23:19:12 +0000 (18:19 -0500)]
rcxml: avoid crash when checking environment for WLR_DRM_NO_ATOMIC

2 years agoxdg: rename function to align with xwayland.c
Johan Malm [Sat, 6 Jan 2024 21:39:47 +0000 (21:39 +0000)]
xdg: rename function to align with xwayland.c

s/position_xdg_toplevel_view/set_initial_position/

2 years agoview: constrain window size to that of usable area
Johan Malm [Sat, 6 Jan 2024 21:36:12 +0000 (21:36 +0000)]
view: constrain window size to that of usable area

...on first map (when application is started).

Fixes #1399

2 years agoAdd tearing support (#1390)
Ph42oN [Mon, 8 Jan 2024 20:58:58 +0000 (22:58 +0200)]
Add tearing support (#1390)

Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
2 years agodocs: extend supported mouse buttons
Jens Peters [Sat, 6 Jan 2024 16:56:53 +0000 (17:56 +0100)]
docs: extend supported mouse buttons

2 years agoconfig: reuse mousebind_button_from_str()
Jens Peters [Sat, 6 Jan 2024 16:56:32 +0000 (17:56 +0100)]
config: reuse mousebind_button_from_str()

2 years agoconfig: add more mouse button definitions
Jens Peters [Sat, 6 Jan 2024 16:55:04 +0000 (17:55 +0100)]
config: add more mouse button definitions

2 years agodocs: add tablet section
Jens Peters [Sat, 6 Jan 2024 09:58:57 +0000 (10:58 +0100)]
docs: add tablet section

2 years agodocs: improve formatting
Jens Peters [Sat, 6 Jan 2024 09:57:21 +0000 (10:57 +0100)]
docs: improve formatting

2 years agoview: try to honor original geometry with layout changes
Andrew J. Hesford [Mon, 1 Jan 2024 02:39:06 +0000 (21:39 -0500)]
view: try to honor original geometry with layout changes

Whenever the output layout changes, each view's original geometry will
be captured as last_layout_geometry (if it has not already been captured
by a previous layout change), which will remain valid unless the user
modifies the view's geometry (i.e., by tiling, maximizing, moving,
resizing or full-screening). On subsequent output layout changes, views
with valid last_layout_geometry will be back to their original position
if possible, or else to the closest possible output.

2 years agofix adaptive sync fullscreen
Ph42oN [Fri, 5 Jan 2024 18:43:56 +0000 (20:43 +0200)]
fix adaptive sync fullscreen

2 years agoFixed some typos
Tomi Ollila [Thu, 4 Jan 2024 17:42:26 +0000 (19:42 +0200)]
Fixed some typos

2 years agosrc/theme.c: fix loading of alt_name hover icon
Consolatis [Tue, 2 Jan 2024 12:45:58 +0000 (13:45 +0100)]
src/theme.c: fix loading of alt_name hover icon

Fixes #1395

2 years agoprotocols: allow using a .wrap file
Consolatis [Tue, 2 Jan 2024 07:20:40 +0000 (08:20 +0100)]
protocols: allow using a .wrap file

Fixes #1356

2 years agoconfig: add user names for pad butttons
Jens Peters [Tue, 2 Jan 2024 19:31:17 +0000 (20:31 +0100)]
config: add user names for pad butttons

2 years agoinput: add tablet pad setup and button handler
Jens Peters [Tue, 2 Jan 2024 17:26:25 +0000 (18:26 +0100)]
input: add tablet pad setup and button handler

Split pad initialization from tablet initialization to
avoid conflicting handler names.
Also reuse 'get_mapped_button'.

2 years agoinput: add area transformation for tablet coordinates
Jens Peters [Mon, 1 Jan 2024 17:26:44 +0000 (18:26 +0100)]
input: add area transformation for tablet coordinates

2 years agoconfig: add tablet area configuration
Jens Peters [Mon, 1 Jan 2024 17:26:38 +0000 (18:26 +0100)]
config: add tablet area configuration

2 years agoinput: log tablet dimensions
Jens Peters [Sat, 30 Dec 2023 18:14:11 +0000 (19:14 +0100)]
input: log tablet dimensions

2 years agolabwc-config(5): update libinput section
Johan Malm [Mon, 1 Jan 2024 20:04:48 +0000 (20:04 +0000)]
labwc-config(5): update libinput section

2 years agoconfig: s/enum device_type/enum lab_libinput_device_type/
Johan Malm [Mon, 1 Jan 2024 19:15:16 +0000 (19:15 +0000)]
config: s/enum device_type/enum lab_libinput_device_type/

2 years agoconfig: prefix enums with LAB_LIBINPUT_DEVICE_
Johan Malm [Mon, 1 Jan 2024 19:14:08 +0000 (19:14 +0000)]
config: prefix enums with LAB_LIBINPUT_DEVICE_

2 years agoseat: refactor obtaining libinput category for device
Johan Malm [Mon, 1 Jan 2024 17:46:30 +0000 (17:46 +0000)]
seat: refactor obtaining libinput category for device

No functional change intended.

2 years agoconfig: use wl_list_append() for libinput categories
Johan Malm [Mon, 1 Jan 2024 17:18:28 +0000 (17:18 +0000)]
config: use wl_list_append() for libinput categories

...to make it more intuitive.

Also, do not check for existance of name when type==DEFAULT because name
will only exist when type==NONE.

2 years agoconfig: add missing return to save a few cycles
Johan Malm [Mon, 1 Jan 2024 17:11:51 +0000 (17:11 +0000)]
config: add missing return to save a few cycles