peelz
690d635505
Initialize tracing_subscriber earlier
2025-02-05 18:06:46 +03:00
Ivan Molodetskikh
a444efd0eb
Add focus-window-in-column (by index) action
2025-02-05 17:25:57 +03:00
Ivan Molodetskikh
c41f93a468
Add focus-window-top/bottom/down-or-top/up-or-bottom actions
2025-02-05 17:25:51 +03:00
Mathias Zhang
900da597e4
input: add touchpad drag-lock setting
2025-02-05 13:35:13 +03:00
Ivan Molodetskikh
ddcac86d1d
mapped: Add needs_configure flag
...
Allows to de-duplicate configures from requests that require one.
2025-02-05 09:36:58 +03:00
Ivan Molodetskikh
734e3a6d3c
Fix find_window_and_output() returning None with no outputs
...
As far as I can tell, this would mess up a ton of the logic. Not sure
how anything worked with no outputs before?
2025-02-05 09:35:10 +03:00
Ivan Molodetskikh
f18b1a7043
mapped: Document RequestSizeOnce
2025-02-05 08:41:40 +03:00
Ivan Molodetskikh
7d24ad23c2
layout/scrolling: Extract tiles_origin()
2025-02-04 10:42:44 +03:00
Ivan Molodetskikh
d5592743cb
Add impl From<Color> for Gradient
2025-02-02 09:55:40 +03:00
Ivan Molodetskikh
32ad545f84
layout: Extract max_tile_height
2025-02-01 13:05:07 +03:00
Ivan Molodetskikh
4eddcef1be
layout: Inline variable
2025-02-01 13:05:07 +03:00
Ivan Molodetskikh
68776f1cee
layout: Verify that individual tiles don't get sized taller than working area
2025-02-01 10:48:16 +03:00
Ivan Molodetskikh
a0e2a15c60
Take border into account for fixed preset-column-width for tiled windows
2025-01-31 21:30:22 +03:00
Ivan Molodetskikh
88c6778771
Extract SizeChange::from(PresetSize)
2025-01-31 21:15:43 +03:00
Ivan Molodetskikh
48a4d5c8a3
Fix typo in comment
2025-01-31 19:24:42 +03:00
Ivan Molodetskikh
6f2f7fa259
layout: Update module comment
2025-01-31 18:05:09 +03:00
Ivan Molodetskikh
49ddf66c2f
layout: Move tests to separate file
...
This way changing just the tests won't rebuild the main library.
2025-01-31 17:56:43 +03:00
fable
a169e0335d
adjust horizontal view movement gestures snap points for center-focused-column "on-overflow" ( #1052 )
...
* Adjust snap points for center-focused-column "on-overflow"
* fix outer gaps not being accounted for in is_overflowing
2025-01-30 17:17:16 +03:00
may
e412a0fc6b
add option to set xkb config from file ( #1062 )
...
* add option to set xkb config from file
* Apply suggestions from code review
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-01-30 13:50:05 +00:00
bbb651
6b04b1e454
misc: Use helper function for restriced protocol filters
...
I looked at cosmic-comp as a sanity check and they do the same thing,
I ended up yoinking their function name because it reads better,
not sure about "unrestricted" vs "privileged".
2025-01-30 07:18:42 +03:00
bbb651
0c340ec5ea
misc: Use CursorImageSurfaceData type alias
...
instead of `Mutex<CursorImageAttributes>`
2025-01-30 07:18:42 +03:00
bbb651
34679c75a4
misc: Fix typos
...
Using [`typos`](https://github.com/crate-ci/typos ) cli
2025-01-30 07:18:42 +03:00
Ivan Molodetskikh
1d3820a064
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-29 13:56:26 +03:00
Ivan Molodetskikh
1c749f578c
layout: Update workspace original output on moving even if same monitor
...
Moving is an explicit action that puts the workspace on a specific monitor. It
makes sense to update the original output even if the workspace already happens
to be on the target monitor.
2025-01-29 13:56:26 +03:00
Ivan Molodetskikh
0226d9aec2
Don't create on-disk sockets in tests
2025-01-27 08:30:22 +03:00
Ivan Molodetskikh
902222675a
Use Niri::insert_client() in tests
2025-01-27 08:16:09 +03:00
Ivan Molodetskikh
ec43493522
Extract Niri::insert_client()
2025-01-27 08:06:33 +03:00
Evgeny Zemtsov
baa0518912
Extend switch-layout action to accept layout index ( #1045 )
...
* Extend switch-layout action to accept layout index
* Update src/input/mod.rs
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-01-26 19:09:01 +00:00
Kirottu
852da5714a
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-25 08:49:51 +00:00
peelz
54a1cd5069
Add clipboard disable-primary setting
2025-01-25 10:36:36 +03:00
bbb651
128b01e049
Add scroll-factor window rule
2025-01-23 12:07:32 +03:00
Ivan Molodetskikh
788c9c6c54
Add find_root_shell_surface() that goes through popups
2025-01-23 12:07:32 +03:00
Ivan Molodetskikh
a10705fb20
Add toggle-window-rule-opacity action
2025-01-23 11:13:55 +03:00
Ivan Molodetskikh
acd4cb51aa
Implement shadows for layer surfaces
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
2511a98e8b
Extract Niri::update_shaders()
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
a7692d10c4
Add update_render_elements() to MappedLayer
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
c892f04c96
tile: Rename update() to update_render_elements()
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
3aad5a39ea
Fix two comments
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
8182484572
Remove Vec from Shadow::render()
2025-01-18 17:43:58 +03:00
sodiboo
0584dd2f1e
implement keyboard-shortcuts-inhibit and wlr-virtual-pointer ( #630 )
...
* stub keyboard-shortcuts-inhibit and virtual-pointer impls
* implement keyboard-shortcuts-inhibit
* implement virtual-pointer
* deal with supressed key release edge-case; add allow-inhibiting property
* add toggle-keyboard-shortcuts-inhibit bind
* add InputBackend extensions; use Device::output() for absolute pos events
* add a `State` parameter to the backend exts and better document future intent
* Add some tests for is_inhibiting_shortcuts
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-01-18 17:26:42 +03:00
Ivan Molodetskikh
bd559a2660
Implement window shadows
2025-01-17 23:10:01 +03:00
Val Packett
890bbff007
dbus: DisplayConfig: implement apply_monitors_config
...
This enables gnome-control-center to apply display configuration
changes. Only temporarily, persistence is ignored currently.
2025-01-17 11:16:10 +03:00
Val Packett
b853d5b124
dbus: DisplayConfig: report fractional scales as supported
2025-01-17 11:16:10 +03:00
Val Packett
693e0e09f7
dbus: DisplayConfig: report disabled monitors in get_current_state
...
This is required for gnome-control-center to be able to turn
monitors back on.
2025-01-17 11:16:10 +03:00
Val Packett
d52356b131
dbus: DisplayConfig: add properties required by display settings panel
2025-01-17 11:16:10 +03:00
Ivan Molodetskikh
99ba295082
Remove obsolete comment
2025-01-15 15:18:11 +03:00
Ivan Molodetskikh
8c2b5957eb
Rename FoIPosition to FloatingPosition
2025-01-15 14:29:35 +03:00
Ivan Molodetskikh
a3cbe3514b
clipped_surface: Store complete uniforms in the struct
...
This mistake shall never happen again.
2025-01-14 21:25:17 +03:00
Ivan Molodetskikh
efa7c862a4
Add missing clipped surface uniform
2025-01-14 21:19:05 +03:00
Gustav Sörnäs
0df7a085de
add write-to-disk argument to screenshot actions
2025-01-14 13:39:52 +03:00