Port to Hyprland 0.56.2 - #240
Draft
ahzay wants to merge 3 commits into
Draft
Conversation
Update for the 0.56 workspace/monitor/window manager refactor: - Replace removed CCompositor methods with the new state managers: - State::workspaceState() (getWorkspaceByID, createNewWorkspace, getWorkspaces) - State::monitorState() (getMonitorFromID, getMonitorFromCursor, getMonitorFromName, m_monitors) - Desktop::viewState()->hitTest().windowAt() (vectorToWindowUnified) - Desktop::globalWindowController()->moveWindowToWorkspace() (moveWindowToWorkspaceSafe) - Use Fullscreen::controller() for fullscreen state and Fullscreen::eFullscreenMode / FSMODE_* - Replace g_pAnimationManager with Animation::mgr() - Use Pointer::pointerController()->warpTo() for warpCursorTo - Use monitor->scheduleFrame() for scheduleFrameForMonitor - Use positionAnimation()/sizeAnimation() accessors for m_realPosition/m_realSize - Update layer alpha to alpha()[LS_ALPHA_FADE] and restore hidden layers from tracked state - Fix AnimationManager.hpp include path (moved from managers/ to animation/) - Add hyprpm commit_pin for Hyprland 0.56.2
HyprlandAPI::getConfigValue() returns null for built-in Hyprland 'gestures:*' options when called from a plugin in 0.56.2. The previous code dereferenced the result unconditionally, causing a SEGV in updateSwipe() (Input.cpp:136) and endSwipe() on every swipe. Guard the lookups and fall back to Hyprland's built-in defaults (distance=300, min_speed_to_force=30, cancel_ratio=0.5).
hyprctl dispatch is broken for colon/space dispatcher names on Hyprland
0.56.2 (it wraps args in Lua), so the overview:toggle dispatcher can't be
invoked from the config. Register hl.plugin.hyprspace.{toggle,open,close}
via addLuaFunction so gestures/keybinds can toggle the overview directly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update for the 0.56 workspace/monitor/window manager refactor: