forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on e259061cbcfaf3a52a9eb2016b949cdc42e45db3Filtered to src/layout.rsClear filter

2023-12-19

Implement popup unconstrainingIvan Molodetskikh · e259061
Implement popup unconstraining

Using my new Smithay implementation.
Add optional fallback to workspace focus/move for window focus/move (#93)Matt Cuneo · Unverifiedd6b62ad
Add optional fallback to workspace focus/move for window focus/move (#93)

* Add optional fallback to workspace focus/move for window focus/move commands

* Refactored to separate commands

* fix indentation

* fix white space

* Stylistic fixes

---------

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

2023-12-05

Prevent stealing focus from fullscreen clientsIvan Molodetskikh · 9b3478a
Prevent stealing focus from fullscreen clients

Got hit by that Syncthing disconnect dialog a few times while playing
games.

2023-11-24

layout: Switch to workspace on window activation if not transitioningIvan Molodetskikh · 25fd6a0
layout: Switch to workspace on window activation if not transitioning

This should not be possible to trigger at the moment, but with
xdg-activation it will be.
layout: Change workspace by idx functions to accept 0-based usizeIvan Molodetskikh · 3473965
layout: Change workspace by idx functions to accept 0-based usize

Makes more sense to do the converstion at the top of the call stack.

2023-11-13

2023-11-08

Add set-window-height actionIvan Molodetskikh · c1060cdBrowse files
layout: Implement auto height distributionIvan Molodetskikh · dc9cee4
layout: Implement auto height distribution

Takes into account min and, partially, max window heights, and adds 1 px
when necessary to account for uneven division.

2023-11-02

2023-11-01

Preserve column width on window actionsIvan Molodetskikh · ee8404b
Preserve column width on window actions

Fixes https://github.com/YaLTeR/niri/issues/53
layout: Change with_surfaces to set_preferred_scale_transformIvan Molodetskikh · e0a76b6
layout: Change with_surfaces to set_preferred_scale_transform

The former is too specific to concrete Window and not as amenable to
testing.

2023-10-25

2023-10-21

Stop updating focus during transitionsIvan Molodetskikh · 8bde252
Stop updating focus during transitions

This also includes touchpad swipes.

2023-10-14

2023-10-11

Add a few more Tracy spansIvan Molodetskikh · 3602876Browse files
Draw focus ring as border on SSD windowsIvan Molodetskikh · 1d66f1b
Draw focus ring as border on SSD windows

With SSD we're reasonably sure that the window is a rectangle with no
rounded corners, so a rectangular border should work.

2023-10-10

Add screenshot-window actionIvan Molodetskikh · c8105aeBrowse files

2023-10-08

Add barebones three-finger-swipe workspace switchIvan Molodetskikh · e70e660
Add barebones three-finger-swipe workspace switch

Notable omission is velocity tracking.

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