Skip to content

Let moc see the Hyprland types whole - #1

Closed
Sylphera wants to merge 1 commit into
nunreasonable:windowsfrom
Sylphera:pr/moc-hyprland-types
Closed

Sylphera wants to merge 1 commit into
nunreasonable:windowsfrom
Sylphera:pr/moc-hyprland-types

Conversation

@Sylphera

Copy link
Copy Markdown

(write one or two sentences of your own here)

AI summary (Claude Opus 5.5)

HyprlandWorkspace and HyprlandToplevel have HyprlandMonitor* properties, but the class is only forward-declared, so moc doesn't see the full type. Depending on load order, QML got the monitor as an opaque QVariant with no id or scale; the overview's sizes became NaN and caused a polish loop that froze the dock, the bar's workspace animation and the region selector. Adding Q_MOC_INCLUDE for hyprland_toplevel.hpp, monitor.hpp and workspace.hpp in connection.hpp fixes it, as upstream Quickshell does in its Hyprland module.

To test: restart the shell a few times and open the overview; it no longer comes up blank.

Model: Claude Opus 5.5. Files changed: src/windows/hyprland/connection.hpp

HyprlandWorkspace and HyprlandToplevel declare HyprlandMonitor* properties
with the class only forward-declared. Depending on load order, QML then got
monitors as opaque QVariants with no id or scale, and the overview's sizes
turned into NaN: a polish loop that froze the dock, the bar's workspace
animation and the region selector.

Made with Claude Opus 5.5 (Anthropic). Files changed: src/windows/hyprland/connection.hpp
@nunreasonable

Copy link
Copy Markdown
Owner

Thanks, good catch. It's in windows as 7598ec5 with you as co-author (without the comment), and it'll ship with the next release since it's C++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants