Ivan Molodetskikh
e0ebf1bdff
Remove pointer_grab_ongoing in favor of checking the actual grab
2024-11-03 10:23:21 +03:00
Ivan Molodetskikh
11633aef98
Use is() instead of downcast().is_some()
2024-11-03 10:15:19 +03:00
Ivan Molodetskikh
9193245871
Correct pointer constraint activation logic
...
Internally it uses the pointer focus, so make sure we have up-to-date
focus before setting it.
2024-11-03 10:15:19 +03:00
Ivan Molodetskikh
7baf10b751
Clarify redraw in refresh_pointer_focus()
2024-11-03 10:15:19 +03:00
Ivan Molodetskikh
f5d91c5ecc
Rename pointer_focus to pointer_contents, clarify comments
...
This is not pointer focus and it shouldn't be pointer focus, let's be
clear about it.
2024-11-03 10:15:19 +03:00
Ivan Molodetskikh
69e3edb5a3
Rename surface_under_and_global_space() to contents_under()
2024-11-03 08:50:17 +03:00
LoipesMas
d58bb4eaa3
flake: set RUSTFLAGS instead of CARGO_BUILD_RUSTFLAGS
2024-11-02 12:35:04 -07:00
LoipesMas
c5fe25f422
flake: libseat has been renamed to seatd
2024-11-02 12:35:04 -07:00
Ivan Molodetskikh
600cffb009
Update Smithay (lock leak fix)
2024-11-02 18:55:56 +03:00
Christian Meissl
b9d14a9eda
portal: prefer gtk for access portal
...
using gnome for the access portal does not work,
so just override by directly using the gtk one
2024-11-02 07:55:37 -07:00
Ivan Molodetskikh
0e7e398df3
Replace current_state() with with_toplevel_role()
...
Avoid microallocations that happen in current_state().
2024-11-02 10:53:55 +03:00
Ivan Molodetskikh
86bdc6898b
Add with_toplevel_role() util function
2024-11-02 10:53:55 +03:00
Ivan Molodetskikh
e5ca335115
Add Tracy allocation profiling feature flag
2024-11-02 10:53:55 +03:00
Ivan Molodetskikh
fce5d66878
Follow window corner radius in insert hint
2024-11-02 10:53:55 +03:00
Ivan Molodetskikh
05d218113c
Add gradient support for the insert hint
...
Implement it via FocusRing which already handles SolidColor vs. Border
render element.
2024-11-02 10:53:55 +03:00
Ivan Molodetskikh
ef6af6adc1
Change TODO to FIXME
2024-11-02 10:53:55 +03:00
Ivan Molodetskikh
6632699e00
Remove obsolete TODO
2024-11-02 10:53:55 +03:00
Ivan Molodetskikh
d3e72245b0
Don't show the cursor on programmatic movement
...
For keyboard-only use, especially with warp-mouse-to-focus, the
intention is that the cursor stays hidden from keyboard and other
automatic actions, and only shows up with an actual mouse movement.
2024-10-29 21:52:03 -07:00
Ivan Molodetskikh
13fe9c8ac3
[cfg-breaking] Rename hide-on-key-press to hide-when-typing
...
I originally preferred on-key-press, but when-typing feels more natural
and matches sway. This setting had not been in a stable release yet so
this is not stable release cfg breaking.
2024-10-29 21:52:03 -07:00
Ivan Molodetskikh
6ecbf2db8a
Deny toplevel move from DnD grabs
...
Work around https://gitlab.gnome.org/GNOME/gtk/-/issues/7113
2024-10-28 21:12:58 +03:00
Ivan Molodetskikh
c9be9056ef
Update Smithay
2024-10-28 21:12:58 +03:00
Ivan Molodetskikh
0866990b7d
wiki/Gestures: Add interactive move
2024-10-27 23:07:39 -07:00
Ivan Molodetskikh
f04befb567
wiki: Document insert-hint config
2024-10-27 23:07:39 -07:00
Ivan Molodetskikh
da3e5c4424
Implement touch interactive resize
2024-10-27 23:07:39 -07:00
Ivan Molodetskikh
26ab4dfb87
Implement touch interactive move
2024-10-27 23:07:39 -07:00
Rasmus Eneman
e887ee93a3
Implement interactive window move
2024-10-27 23:07:39 -07:00
Ivan Molodetskikh
d640e85158
Require Clone for LayoutElement::Id
...
Now that we have MappedId, this could really be Copy. But it's quite a
big refactor, so for now just require Clone as I'll need it.
2024-10-27 23:07:39 -07:00
gmorer
c8044a9b5d
ShaderRenderElement use borrowed Uniforms to minimize copy ( #756 )
2024-10-24 07:42:19 +03:00
Ivan Molodetskikh
289ae3604d
tty: Guard against output disappearing immediately after connection
...
Fixes https://github.com/YaLTeR/niri/issues/739
2024-10-20 20:18:56 +03:00
Ivan Molodetskikh
55fb885256
Use new Smithay method for turning off DPMS
2024-10-20 20:18:56 +03:00
Ivan Molodetskikh
73a531f8bc
Update dependencies (wl_output.scale fix)
2024-10-20 20:18:56 +03:00
Ivan Molodetskikh
10f04fd19d
layout: Update tile config in Column::add_tile_at()
2024-10-19 12:33:44 +03:00
Christian Meissl
79fd309d6c
support binding actions to switches ( #747 )
...
* support spawn action on switch events
this adds a new config section named `switch-events`
that allows to bind `spawn` action to certain switch
toggles.
* Expand docs
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-10-18 14:00:40 +00:00
Ivan Molodetskikh
dd8b2be044
layout: Add missing active idx check before setting activate prev on removal
2024-10-18 10:06:09 +03:00
Ivan Molodetskikh
8d08782eba
Set CLOEXEC on logind inhibit fd
...
Don't leak it to child processes.
2024-10-17 08:59:06 +03:00
Ivan Molodetskikh
8555f37dbf
layout: Use remove_column_by_idx in remove_tile_by_idx
2024-10-17 08:59:06 +03:00
Ivan Molodetskikh
4b837f429c
layout: Accept anim_config in remove_column_by_idx
2024-10-17 08:59:06 +03:00
chillinbythetree
a480087618
Add scroll-button property for Touchpad, Mouse, Trackpoint, Trackball ( #744 )
2024-10-17 05:43:47 +00:00
tazjin
84655d3b26
Implement input configuration for trackballs ( #743 )
...
* niri-config: add trackball configuration struct
The available options are mostly the same as for mice. I've verified that each
option is applicable to trackballs in the libinput CLI.
* input: apply trackball config settings
2024-10-16 13:51:56 +00:00
Ivan Molodetskikh
40843cbda1
layout/monitor: Extract workspace_under()
2024-10-16 09:39:34 +03:00
Ivan Molodetskikh
a13b9298c6
Draw the layout as inactive when layer-shell has focus
2024-10-15 11:11:57 +03:00
Christian Meissl
0c5e046820
input: apply output transform for tablet input ( #737 )
...
when mapping a tablet input to an output apply
the output transform just like we already do for
touch input.
2024-10-15 11:11:15 +03:00
Ivan Molodetskikh
907ebc4977
Add boxed_union proptest-derive feature
...
Our Op enum grew large enough to trigger a stack overflow in
proptest-derive's generated code. Thankfully, this feature works around
the problem.
2024-10-15 10:06:55 +03:00
sodiboo
e4161be1bf
flake: use nightly rust-analyzer and add rust-src component ( #735 )
...
this also improves the application of overlays to be more uniform; what
was previously done was just Wrong
2024-10-15 08:21:49 +03:00
Ivan Molodetskikh
be7fbd418f
layout: Return Tile + info upon removal
2024-10-14 18:08:44 +03:00
Ivan Molodetskikh
06ec9eecdb
layout/tests: Use existing method
2024-10-14 17:39:55 +03:00
Ivan Molodetskikh
79eef5ee90
layout: Remove unnecessary vec lookup
2024-10-14 17:36:00 +03:00
Ivan Molodetskikh
29602ca995
layout: Extract Monitor::workspaces_with_render_positions()
2024-10-14 11:08:44 +03:00
Mark Karlinsky
d7156df842
Add support for running as a dinit service ( #728 )
...
* Added dinit services
* Added dinit support to niri-session
* Replaced shutdown script for dinit with a single command execution
* Added dinit service files to Getting Started install tables
* Fix typo in resources/dinit/niri
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Fixed mistakes in wiki/Getting-Started.md
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* niri-session does not start dinit anymore
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-10-13 12:26:16 +00:00
Ivan Molodetskikh
33b39913c7
layout: Fix expel animation of the smaller window in column
2024-10-12 09:58:03 +03:00