forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 0411fd8d90f4e80990ca511f7ea65ea680aef185Filtered to src/layout.rsClear filter

2023-10-07

Add gaps settingIvan Molodetskikh · 994bc64
Add gaps setting

The past few refactors have led up to this point, and now it's finally
possible.
layout: Refactor view offset, padding, work area handlingIvan Molodetskikh · 624b329
layout: Refactor view offset, padding, work area handling

Fixes broken padding on fullscreen windows, especially with struts on
the sides present.

It is now view offset's job to include padding and struts.

2023-10-05

Refactor layout for configurability, add preset-column-widths optionIvan Molodetskikh · 6fcdb41
Refactor layout for configurability, add preset-column-widths option

layout.rs finally gets a struct actually named Layout.

2023-10-04

2023-10-03

Add set-column-width actionIvan Molodetskikh · 7558ac1Browse files

2023-10-01

2023-09-30

Compute view offset relative to anim targetIvan Molodetskikh · 6f8ad18
Compute view offset relative to anim target

This enables quickly tapping focus right-left to keep typing in the
current window while showing the next window.

Resolves https://github.com/YaLTeR/niri/issues/26
Refactor frame schedulingIvan Molodetskikh · a3aa5fc
Refactor frame scheduling

Combine the redraw state variables into one enum, and refactor to get
rid of the requirement that a VBlank must queue a subsequent redraw.
Also fix the bug where ongoing animations that produced no damage could
stall the redrawing.

2023-09-29

Throttle frame callbacks to once per monitor refreshIvan Molodetskikh · 404661e
Throttle frame callbacks to once per monitor refresh

Under some circumstances, the compositor can get into a commit-frame
callback busy loop with a client. For example, if a client redraws on
frame callbacks, but the resulting frame has empty damage (e.g. the
damaged part of the client is outside the monitor). Or if the client
simply commits with empty damage (looking at you, Firefox).

This behavior is compliant with the Wayland specification and with the
intended idea of frame callbacks, but causes a lot of unnecessary CPU
usage in the client and the compositor.

To solve this problem, this commit introduces frame callback throttling.

Every surface may only receive a single frame callback in one
monitor refresh cycle. If a surface commits resulting in no KMS frame
submission, a timer is created, that will fire at the predicted would-
be-VBlank time, and send the accumulated frame callbacks.

This way, a surface that redraws on frame callbacks will not notice
any change in frame callback delivery, if its commits suddenly stop
producing KMS updates.

2023-09-28

layout: Refresh windows tooIvan Molodetskikh · 1572ef7
layout: Refresh windows too

This will send output enter/leave to new popups.

2023-09-27

layout: Use actual working area on workspace creationIvan Molodetskikh · cf123dd
layout: Use actual working area on workspace creation

Fixes https://github.com/YaLTeR/niri/issues/19
layout: Add randomized testIvan Molodetskikh · 31ea816Browse files
Fix test nameIvan Molodetskikh · f2e28f5Browse files

2023-09-26

2023-09-24

Add focus ringsIvan Molodetskikh · f58e56dBrowse files
layout: Focus prev column when removing just created columnIvan Molodetskikh · 51df1ab
layout: Focus prev column when removing just created column

This works similar to tabs in Firefox: when you create a tab and then
close it without focusing any other tabs, the focus returns to the
previously-focused tab, rather than the usual next tab. The logic is
that in this case, the new tab was likely transient, and the user wants
to get right back to what they were doing.

In niri's case, this also serves as a workaround for wl-clipboard
spawning and destroying a window, messing up the focus.

2023-09-21

2023-09-16

2023-09-13

Implement minimizing view movement on changesIvan Molodetskikh · 219ca08
Implement minimizing view movement on changes

Before this commit, windows were always left-aligned.

Now, when changing focus, if the window is fully visible, the view
doesn't move. If the window is not fully visible, the view is moved the
minimum amount.

2023-09-12

2023-09-05

2023-09-03

2023-08-27

2023-08-16

Implement wp-presentationIvan Molodetskikh · 6e36ccbBrowse files
Respect max window widthIvan Molodetskikh · d4d2cefBrowse files
Put active window on topIvan Molodetskikh · fc8f51dBrowse files
Add basic fullscreen implIvan Molodetskikh · 6494df3Browse files

2023-08-15

Add initial layer-shell implementationIvan Molodetskikh · 37cbed8
Add initial layer-shell implementation

Those surfaces never receive mouse focus and always keyboard focus,
which may not be always good, but it'll do for now.

2023-08-14