Gwen
a7186a0441
Add debug option to skip cursor-only updates while VRR is active ( #1616 )
...
* Add debug option to skip cursor-only updates while VRR is active
* Update niri-config/src/lib.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Update src/backend/tty.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Update wiki/Configuration:-Debug-Options.md
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Update Configuration:-Debug-Options.md
* Update tty.rs
* Update lib.rs
* Update Configuration:-Debug-Options.md
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-06-03 15:56:21 +00:00
Ivan Molodetskikh
126ca37d96
Rename Un/Set/ToggleUrgent to Un/Set/ToggleWindowUrgent
...
Overlooked this when reviewing. This change is not cfg-breaking (since you
can't bind these directly), but it does break calling these actions through
IPC. I don't imagine they are widely used though, and the original PR author
who also implemented urgency for bars said he didn't use these actions either.
2025-05-25 08:43:27 +03:00
Ivan Molodetskikh
a605a3f016
Account for hidden pointer in move_cursor()
2025-05-23 23:08:51 +03:00
Ivan Molodetskikh
ef44adea69
Set pointer contents straight to nothing when disabling pointer
2025-05-23 23:08:51 +03:00
Duncan Overbruck
7fdb918cd0
input: do not revert fully invisible cursor to hidden ( #1650 )
...
* input: do not force redraw to hide an already hidden cursor
* more
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-05-23 05:24:24 +00:00
alex-huff
51a176ec4a
layer-shell: only reset 'initial_configure_sent' for mapped surfaces
2025-05-22 08:02:56 -07:00
alex-huff
d618daf6b9
layer-shell: don't dismiss popups because of unmapped layer surfaces
...
Fixes #1640
2025-05-22 07:55:29 -07:00
Ivan Molodetskikh
f369a0f810
input: Add missing check for output under
2025-05-22 08:55:01 +03:00
Ivan Molodetskikh
71251a7003
input: Add missing redraws on urgency actions
...
The layout urgent colors update even without window rule changes.
2025-05-21 19:50:13 +03:00
alex-huff
2415346caa
layer-shell: properly handle re-map
...
According to the zwlr_layer_surface_v1 documentation: Unmapping a
layer_surface means that the surface cannot be shown by the compositor
until it is explicitly mapped again. The layer_surface returns to the
state it had right after layer_shell.get_layer_surface. The client can
re-map the surface by performing a commit without any buffer attached,
waiting for a configure event and handling it as usual.
Before this commit, no configure event was sent when a client performed
a commit without any buffer attached.
2025-05-21 07:25:22 -07:00
Ivan Molodetskikh
3f2b7e63ba
Improve comment in on-demand layer-shell keyboard alive check
2025-05-19 09:18:07 +03:00
Ivan Molodetskikh
bb8eb377c7
Update dependencies more carefully
...
No winit deadlock in this update.
2025-05-16 22:54:37 +03:00
Ivan Molodetskikh
6169c0312a
Revert "Update dependencies"
...
Something is causing winit deadlock on nested niri exit.
This reverts commit 2ae99224ab .
This reverts commit 0d6843ea67 .
2025-05-16 22:53:54 +03:00
Ivan Molodetskikh
4f63e13385
Deal with new Clippy warnings
2025-05-16 22:21:14 +03:00
Ivan Molodetskikh
46a8f81160
ipc/client: Make compositor version check for JSON parsing errors
...
These can happen when adding new fields to returned structs.
2025-05-15 09:08:53 +03:00
Ivan Molodetskikh
0d6843ea67
Update dependencies
2025-05-13 17:13:35 +03:00
Ivan Molodetskikh
6d083ea497
layout: Fix workspace swipe to same workspace forgetting previous id
...
This manifested much more prominently in the overview.
2025-05-13 08:17:15 +03:00
Ivan Molodetskikh
defd4c5c4d
Add center-visible-columns action
2025-05-12 14:13:51 +03:00
Ivan Molodetskikh
c98537a2b0
Implement baba-is-float for layers
2025-05-12 09:10:59 +03:00
Ivan Molodetskikh
9c103f1f1d
Add missing "to" in comment
2025-05-12 08:26:39 +03:00
Ivan Molodetskikh
2aff1ec71a
ipc/socket: Support multiple requests
2025-05-11 21:51:26 -07:00
Jon Heinritz
f917932b3e
ipc: support long living sockets
2025-05-11 21:51:26 -07:00
Ivan Molodetskikh
89b7423ee5
Print urgent status in niri msg windows
2025-05-10 23:43:00 +03:00
Ivan Molodetskikh
a2efaf2816
Add is-urgent window rule matcher
2025-05-10 22:49:55 +03:00
Ivan Molodetskikh
5816691460
Add urgent color support to tab indicators
2025-05-10 22:42:45 +03:00
Duncan Overbruck
a8259b4cea
add WindowUrgencyChanged ipc event
2025-05-10 12:14:41 -07:00
Duncan Overbruck
9d3d7cb0e9
add {toggle,set,unset}-urgent cli actions
2025-05-10 12:14:41 -07:00
Duncan Overbruck
398bc78ea0
add urgent border color and gradient
2025-05-10 12:14:41 -07:00
Duncan Overbruck
caa6189448
add workspace urgency ipc event
2025-05-10 12:14:41 -07:00
Duncan Overbruck
86f57c2ec7
add window urgency through xdg-activation-v1
...
urgency is done through activation requests without a serial from a
previous interaction.
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/150
2025-05-10 12:14:41 -07:00
Charlie Le
3cc67897af
Implement IPC for the overview state ( #1526 )
...
* Implement IPC for the overview state
* Update Overview IPC to maintain naming consistency, renamed OverviewToggled to be more clear, simplify overview state request on the server, consolidate ipc refresh
* Fix Overview is_open in IPC client
* Change opened to is_open
* Update niri-ipc/src/lib.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Update niri-ipc/src/state.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Update src/ipc/client.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Update src/ipc/client.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Add overview state to EventStreamStatePart replicate and apply
* Fix formatting
* Rename Overview to OverviewState
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-05-09 18:01:01 +03:00
Ivan Molodetskikh
0763c7e196
Add a clickable button to capture the screenshot
...
Allows tablet-, touch- and mouse-only confirmation.
2025-05-09 15:42:23 +03:00
Ivan Molodetskikh
fb5c5204e8
Extract confirm_screenshot()
2025-05-09 15:41:57 +03:00
Ivan Molodetskikh
d207cd385b
screenshot_ui: Refactor mouse down + touch slot state
2025-05-09 15:10:00 +03:00
Ivan Molodetskikh
99bf2df2b4
Silence new zvariant De/SerializeDict deprecations
...
Questionable exercise converting to serde with much more boilerplate, and
breaking compat with older zvariant versions. Plus maybe this will be
undeprecated back.
2025-05-09 10:35:16 +03:00
Ivan Molodetskikh
09be90f4e6
Add touch selection support to the screenshot UI
2025-05-09 10:28:20 +03:00
Ivan Molodetskikh
dfc42b9d82
Split ScreenshotUi::pointer_down() and up()
2025-05-09 10:28:20 +03:00
Ivan Molodetskikh
e2b9838d89
Extract evt.slot()
2025-05-09 10:28:20 +03:00
Ivan Molodetskikh
816a0d479c
Rename touch_location to pos
2025-05-09 10:28:20 +03:00
Ivan Molodetskikh
84323d10a4
Support tablet input for screenshot UI selection
2025-05-09 10:28:20 +03:00
Ivan Molodetskikh
b956f2775c
Use early return
2025-05-09 10:28:20 +03:00
Ivan Molodetskikh
9ff2f83db0
Simplify ScreenshotUi::pointer_button()
2025-05-09 10:28:20 +03:00
James Sully
7a10f71ee5
refactor(main): eliminate a mut from config load code in main
...
I think this makes for marginally better readability, since you don't
have to wonder whether config_errored is set anywhere else. It's also
slightly terser.
2025-05-09 00:25:54 -07:00
James Sully
ea7add3563
fix: don't try to create a default config at path that exists
...
Currently this bug has no actual consequences, we just continue silently
on AlreadyExists in main()
(this line: https://github.com/YaLTeR/niri/blob/e9c6f08906143c3fec1ad1301d538bef4cbc1978/src/main.rs#L151 ).
This commit just eliminates the redundant attempt.
2025-05-08 21:52:39 -07:00
Ivan Molodetskikh
e9c6f08906
Add a resize transaction client-server test
2025-05-07 22:59:57 +03:00
Ivan Molodetskikh
497f186422
Add layout background-color setting
2025-05-06 17:34:40 +03:00
Ivan Molodetskikh
3e31c134a6
Implement place-within-backdrop layer rule
2025-05-06 17:34:40 +03:00
Ivan Molodetskikh
fe682938db
Simplify exclusive focus on layer check
2025-05-06 17:34:40 +03:00
Ivan Molodetskikh
6c9705dd4b
layout/scrolling: Update view offset on config update
...
Fix always-centering not applied right away. No other changes intended.
2025-05-01 21:37:34 +03:00
Aberter Yan
eb590c5346
Implement --focus for MoveColumnToWorkspace/Up/Down
2025-05-01 11:06:34 -07:00