Ivan Molodetskikh
49f5402669
Implement window-resize custom-shader
2024-04-21 20:16:54 +04:00
Ivan Molodetskikh
2ecbb3f6f8
Remove obsolete comment
2024-04-21 12:28:49 +04:00
sodiboo
b5f7e4bd83
niri_ipc::Socket; niri msg version; version checking on IPC (#278 )
...
* Implement version checking in IPC
implement version checking; streamed IPC
streamed IPC will allow multiple requests per connection
add nonsense request
change inline struct to json macro
only check version if request actually fails
fix usage of inspect_err (MSRV 1.72.0; stabilized 1.76.0)
"nonsense request" -> "return error"
oneshot connections
* Change some things around
* Unqualify niri_ipc::Transform
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-04-19 13:02:32 +00:00
Ivan Molodetskikh
568c35ff87
Synchronize column removal anim on consume left/right
...
Visible when consuming left/right when always-centered and differing
horizontal view anim.
2024-04-19 13:48:39 +04:00
Ivan Molodetskikh
2c8d1030ab
Separate tile X and Y movement animations
...
Helps with the jank caused by lack of transactions when consuming to the
left/right. Resize triggers a few frames later and restarts the
movement. Now it only restarts the vertical and not the horizontal
movement.
2024-04-19 12:44:24 +04:00
Ivan Molodetskikh
914237fa11
Add allow-when-locked=true spawn bind property
2024-04-19 10:49:46 +04:00
Ivan Molodetskikh
0b93c46ce8
animation: Scale initial velocity by slowdown
2024-04-18 21:55:01 +04:00
Ivan Molodetskikh
0fcd981b86
Fix crop + crossfade artifacts
2024-04-18 21:39:27 +04:00
Ivan Molodetskikh
4d010b7943
animation: Clamp spring value
...
I've had an overdamped spring return an extreme value and trip up
an integer overflow check.
2024-04-18 20:45:37 +04:00
Ivan Molodetskikh
47f6c85f64
Preserve tile move config on animation restarts
...
This fixes a problem where consume-into-column would use resize
animation config instead of the window-movement config in most cases
(since a resize comes very shortly after the move starts).
A similar change to the column movement anim is more detrimental than
it's worth.
2024-04-18 00:30:12 +04:00
Ivan Molodetskikh
3b37f1a557
Sync expel animations
2024-04-17 18:03:17 +04:00
Ivan Molodetskikh
bbb4a64126
Use correct animation config for tile removal
2024-04-17 14:38:34 +04:00
Ivan Molodetskikh
dfe49aa705
Use movement anim for view anim during movement
2024-04-17 14:29:22 +04:00
Ivan Molodetskikh
7ca39baf9e
Add view anim functions with config argument
2024-04-17 14:23:47 +04:00
Ivan Molodetskikh
73e9ef5fe2
Resolve animation defaults during parsing
2024-04-17 14:06:32 +04:00
Ivan Molodetskikh
c40d4f3268
Include resized window in left move
2024-04-17 10:35:46 +04:00
Ivan Molodetskikh
1b496ee21f
Clamp animated window size
2024-04-16 17:44:06 +04:00
Ivan Molodetskikh
21ef5aded8
Remove jumps on consume/expel animation start
2024-04-16 10:48:54 +04:00
Ivan Molodetskikh
b288102866
Implement consume/expel animations
2024-04-16 09:58:39 +04:00
Ivan Molodetskikh
ff42f9b9d3
Start move animations from add/remove window/column
2024-04-16 08:59:15 +04:00
Ivan Molodetskikh
c163e58167
Animate movement and resize on window closing in a column
2024-04-16 08:16:34 +04:00
Ivan Molodetskikh
c40de5364d
Add vrr_supported/enabled to output IPC
2024-04-15 22:29:25 +04:00
Ivan Molodetskikh
69f723d68a
Implement vertical window move animations
2024-04-15 21:19:09 +04:00
Ivan Molodetskikh
568fbe26fe
Avoid continuous redrawing during horizontal gesture
2024-04-14 14:29:41 +04:00
Ivan Molodetskikh
3c6d8062c5
Add variable-refresh-rate flag
2024-04-14 09:37:42 +04:00
Ivan Molodetskikh
40374942db
tty: Shorten non-desktop check
2024-04-14 08:08:09 +04:00
Ivan Molodetskikh
2c873044e8
Restore view offset upon unfullscreening
2024-04-13 20:07:37 +04:00
Ivan Molodetskikh
1336a581a6
tile: Fix returned snapshot size
2024-04-13 18:05:56 +04:00
Ivan Molodetskikh
8b0dc1902c
Set window-resize animation config for view-offset anim caused by resize
2024-04-13 14:57:55 +04:00
Ivan Molodetskikh
9d5f1c7ef7
Unify Animation- and RenderSnapshot
2024-04-13 14:16:07 +04:00
Ivan Molodetskikh
71be19b234
Implement window resize animations
2024-04-13 11:07:23 +04:00
Ivan Molodetskikh
4fd9300bdb
Fix typo
2024-04-13 10:58:32 +04:00
Ivan Molodetskikh
2bb6dd8c48
Move unmapped check to a pre-commit hook
2024-04-13 09:12:32 +04:00
Ivan Molodetskikh
7319f37f7a
Add render_to_encompassing_texture()
2024-04-12 20:38:51 +04:00
Ivan Molodetskikh
0cd149c939
animation: Tweak clamped duration logic
2024-04-10 12:09:54 +04:00
Ivan Molodetskikh
5383a0591f
Use clamped animations where it makes sense
2024-04-10 11:28:49 +04:00
Ivan Molodetskikh
0c68609063
animation: Implement clamped value and duration
2024-04-10 11:28:02 +04:00
Ivan Molodetskikh
6cd3f96a10
Fix building on stable
2024-04-10 09:26:56 +04:00
Ivan Molodetskikh
1888696567
Reimplement window closing anim in an efficient way
...
- Keep a root surface cache to be accessible in surface destroyed()
- Only snapshot during / right before closing, rather than every frame
- Store textures rather than elements to handle scale and alpha properly
2024-04-10 09:14:04 +04:00
Ivan Molodetskikh
dd011f1012
Implement window closing animations
2024-04-09 23:42:01 +04:00
Ivan Molodetskikh
301a2c0661
layout: Fix view jumps when removing a window on the left
2024-04-09 23:42:01 +04:00
Ivan Molodetskikh
956bf7c0a8
Add missing mouse warp to commit unmap
2024-04-09 23:42:01 +04:00
Ivan Molodetskikh
209492e700
Add ease-out-quad curve
2024-04-09 23:42:01 +04:00
Ivan Molodetskikh
7e0d3d31f7
Update Smithay
2024-04-09 19:06:13 +04:00
Ivan Molodetskikh
e448cfb0ef
Adjust view offset anim together with offset
...
Not doing this caused quickly moving a column right and left to base the
final view position on an incorrect view offset.
2024-04-08 22:16:35 +04:00
Ivan Molodetskikh
6aceb3a798
Render active column in front
...
Rather than just the active window. This is visible on the new window
movement animations.
2024-04-08 19:48:52 +04:00
Ivan Molodetskikh
4856522a7a
Implement window open shift in terms of window-movement
...
This removes the quite unobvious visual size, and fixes jerking when
opening multiple windows in quick succession.
2024-04-08 19:25:45 +04:00
Ivan Molodetskikh
c1432bfa96
Implement column movement animation
2024-04-08 19:11:25 +04:00
Ivan Molodetskikh
ec0531264e
Avoid move_left() in expel-left
2024-04-08 19:11:25 +04:00
Ivan Molodetskikh
03fc439150
layout: Fix view_offset value when moving column
2024-04-08 17:34:39 +04:00