aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-11-11Unhide the pointer on scroll events (#797)Ramses
* Unhide the pointer on scroll events Since we reset the surface under the pointer when we hide the pointer (see update_pointer_contents), scroll events don't work when the pointer is hidden. So to make scrolling work, we make sure that we unhide the pointer when a scrolling event occurs. * Update src/input/mod.rs --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-11-10Start interactive move on Mod+TouchIvan Molodetskikh
2024-11-10Fix scrolling not working with missing mouse configIvan Molodetskikh
2024-11-08Lock session right away with no outputsIvan Molodetskikh
2024-11-08Rework output connection to always go through on_output_config_changed()Ivan Molodetskikh
This has the following benefits: 1. connector_connected() is now more closely mirroring connector_disconnected() in that it merely lights up the connector, and doesn't check if the connector should be off from the config. 2. We can use more complex on/off logic that depends on multiple connectors. For example, this commit adds logic to only disable the laptop panel on lid close if there are other connected outputs. We don't want to disable the laptop panel on lid close if it's the only connected output because it causes screen lockers to create their surface from scratch on normal laptop unsuspend, which is undesirable and also confuses some screen lockers.
2024-11-08Only call on_output_config_changed() on lid switchIvan Molodetskikh
We don't need to reload the niri output config.
2024-11-06Add disable-monitor-names debug flagIvan Molodetskikh
2024-11-05layout: Preserve active workspace for removed outputsIvan Molodetskikh
2024-11-05layout: Move some types further downIvan Molodetskikh
2024-11-05Disable laptop panel when the lid is closedIvan Molodetskikh
2024-11-05Extract is_laptop_panel() to utilsIvan Molodetskikh
2024-11-03Implement scroll_factor mouse and touchpad setting (#730)elipp
* Implement scroll_factor mouse and touchpad setting * Change to FloatOrInt, add docs * Also change v120 values --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-11-03xdg: cleanup activation tokensChristian Meissl
valid tokens will stay around until explicitly cleaned-up. remove the token after it has been successfully used or we consider it timed out to prevent leaking the memory used by the activation tokens
2024-11-03Remove pointer_grab_ongoing in favor of checking the actual grabIvan Molodetskikh
2024-11-03Use is() instead of downcast().is_some()Ivan Molodetskikh
2024-11-03Correct pointer constraint activation logicIvan Molodetskikh
Internally it uses the pointer focus, so make sure we have up-to-date focus before setting it.
2024-11-03Clarify redraw in refresh_pointer_focus()Ivan Molodetskikh
2024-11-03Rename pointer_focus to pointer_contents, clarify commentsIvan Molodetskikh
This is not pointer focus and it shouldn't be pointer focus, let's be clear about it.
2024-11-03Rename surface_under_and_global_space() to contents_under()Ivan Molodetskikh
2024-11-02Replace current_state() with with_toplevel_role()Ivan Molodetskikh
Avoid microallocations that happen in current_state().
2024-11-02Add with_toplevel_role() util functionIvan Molodetskikh
2024-11-02Add Tracy allocation profiling feature flagIvan Molodetskikh
2024-11-02Follow window corner radius in insert hintIvan Molodetskikh
2024-11-02Add gradient support for the insert hintIvan Molodetskikh
Implement it via FocusRing which already handles SolidColor vs. Border render element.
2024-11-02Change TODO to FIXMEIvan Molodetskikh
2024-11-02Remove obsolete TODOIvan Molodetskikh
2024-10-29Don't show the cursor on programmatic movementIvan Molodetskikh
For keyboard-only use, especially with warp-mouse-to-focus, the intention is that the cursor stays hidden from keyboard and other automatic actions, and only shows up with an actual mouse movement.
2024-10-29[cfg-breaking] Rename hide-on-key-press to hide-when-typingIvan Molodetskikh
I originally preferred on-key-press, but when-typing feels more natural and matches sway. This setting had not been in a stable release yet so this is not stable release cfg breaking.
2024-10-28Deny toplevel move from DnD grabsIvan Molodetskikh
Work around https://gitlab.gnome.org/GNOME/gtk/-/issues/7113
2024-10-27Implement touch interactive resizeIvan Molodetskikh
2024-10-27Implement touch interactive moveIvan Molodetskikh
2024-10-27Implement interactive window moveRasmus Eneman
2024-10-27Require Clone for LayoutElement::IdIvan Molodetskikh
Now that we have MappedId, this could really be Copy. But it's quite a big refactor, so for now just require Clone as I'll need it.
2024-10-24ShaderRenderElement use borrowed Uniforms to minimize copy (#756)gmorer
2024-10-20tty: Guard against output disappearing immediately after connectionIvan Molodetskikh
Fixes https://github.com/YaLTeR/niri/issues/739
2024-10-20Use new Smithay method for turning off DPMSIvan Molodetskikh
2024-10-19layout: Update tile config in Column::add_tile_at()Ivan Molodetskikh
2024-10-18support binding actions to switches (#747)Christian Meissl
* support spawn action on switch events this adds a new config section named `switch-events` that allows to bind `spawn` action to certain switch toggles. * Expand docs --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-10-18layout: Add missing active idx check before setting activate prev on removalIvan Molodetskikh
2024-10-17Set CLOEXEC on logind inhibit fdIvan Molodetskikh
Don't leak it to child processes.
2024-10-17layout: Use remove_column_by_idx in remove_tile_by_idxIvan Molodetskikh
2024-10-17layout: Accept anim_config in remove_column_by_idxIvan Molodetskikh
2024-10-17Add scroll-button property for Touchpad, Mouse, Trackpoint, Trackball (#744)chillinbythetree
2024-10-16Implement input configuration for trackballs (#743)tazjin
* niri-config: add trackball configuration struct The available options are mostly the same as for mice. I've verified that each option is applicable to trackballs in the libinput CLI. * input: apply trackball config settings
2024-10-16layout/monitor: Extract workspace_under()Ivan Molodetskikh
2024-10-15Draw the layout as inactive when layer-shell has focusIvan Molodetskikh
2024-10-15input: apply output transform for tablet input (#737)Christian Meissl
when mapping a tablet input to an output apply the output transform just like we already do for touch input.
2024-10-14layout: Return Tile + info upon removalIvan Molodetskikh
2024-10-14layout/tests: Use existing methodIvan Molodetskikh
2024-10-14layout: Remove unnecessary vec lookupIvan Molodetskikh