forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on ad3847fad9c8b5ea2c4a3f9def66cd02ffdfd0e2Filtered to src/layout/scrolling.rsClear filter

2025-09-30

2025-09-20

2025-09-12

layout/scrolling: Remove more redundant animate argsIvan Molodetskikh · d45b063
layout/scrolling: Remove more redundant animate args

These were redundant before too.

2025-09-04

layout/tile: Animate un/fullscreen resizeIvan Molodetskikh · a0d002c
layout/tile: Animate un/fullscreen resize

This turned out to require quite a few changes.

We keep track of the tile resize animation progress separately now, in order to
provide a resizing black fullscreen backdrop for non-resizable windows.

The window is always rendered in the middle of the tile, which once again aids
with the resizing black fullscreen backdrop.

The backdrop itself will fade in from transparency so that it's less jarring.

The resize animation now keeps track of the fullscreen progress to deal with
the case where an unfullscreen resize is interrupted by another non-fullscreen
resize. In this case, the fullscreen progress continues animating to avoid
sudden disappearance of the fullscreen backdrop.

Some things like border visibility switch to this fullscreen progress once again
to avoid jarring appearance/disappearance.

The border radius animates in accordance with the fullscreen progress to match
the visuals.

2025-09-03

2025-09-02

layout/scrolling: Track pending vs. current fullscreen for ColumnsIvan Molodetskikh · c832bde
layout/scrolling: Track pending vs. current fullscreen for Columns

We already did that for Tiles, but for Columns we only tracked what was
effectively pending fullscreen. We used it in several places where the current
fullscreen should've been used instead, like the tile origin or the view offset.

This commit splits the two and makes every place use the right one.

Fixes things like tiles briefly appearing at y=0 between issuing the fullscreen
command and the tile committing in response to the fullscreen configure.
layout/scrolling: Store view_offset_before_fullscreen when column actually goes fullscreenIvan Molodetskikh · b8995a1
layout/scrolling: Store view_offset_before_fullscreen when column actually goes fullscreen

Simplifies the handling and correctly saves/restores view offset for clients
that are slow to fullscreen, as can be seen from the fixed test.

2025-08-28

2025-08-27

Fix typosIvan Molodetskikh · 5b26f58Browse files

2025-08-16

niri-ipc: Add window positions and sizes (#1265)yrkv · Unverifiedaf30cc8
niri-ipc: Add window positions and sizes (#1265)

* Add window sizes and positions to the IPC

* basic fixes

* report window_loc instead of window pos

* clean ups

* make scrolling indices 1-based

* add printing to niri msg windows

* don't include render offset in floating tile pos

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-08-13

2025-08-14

layout/scrolling: Normalize column X move anim from 1 to 0Ivan Molodetskikh · a9f0f4d
layout/scrolling: Normalize column X move anim from 1 to 0

Will be needed for offsetting to fix the resize cancel issue.

2025-08-12

layout: Remove by-ref animation_snapshot() getterIvan Molodetskikh · c9873a0
layout: Remove by-ref animation_snapshot() getter

It was used in only one place, and that place was due for an update to use the
cached data.

2025-06-13

layout/scrolling: Take unfullscreen view offset unconditionallyIvan Molodetskikh · 83ec369
layout/scrolling: Take unfullscreen view offset unconditionally

It might get set and unset all while the view is frozen with a gesture.

2025-06-11

Add deactivate-unfocused-windows debug flag (#1706)sashomasho · Unverified8d7b22d
Add deactivate-unfocused-windows debug flag (#1706)

* force xdg deactivation on invisable workspaces

This debug option provides a workaround for many Chromium-based chat
applications that fail to show notifications when they're active in
a workspace that's not currently visible and don't have keyboard focus

Signed-off-by: Alex Yosifov <sashomasho@gmail.com>

* fixes

---------

Signed-off-by: Alex Yosifov <sashomasho@gmail.com>
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-06-09

2025-05-12

2025-05-10

2025-05-01

layout/scrolling: Update view offset on config updateIvan Molodetskikh · 6c9705d
layout/scrolling: Update view offset on config update

Fix always-centering not applied right away. No other changes intended.

2025-04-25

2025-04-24

layout/scrolling: Support view offset anim during gestureIvan Molodetskikh · ce31039
layout/scrolling: Support view offset anim during gesture

Brings back moving the newly active window into focus upon interactive
move dragging out.

2025-04-17

2025-04-20

Remove cancellation from swipe gesturesIvan Molodetskikh · 59a4224
Remove cancellation from swipe gestures

It only worked for workspace switch, and even there it was more confusing than
helpful.

2025-04-17

layout: Remove width and is_full_width from InsertHintIvan Molodetskikh · fdbc485
layout: Remove width and is_full_width from InsertHint

They were unused.

2025-04-15

layout: Don't pass scale to render unnecessarilyIvan Molodetskikh · 7e253d2
layout: Don't pass scale to render unnecessarily

These parts of the layout already know their scale.

2025-04-04

layout: Take into account idle time between last gesture event and endIvan Molodetskikh · df94662
layout: Take into account idle time between last gesture event and end

Fixes cases like: do a quick movement with mouse, then hold it in-place for a
while (no events generated), then release the gesture (it uses all that
built-up speed). This also happens with DnD scroll and makes it go further than
intended.

2025-04-02

layout/scrolling: Use slice::fill()Ivan Molodetskikh · b49f7dc
layout/scrolling: Use slice::fill()

Fix new Clippy warning.

2025-03-31

2025-03-22

layout: Reset unfullscreen view offset when removing windowIvan Molodetskikh · ed20822
layout: Reset unfullscreen view offset when removing window

Another old bug found by randomized tests after I expanded the testing mock
window.

2025-03-17

layout/tile: Don't take fullscreen into account in min/max sizeIvan Molodetskikh · 6a80ec4
layout/tile: Don't take fullscreen into account in min/max size

They are used strictly for non-fullscreen size computation.

2025-03-13

2025-03-14

2025-02-18

Don't snap after DnD scroll if view position didn't changeIvan Molodetskikh · dca187d
Don't snap after DnD scroll if view position didn't change

Otherwise, any DnD breaks temporarily centered columns.

2025-02-17

2025-02-16

2025-02-15

2025-02-11

Hook up are_transitions_ongoing() for floating and tilesIvan Molodetskikh · fd8140e
Hook up are_transitions_ongoing() for floating and tiles

Don't spoil it

2025-02-13