forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dde9214ae4c9fccf958bf9bf9e22cb00a618fda5Filtered to src/layout/monitor.rsClear filter

2025-02-06

2025-02-01

2025-02-10

Account for border in contents_under()Ivan Molodetskikh · 1d88393
Account for border in contents_under()

Fixes pointer clicks going through window borders to a layer surface below,
also fixes window not getting activated in all cases from a border click.

2025-02-05

2025-01-29

layout: Do not update original output for named workspaces upon adding windowsIvan Molodetskikh · 1d3820a
layout: Do not update original output for named workspaces upon adding windows

The way named workspaces are generally used makes them more "attached" to their
original output.

For example, you have a two-monitor setup with named workspaces on both. When
you disconnect the monitor to go somewhere and work for a while, then return,
you probably want your named workspaces to return to where they were on your
second monitor.

This is in contrast to unnamed workspaces which are more transient and should
more easily follow you wherever you're working.

2025-01-25

Add move-workspace-to-index and move-workspace-to-monitor actions (#1007)Kirottu · Unverified852da57
Add move-workspace-to-index and move-workspace-to-monitor actions (#1007)

* Added move-workspace-to-index and move-workspace-to-monitor IPC actions

* Added redraws to the workspace handling actions, fixed tests that panicked, fixed other mentioned problems.

* Fixed workspace focusing and handling numbered workspaces with `move-workspace-to-index`

* Fixed more inconsistencies with move-workspace-to-monitor

* Added back `self.workspace_switch = None`

* Reordered some workspace cleanup logic

* Fix formatting

* Add missing blank lines

* Fix moving workspace to same monitor and wrong current index updating

* Move function up and add fixme comment

---------

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

2025-01-10

Fix new Clippy warningsIvan Molodetskikh · 623687eBrowse files
Allow workspace names to be changed dynamically (#904)rustn00b · Unverified5958d3b
Allow workspace names to be changed dynamically (#904)

* Add un/set workspace name actions

* Add SetWorkspaceName reference to proptests

* Simplify unname_workspace

* Add ewaf version of set first workspace name test

* Simplify more

* Fix comment

* Make workspace in set-workspace-name a positional option

---------

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

2025-01-09

Add a window swap operation (#899)rustn00b · Unverified80815a1
Add a window swap operation (#899)

Swap the active window with the a neighboring column's active window.


---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Take into account PR comments

- no longer behave like an expel when a swap is made in a direction
  where there is no column to swap with
- fix janky animation

2025-01-04

2024-12-29

2024-12-26

2024-12-24

2024-12-22

2024-11-29

2024-11-30

layout: Extract ScrollingSpaceIvan Molodetskikh · 8665003
layout: Extract ScrollingSpace

Leave the Workspace to do the workspace parts, and extract the scrolling parts
into a new file. This is a pre-requisite for things like the floating layer
(which will live in a workspace alongside the scrolling layer).

As part of this huge refactor, I found and fixed at least these issues:
- Wrong horizontal popup unconstraining for a smaller window in an
  always-centered column.
- Wrong workspace switch in focus_up_or_right().

2024-11-29

Fix new warningsIvan Molodetskikh · 39a9f55Browse files
Implement empty-workspace-above-first (#745)FluxTape · Unverified11f351d
Implement empty-workspace-above-first (#745)

* Implement empty-workspace-above-first option

* add two failing tests

* fix interactive_move_onto_empty_output_ewaf and
interactive_move_onto_first_empty_workspace tests

* Add two failing ewaf option toggle tests

* Fix adding/removing first empty workspace on option toggle

* Don't remove first empty workspace if focused

* Stop workspace switch when enabling ewaf

* layout/monitor: Offset workspace switch on adding workspace above

* Fix some initial active workspace ids with ewaf

* wiki: Document empty-workspace-above-first

---------

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

2024-11-24

2024-11-23

2024-07-15

2024-10-17

2024-10-16

2024-10-14

2024-10-11

2024-10-10

layout: Reduce field visibilityIvan Molodetskikh · ab7d81a
layout: Reduce field visibility

The outside code isn't supposed to mess with the fields.

2024-09-27

fix focus_up_or_rightMarwin Kreuzig · c04ccafBrowse files

2024-09-12

2024-09-05

2024-09-06

Implement by-id window addressing in IPC and CLI, fix move-column-to-workspaceIvan Molodetskikh · dcb29ef
Implement by-id window addressing in IPC and CLI, fix move-column-to-workspace

This is a JSON-breaking change for the IPC actions that changed from
unit variants to struct variants. Unfortunately, I couldn't find a way
with serde to both preserve a single variant, and make it serialize to
the old value when the new field is None. I don't think anyone is using
these actions from JSON at the moment, so this breaking change is fine.

2024-08-29

Animate focus-workspace by idx/back and forth/previousIvan Molodetskikh · 8eb34b2
Animate focus-workspace by idx/back and forth/previous

Deleting the test because it only made sense when no-animation was
special cased.

2024-08-28

2024-08-23

Implement window close transactionIvan Molodetskikh · c8839f7
Implement window close transaction

Mainly visible with disabled animations.

2024-06-19

2024-06-17

Animate xdg-activation and foreign-toplevel workspace switchesIvan Molodetskikh · 793e1bd
Animate xdg-activation and foreign-toplevel workspace switches

These are a bit jarring without an animation.
Refactor layout to fractional-logicalIvan Molodetskikh · 1dae45c
Refactor layout to fractional-logical

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-11

2024-06-09

Add `focus-column-right-or-first`, `focus-column-left-or-last` (#391)James Sully · Unverifieda55e385
Add `focus-column-right-or-first`, `focus-column-left-or-last` (#391)

* add focus-column-right-or-first

* add focus-column-left-or-last

2024-05-22

2024-05-16

2024-05-11

Implement named workspacesGergely Nagy · eb9bbe3
Implement named workspaces

This is an implementation of named, pre-declared workspaces. With this
implementation, workspaces can be declared in the configuration file by
name:

```
workspace "name" {
  open-on-output "winit"
}
```

The `open-on-output` property is optional, and can be skipped, in which
case the workspace will open on the primary output.

All actions that were able to target a workspace by index can now target
them by either an index, or a name. In case of the command line, where
we do not have types available, this means that workspace names that
also pass as `u8` cannot be switched to by name, only by index.

Unlike dynamic workspaces, named workspaces do not close when they are
empty, they remain static. Like dynamic workspaces, named workspaces are
bound to a particular output. Switching to a named workspace, or moving
a window or column to one will also switch to, or move the thing in
question to the output of the workspace.

When reloading the configuration, newly added named workspaces will be
created, and removed ones will lose their name. If any such orphaned
workspace was empty, they will be removed. If they weren't, they'll
remain as a dynamic workspace, without a name. Re-declaring a workspace
with the same name later will create a new one.

Additionally, this also implements a `open-on-workspace "<name>"` window
rule. Matching windows will open on the given workspace (or the current
one, if the named workspace does not exist).

Signed-off-by: Gergely Nagy <niri@gergo.csillger.hu>

2024-05-10

2024-05-04

Split update_render_elements() from advance_animations()Ivan Molodetskikh · 73cc007
Split update_render_elements() from advance_animations()

advance_animations() is called from places like input, whereas
update_render_elements() is strictly for rendering.