forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 055a94de3d3b792adfb6842bdddd8eab6384164fFiltered to src/layout/monitor.rsClear filter

2025-05-13

layout: Fix workspace swipe to same workspace forgetting previous idIvan Molodetskikh · 6d083ea
layout: Fix workspace swipe to same workspace forgetting previous id

This manifested much more prominently in the overview.

2025-05-01

2025-04-26

2025-04-25

Fix panic when interactively moving to invisible workspaceIvan Molodetskikh · d2a1cf5
Fix panic when interactively moving to invisible workspace

Introduced in the interactive move between workspaces commit.
Implement an OverviewIvan Molodetskikh · af1fca3Browse files
Render workspaces separately with gaps betweenIvan Molodetskikh · 9571d14
Render workspaces separately with gaps between

This design makes more sense spatially, and is required for the
Overview. Gaps also make it clear how clipping windows to workspace
bounds works.

Background and bottom layer-shell surfaces get duplicated for each
workspace, while top and overlay stay "on top".

2025-04-24

layout/monitor: Don't consider workspace switch in active_tile_visual_rectangle()Ivan Molodetskikh · 7671a5d
layout/monitor: Don't consider workspace switch in active_tile_visual_rectangle()

This only did something when in the middle of a touchpad gesture, and it
didn't really make sense for that edge case.

2025-04-18

2025-04-17

2025-04-04

2025-04-22

layout/monitor: Keep track of workspace switch gesture start idxIvan Molodetskikh · cee11dc
layout/monitor: Keep track of workspace switch gesture start idx

Fixes jump when "catching" an animation with a gesture.

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

Add missing bounds checks to move-workspace actionsIvan Molodetskikh · 74b0162
Add missing bounds checks to move-workspace actions

Fixes panics.

2025-04-17

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-03-29

Add focus argument to move-window-to-workspace (#1332)nyx · Unverified0db48e2
Add focus argument to move-window-to-workspace (#1332)

* layout: add focus flag to move-window-to-workspace

* lib: update comment

* misc: minor dup refactor

* input: format code

* layout: minor nit

* layout: update comment

* input: remove unnecessary conditionals

* misc: replace boolean

* tests: fix the failing one

* layout: change to smart

* ipc: Option<bool> -> bool

* lib: format code

* Rewrite focus doc comment

---------

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

2025-02-27

2025-02-17

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