Skip to content

Remap the launcher surface after a monitor change - #113

Open
warfl0p wants to merge 1 commit into
typecraft-dev:mainfrom
warfl0p:fix/remap-after-monitor-change
Open

warfl0p wants to merge 1 commit into
typecraft-dev:mainfrom
warfl0p:fix/remap-after-monitor-change

Conversation

@warfl0p

@warfl0p warfl0p commented Nov 20, 2026

Copy link
Copy Markdown

Fixes #112.

Summary

The launcher keeps its surface mapped while hidden, pinned to one screen. A monitor hotplug or layout change can destroy that output while mapped stays true, so the next show never maps a new surface and the launcher stays invisible until the shell restarts.

This adds a Connections on Quickshell that resets mapped and pinnedScreen when the screen list changes while the launcher is hidden. The next show then maps a fresh surface on the focused screen. The cost is one ~130 ms map after a monitor change.

Testing

  • Opened and closed the launcher, added and removed a headless output (hyprctl output create headless / hyprctl output remove), then reopened it: the omacast layer maps on the focused monitor with no QML errors.
  • The original bug came from a real monitor layout change (hyprmoncfg). The headless test did not reproduce it, so it only shows the handler runs cleanly; a real dock/undock is the full check.

🤖 Generated with Claude Code

https://claude.ai/code/session_018pJceKmUe69o5QwAgTaNse

The launcher keeps its surface mapped while hidden. A monitor hotplug or
layout change can destroy the output under that surface while `mapped`
stays true, so the next show never maps a new surface and the launcher
stays invisible until the shell restarts. Reset `mapped` and
`pinnedScreen` when the screen list changes while hidden.

Fixes typecraft-dev#112

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018pJceKmUe69o5QwAgTaNse
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.

Launcher stays invisible after a monitor change until the shell restarts

1 participant