aboutsummaryrefslogtreecommitdiff
path: root/src/utils
AgeCommit message (Collapse)Author
2025-05-07Add a resize transaction client-server testIvan Molodetskikh
2025-03-29Fix typo in commentpeelz
2025-03-13Extract utils::is_mapped()Ivan Molodetskikh
2025-03-13Add tiled-state window rule, update the tiled state liveIvan Molodetskikh
2025-03-09doc: fix wrongly formatted link that `rustdoc` kept complaining aboutJon Heinritz
2025-02-12watcher: Allow running a processing function on the threadIvan Molodetskikh
2025-02-10Implement tab indicatorsIvan Molodetskikh
2025-01-17dbus: DisplayConfig: report fractional scales as supportedVal Packett
2025-01-12use standard padding syntax instead of implementing our ownsodiboo
the padding of the two-digit-month can be implemented much more concisely using `std::fmt` syntax.
2025-01-10Format version as calver automaticallyIvan Molodetskikh
2025-01-10Add NIRI_BUILD_COMMIT env variable overrideIvan Molodetskikh
2025-01-10Add NIRI_BUILD_VERSION_STRING env variable to override the versionIvan Molodetskikh
2025-01-04Migrate to new Rectangle functionsIvan Molodetskikh
2025-01-02Remove notify-rust dependencyIvan Molodetskikh
It uses outdated zbus.
2025-01-02Upgrade `zbus` and `async-io`bbb651
2024-12-30floating: Take into account non-fixed min/max size window ruleIvan Molodetskikh
2024-12-30Extract center_preferring_top_left_in_area()Ivan Molodetskikh
2024-12-30floating: Implement smarter clamping for window locationIvan Molodetskikh
A small part of the window always remains on-screen regardless of the working area changes. Interactive move lets the user position the window anywhere; automatic actions like toggle-window-floating and dialog opening try to put the window fully on-screen. The size-fraction canonical floating window position remains unclamped, and clamping happens when recomputing the logical position.
2024-12-30Honor min/max size in more places like initial configureIvan Molodetskikh
2024-12-22Switch from k9 to insta for snapshot testingIvan Molodetskikh
We'll need some advanced features from insta.
2024-12-15Add missing blank lineIvan Molodetskikh
2024-11-29xdg: startup activationChristian Meissl
pass an activation token to process spawned through actions
2024-11-12Add PID to Window IPCIvan Molodetskikh
2024-11-05Extract is_laptop_panel() to utilsIvan Molodetskikh
2024-11-02Add with_toplevel_role() util functionIvan Molodetskikh
2024-09-03Use libdisplay-info for make/model/serial parsing, implement throughoutIvan Molodetskikh
2024-09-01Change IdCounter to be backed by an AtomicU64Ivan Molodetskikh
Let's see if anyone complains.
2024-09-01utils/id: Use a Relaxed atomic opIvan Molodetskikh
2024-08-23Implement window close transactionIvan Molodetskikh
Mainly visible with disabled animations.
2024-08-22Implement resize transactionsIvan Molodetskikh
2024-06-28id: Start from 1Ivan Molodetskikh
2024-06-18Add fractional scales to auto scale guessingIvan Molodetskikh
2024-06-18Round scale to closest representableIvan Molodetskikh
2024-06-18Refactor layout to fractional-logicalIvan Molodetskikh
Lets borders, gaps, and everything else stay pixel-perfect even with fractional scale. Allows setting fractional border widths, gaps, struts. See the new wiki .md for more details.
2024-06-18Enable fractional scalingIvan Molodetskikh
2024-06-17Rename apply_scale to to_physical_precise_roundIvan Molodetskikh
Consistency with Smithay.
2024-06-10Move apply_scale() to utilsIvan Molodetskikh
2024-06-10Signal fractional scale to clientsIvan Molodetskikh
Doesn't do anything yet because we don't bind the fractional scale manager and don't allow fractional scales.
2024-06-09Use generic Atomic for rlim_tIvan Molodetskikh
rlim_t is different between platforms.
2024-05-23Increase RLIMIT_NOFILE to maximumIvan Molodetskikh
Fixes Xwayland + RustRover crashing. See similar changes: * https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2235 * https://github.com/swaywm/sway/pull/6629
2024-05-11Set cursor for niri-initiated interactive resizeIvan Molodetskikh
2024-05-10Implement interactive mouse resizingIvan Molodetskikh
2024-04-24Implement ideal scale factor guessingIvan Molodetskikh
2024-03-27Replace config transform with ipcIvan Molodetskikh
2024-03-27Add logical output info and preferred modes to IPCIvan Molodetskikh
2024-03-19Wrap mapped windows in a MappedIvan Molodetskikh
2024-03-19Workspace back and forth (#253)FluxTape
* implement workspace back and forth * Make our own ID counter instead of SerialCounter, use a newtype * Rename FocusWorkspaceBackAndForth to FocusWorkspacePrevious * Add focus-workspace-previous to tests * Don't special case in switch_workspace_previous * Minor clean up * Add switch_workspace_auto_back_and_forth to tests * Skip animation on switch_workspace_previous * Preserve previous_workspace_id on workspace movement * Make Workspace::id private with a getter Reduce the chance it gets overwritten. * Add test for workspace ID uniqueness * Update previous workspace ID upon moving workspace across monitors --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-03-18Implement warp-mouse-to-focusFluxTape
2024-03-09utils/spawning: Pass grandchild PID only on systemdIvan Molodetskikh
libc::close_range() is not available on musl, so do this workaround for now.
2024-02-24Add environment {} config sectionIvan Molodetskikh