Ivan Molodetskikh
28a8a9ace2
Register deadline timer for closing transaction
2024-08-23 19:09:18 +03:00
Ivan Molodetskikh
c8839f7658
Implement window close transaction
...
Mainly visible with disabled animations.
2024-08-23 15:41:06 +03:00
Ivan Molodetskikh
dfe3580607
animation: Use saturating_sub in value()
2024-08-23 15:39:57 +03:00
Ivan Molodetskikh
1c02552e92
animation: Make restarted() take by-ref
2024-08-23 15:39:45 +03:00
Ivan Molodetskikh
ff7cbb97df
Fix screen transition across scale/transform changes
2024-08-23 12:54:07 +03:00
Ivan Molodetskikh
09f3d3fb12
Extract Niri::update_render_elements()
2024-08-23 12:54:07 +03:00
Ivan Molodetskikh
63defc25d2
Fix Clippy warnings
2024-08-23 12:21:47 +03:00
Ivan Molodetskikh
db39fc95f4
pw_utils: Re-create damage tracker on scale change
2024-08-23 11:14:24 +03:00
Ivan Molodetskikh
471dc714aa
Add damage check to PW screencasts
...
Avoids unnecessary frames.
2024-08-23 11:02:34 +03:00
Ivan Molodetskikh
fef665df73
tty: Wait for sync on needs_sync()
...
How did I never add this back?
2024-08-23 09:26:42 +03:00
Ivan Molodetskikh
7bfdf87bf0
Implement resize transactions
2024-08-22 15:19:11 +03:00
Ivan Molodetskikh
cf357d7058
Implement window resize throttling
2024-08-22 14:40:40 +03:00
Ivan Molodetskikh
618fa08aa5
Update Smithay (apply state in post commit)
2024-08-22 14:15:04 +03:00
Ivan Molodetskikh
a40e7b4470
Handle dmabuf blocker separately in toplevel pre-commit
...
Will be needed for transactions.
2024-08-22 13:13:28 +03:00
Michael Yang
f1894f6f9a
feature: add on-demand vrr ( #586 )
...
* feature: add on-demand vrr
* Don't require connector::Info in try_to_set_vrr
* Improve VRR help message
* Rename connector_handle => connector
* Fix tracy span name
* Move on demand vrr flag set higher
* wiki: Mention on-demand VRR
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-08-22 11:58:07 +03:00
Ivan Molodetskikh
dfc2d452c5
layout: Do not recompute total_weight every iteration
2024-08-15 11:46:13 +03:00
Ivan Molodetskikh
66f23c3980
layout: Implement weighted height distribution
...
The intention is to make columns add up to the working area height most
of the time, while still preserving the ability to have one fixed-height
window.
Automatic heights are now distributed according to their weight, rather
than evenly. This is similar to flex-grow in CSS or fraction in Typst.
Resizing one window in a column still makes that window fixed, however
it changes all other windows to automatic height, computing their
weights in such a way as to preserve their apparent heights.
2024-08-15 10:50:38 +03:00
Ivan Molodetskikh
7a6ab31ad7
layout: Pre-subtract gaps during height distribution
...
Same result, but code a bit clearer.
2024-08-15 10:46:39 +03:00
Ivan Molodetskikh
883763c172
Implement stub mutter-x11-interop
...
Allows xdp-gnome dialogs to work with X11 clients.
Fixes https://github.com/YaLTeR/niri/issues/594
2024-08-13 09:15:57 +03:00
Michael Yang
22cb657ef1
fix: change precision to highp
2024-08-08 15:06:23 +03:00
Ivan Molodetskikh
bb15d1e850
screencopy: Change integer to fractional scale
...
That *was* wrong after all.
2024-08-08 13:54:28 +03:00
Ivan Molodetskikh
47680e43c5
screencopy: Wait for SyncPoint before submitting
2024-08-08 13:32:37 +03:00
Ivan Molodetskikh
0f1e44aac6
screencopy: Fix transformed damage calculation
2024-08-08 13:32:37 +03:00
Ivan Molodetskikh
66aae91bca
screencopy: Clarify the use of integer scale
2024-08-08 13:32:37 +03:00
Ivan Molodetskikh
07bd76e219
screencopy: Use monotonic time
...
This way it matches up with presentation-time.
2024-08-08 13:32:37 +03:00
Michael Yang
b6a7b3e9e4
feat: update screencopy to version 3
2024-08-08 13:32:37 +03:00
Ivan Molodetskikh
8ff90c4fc2
Implement PipeWire DMA-BUF modifier negotiation
2024-08-06 18:01:52 +03:00
Jeff Peeler
9728dbeeac
add mod3 key binding support ( #565 )
...
* add support for iso_level5_shift modifier
* update Cargo.lock
bumps smithay to de94e8f59e202b605c35dfe1fef1857bad427e8c
2024-07-31 15:00:35 +00:00
Ivan Molodetskikh
af904d23ac
tty: Add check for vblank on idle
2024-07-27 13:43:27 +03:00
Ivan Molodetskikh
c506fecc87
Upgrade dependencies
2024-07-27 09:28:40 +03:00
Ivan Molodetskikh
d777810911
pw: Don't require LINEAR buffer
...
It's not needed and apparently doesn't work on NVIDIA together with the
rendering flag.
2024-07-26 16:06:33 +03:00
Anant Sharma
689338f059
Add background color option for output
2024-07-26 11:51:29 +03:00
Ivan Molodetskikh
b454fd5d9e
Add negative struts to tests
2024-07-22 13:12:42 +03:00
Ivan Molodetskikh
3ace97660f
Implement gradient color interpolation option ( #548 )
...
* Added the better color averaging code (tested & functional)
* rustfmt
* Make Color f32 0..1, clarify premul/unpremul
* Fix imports and test name
* Premultiply gradient colors matching CSS
* Fix indentation
* fixup
* Add gradient image
---------
Co-authored-by: K's Thinkpad <K.T.Kraft@protonmail.com >
2024-07-16 07:22:03 +00:00
Ivan Molodetskikh
0824737757
border: Fix reversed gradient at angle = 90
2024-07-13 19:02:04 +03:00
Ivan Molodetskikh
2e906fc5fa
Add middle-emulation libinput flag
2024-07-13 07:34:22 +03:00
Winter
a283c34dbb
Add move-column-{left/right}-or-to-monitor-{left/right} ( #528 )
...
* feature added, move-column-left-or-monitor-left and move-column-right-or-monitor-right
* fixed stupid mistake
* yalter's fixes
* fixed names
* fixed a stupid mistake
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-07-10 04:52:48 +00:00
Ivan Molodetskikh
f9fe86ee3e
Restore VRR on TTY switch
2024-07-09 14:25:02 +04:00
Ivan Molodetskikh
2e67152941
Fix view offset anim restart on switching focus
2024-07-09 09:50:46 +04:00
Ivan Molodetskikh
22bfec7259
Add tolerance to view offset anim restart check
...
It was getting tripped by tiny differences.
2024-07-09 09:43:43 +04:00
Ivan Molodetskikh
4513663084
screenshot-ui: Animate opening
2024-07-08 11:24:08 +04:00
Ivan Molodetskikh
092cf6cfaf
solid_color: Fix alpha handling
...
It wasn't getting redrawn on alpha changes.
2024-07-08 11:11:06 +04:00
Ivan Molodetskikh
236f96e676
screenshot-ui: Add a help panel
2024-07-08 10:54:21 +04:00
Ivan Molodetskikh
887ca971ab
Use is_alive()
2024-07-08 10:06:06 +04:00
Ivan Molodetskikh
4cc195b681
screenshot-ui: Pre-compute PrimaryGpuTexture
2024-07-08 10:04:43 +04:00
Christian Meissl
570bf1cb3c
bump smithay
2024-07-08 08:30:00 +03:00
Ivan Molodetskikh
6ec9c72539
Clear pointer grab upon opening the screenshot UI
...
Gets rid of DND surfaces.
2024-07-07 09:54:19 +04:00
Ivan Molodetskikh
1a1086206c
Extract capture_screenshots()
2024-07-07 09:48:19 +04:00
Ivan Molodetskikh
f2766b103d
Implement toggling pointer for the screenshot UI
2024-07-07 09:23:59 +04:00
Ivan Molodetskikh
62c9d44b04
screenshot-ui: Fix last selection preservation
...
Another missed thing from the fractional scale refactor...
2024-07-07 09:22:39 +04:00