Ivan Molodetskikh
332af8b062
Rearrange some CLI and IPC enum values
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
b7901579d5
Change IdCounter to be backed by an AtomicU64
...
Let's see if anyone complains.
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
138c2a3bfd
Change OutputId::get() to return u64
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
446a9f1e06
Make WorkspaceId inner field private
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
52265e2e19
utils/id: Use a Relaxed atomic op
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
0f522f209b
Change MappedIt::get() to return u64
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
30b213601a
Implement the event stream IPC
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
8eb34b2e18
Animate focus-workspace by idx/back and forth/previous
...
Deleting the test because it only made sense when no-animation was
special cased.
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
74d1b1f406
layout: Cache monitor output name
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
2b3d196876
Remove unused function
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
397b7e4bb9
ipc: Read only a single line on the client
...
Allow extensibility.
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
598b27f83c
flake: Remove maintainer comment
...
Effectively other contributors maintain it now.
2024-08-26 18:15:39 +03:00
Ivan Molodetskikh
da53e79d07
wiki: Add hotkey overlay skip to FAQ
2024-08-26 10:35:00 +03:00
Ivan Molodetskikh
2907d5af3e
wiki: Mark FAQ snippet as KDL
2024-08-26 10:35:00 +03:00
sodiboo
dd919fe01b
fix cargo run on nixos
...
this boils down to adding some extra dependencies to the shell
environment. they're also inherited from craneArgs because the ones from
the package are actually transformed into the WRONG outputs of the
packages. also refactors to use craneLib.devShell because it's somewhat
cleaner.
2024-08-25 15:42:25 +03:00
Ivan Molodetskikh
f86a9bed1a
layout: Break out early on min size
2024-08-25 11:46:04 +03:00
Ivan Molodetskikh
cfa87d508e
layout: Fix rounding in height distribution
...
Rounding before checking min height could artificially increase the
window height that we check, leading to an incorrectly satisfied min
constraint.
2024-08-25 10:16:37 +03:00
Ivan Molodetskikh
f19e1711a7
Add niri msg keyboard-layouts
2024-08-25 09:38:45 +03:00
Ivan Molodetskikh
20cd4f5d04
layout: Clamp window height to max available in column
...
When the window is alone in its column this logic intentionally isn't
triggered. Until we have a floating layer, there's no other way to get a
window larger than the screen, which I need.
2024-08-25 08:46:34 +03:00
Ivan Molodetskikh
b2c7d3ad40
Rework PW screencast frame timing
...
- Remove the 0.5 ms hack.
- Add redraw scheduling to fix stuck frame if the last redrawn frame
happened too soon.
2024-08-24 10:49:32 +03:00
Ivan Molodetskikh
4832924483
Update Smithay (layer-shell popup fix)
2024-08-24 07:22:57 +03:00
Ivan Molodetskikh
28a8a9ace2
Register deadline timer for closing transaction
2024-08-23 19:09:18 +03:00
Ivan Molodetskikh
a4f1caab1d
wiki: Update transaction list
2024-08-23 15:53:01 +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
2f73dd5b59
wiki: Use real em-dash
2024-08-14 18:33:43 +03:00
Ivan Molodetskikh
c658424c9f
wiki: Document invisible state
2024-08-14 18:32:50 +03:00
Ivan Molodetskikh
bb58f2d162
wiki: Clarify named workspaces example
2024-08-14 18:18:05 +03:00
Fea
f54297f242
flake: Update flake inputs
2024-08-14 10:49:54 +03:00
Fea
b72d946062
Fix nix build
2024-08-14 10:49:54 +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
Ivan Molodetskikh
9063a5dbdc
spec: Add mesa-libEGL dependency
...
Closes https://github.com/YaLTeR/niri/issues/554
v0.1.8
2024-08-10 14:55:56 +03:00
Ivan Molodetskikh
892e848985
Update README
2024-08-10 12:55:47 +03:00
Ivan Molodetskikh
0edb90bab2
README: Add similar projects
2024-08-10 12:55:38 +03:00
Ivan Molodetskikh
8f71f8958e
Bump version to 0.1.8
2024-08-10 12:55:24 +03:00