Commit graph

270 commits

Author SHA1 Message Date
github-usr-name
e9b22b0722 Fix assumption [that source window is focused] in getWindowInDirection 2024-02-26 07:29:35 +00:00
github-usr-name
3841f2382f Address PR issues 2024-02-24 12:32:25 +00:00
Pete Appleton
82f6283a8f Refactor distance calculation 2024-02-24 07:24:17 +00:00
Pete Appleton
946076d380 Fix compilation failure against hyprland trunk 2024-02-24 07:24:17 +00:00
Pete Appleton
1255b2f508 Update configuration to hyprlang 2024-02-24 07:24:17 +00:00
Pete Appleton
f3dd53d76a Implement focus_obscured_windows_policy logic 2024-02-24 07:24:17 +00:00
Pete Appleton
19f3cb0b11 Add config field definitions 2024-02-24 07:24:17 +00:00
Pete Appleton
bca5a9dbd2 Fix: Only look for nodes on neighbor monitor in correct direction
Use last-focused-window when navigating to monitor by direction if it has same relative position as the logically closest window
2024-02-24 07:24:17 +00:00
Pete Appleton
0e9077ec3d Integrate floating windows into hy3:movefocus
Move floating window if focused, even if tiled windows on same workspace

Navigate based on window middle

Feels unintuitive in use when floating overlaid on tiled

Fix: Set new monitor active when moving floating windows, remember previous workspace
2024-02-24 07:24:17 +00:00
Pete Appleton
cc65dabe32 Add hy3:resizenode dispatcher 2024-02-24 07:24:17 +00:00
outfoxxed
f5fc457d6b
Fix gaps config being read as an int (it is now a customtype)
Fixes breakage introduced in hyprland/ddf022d61c63fb36b4abba392682772690c06b5c
2024-02-22 18:09:50 -08:00
Ross MacLeod
70f77fd224 Hy3Layout::applyNodeDataToWindow: when looking for the monitor associated with a node's workspace, allow for a special workspace which isn't yet emplaced on a monitor but is still set 2024-02-19 00:58:33 -05:00
Ross MacLeod
782f32e83d check m_pLastMonitor->specialWorkspaceID before checking activeWorkspace 2024-02-19 00:20:59 -05:00
outfoxxed
cdb2c28df1
Migrate config to hyprlang 2024-02-14 22:33:07 -08:00
Arjun31415
449c9d67f8 Fix hy3 build
`m_bNoFocus` field moved to struct `m_sAdditionalConfigData`. Ref https://github.com/hyprwm/Hyprland/pull/4672
2024-02-14 08:29:11 +05:30
outfoxxed
6bbb807178
Merge latest changes into resize-by-keyboard 2024-02-07 03:55:31 -08:00
outfoxxed
7f1989689d
Fix starting with a horizontal layout on vertical monitors 2024-02-06 14:36:11 -08:00
q234rty
acedb05a75
Fix building on Hyprland 0.35.0
Ref https://github.com/hyprwm/Hyprland/pull/4514
2024-02-06 15:54:31 +08:00
Pete Appleton
f58720ba83 Fix: Only constrain node resize if they are at the root of the layout 2024-01-31 08:50:40 +00:00
Pete Appleton
cfa15c9ef6 Use MIN_RATIO to cap node sizes
A minimum Vector2D would be ideal, but hard to calculate - it would require
either a tree walk for every single resize operation (very expensive),
or storing after a `recalcSizePosRecursive` operation (significant work)
2024-01-29 21:09:04 +00:00
Pete Appleton
dad1589d21 Improve iteration handling and validate results 2024-01-29 08:50:07 +00:00
Pete Appleton
f3e8d2ff9a Fix resize breakage with expanded nodes 2024-01-28 23:36:24 +00:00
Pete Appleton
6185efd847 Comment-out unused code instead of masking with preprocessor 2024-01-22 07:56:14 +00:00
Pete Appleton
5ca59bf723 Implement resizeActiveWindow fully 2024-01-21 09:48:37 +00:00
Pete Appleton
f150886e63 Avoid GCC build warnings
- Add `default` to switch statements to ensure that a defined value is returned from non-void functions
- Add `HY3_ENABLE_UNUSED_BLOCKS` option (default: `FALSE`) which controls a `#if` pre-processor
  directive surrounding the apparently unused `unfullscreen` label (and associated block)
  in `Hy3Layout.cpp`
2024-01-20 11:51:43 +00:00
Santos
e113973f76
Force reload config after plugin is loaded 2024-01-19 13:18:49 +01:00
outfoxxed
7c643fa66e
Fix killactive and movetoworkspace not working in fullscreen 2024-01-14 02:43:37 -08:00
outfoxxed
783c7ae0cf
Add hy3:movetoworkspace, which moves a node to a workspace 2024-01-14 02:31:06 -08:00
outfoxxed
06ecd58399
Move newly tiled windows into place in the window's workspace
Usually the window workspace differs from the monitor workspace when
moving a window to a background workspace.
Previously onWindowCreatedTiling acted on the monitor active workspace
which caused windows to always appear at the end of the outermost node
on the target workspace. Now they appear relative to the last selected node.
2024-01-12 03:14:31 -08:00
8774c0479a update: made it up to date with upstream 2024-01-03 05:25:59 +01:00
outfoxxed
2f28dc810c
Rewrite installation instructions
Add hyprpm, deprecate AUR, prioritize stable releases for Nix.
2024-01-01 20:57:46 -08:00
df59286237 fix: removed a unneeded error popup 2023-12-28 22:06:52 +01:00
63e6a793dd fix: fixed some broken stuff 2023-12-28 16:32:49 +01:00
Kaley Fischer
d15c25a855
Merge pull request #1 from outfoxxed/master
new updates
2023-12-27 18:29:22 +01:00
Olekoop
78a423075c Add option to center window title 2023-12-16 17:38:02 +01:00
outfoxxed
a5626177b6
Merge pull request #52 from eriedaberrie/master
Fix over-correction of borders that are now window decorations
2023-12-10 17:27:30 -08:00
eriedaberrie
fdb23665b9 Fix over-correction of borders that are now window decorations 2023-12-10 17:20:43 -08:00
outfoxxed
4830a2cf3c
Fix tab rounding on non 1.0 dpi values 2023-12-10 17:00:35 -08:00
outfoxxed
102e652fe9
Fix tab bars not rendering on non 1.0 dpi values
Closes #48
2023-12-10 16:54:35 -08:00
outfoxxed
b341fe60a7
Fix crash when moving focus of a node containing multiple windows 2023-12-10 01:02:23 -08:00
outfoxxed
f71ac37565
Use hyprland algorithm to find floating window to focus in direction 2023-12-06 02:58:03 -08:00
outfoxxed
c727ad11e3
Add floating window support to hy3:movefocus 2023-12-06 02:55:12 -08:00
outfoxxed
6a89b574c7
Fix getNextWindowCandidate not considering fullscreen or floating windows 2023-12-06 01:43:34 -08:00
outfoxxed
92244e7285
Add hyprland version compatibility check 2023-12-05 00:48:26 -08:00
da91c54ef4 pull: Added some good pull requests 2023-12-02 12:52:00 +01:00
outfoxxed
4db9b1f37a
Fix pixel gaps with recent CBox changes 2023-11-08 02:01:06 -08:00
Arjun31415
575b616c1e use Hyprland internal CBox instead of wlr_box 2023-11-05 12:48:01 +05:30
outfoxxed
f4081531bd
Recalculate root node when recalculateMonitor is called
Fixes bars being overlaid on windows and mismatched fullscreen sizes.
2023-11-04 03:22:14 -07:00
outfoxxed
6cf58b9c3d
Fix debugnodes 2023-11-04 03:00:22 -07:00
outfoxxed
91c94d6e49
Fix incorrect tab bar width
Tab bar width was incorrectly calculated.
2023-11-04 02:58:55 -07:00