Skip to content

Fix global shortcut handling in background mode - #256

Open
City-busz wants to merge 1 commit into
FineFindus:mainfrom
City-busz:cancel-color-pick
Open

City-busz wants to merge 1 commit into
FineFindus:mainfrom
City-busz:cancel-color-pick

Conversation

@City-busz

@City-busz City-busz commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Allow registering global shortcuts without an application window, since the background service does not create one during startup.

Create a window when a global shortcut is activated if no existing application window is available.

Only present the window after successfully picking a color. Previously, cancelling the color picker with Escape also caused the application window to appear.

Avoid exporting an invalid Wayland surface when picking a color from a hidden window. GTK destroys the surface role when the window is hidden, so attempting to export it again results in a Wayland protocol error. Only obtain a parent window identifier when the window is mapped.

Allow registering global shortcuts without an application window,
since the background service does not create one during startup.

Create a window when a global shortcut is activated if no
existing application window is available.

Only present the window after successfully picking a color.
Previously, cancelling the color picker with Escape also caused
the application window to appear.

Avoid exporting an invalid Wayland surface when picking a color
from a hidden window. GTK destroys the surface role when the
window is hidden, so attempting to export it again results in a
Wayland protocol error. Only obtain a parent window identifier
when the window is mapped.
@City-busz City-busz changed the title Don't present the window when color picking is cancelled Fix global shortcut handling in background mode Nov 26, 2026
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.

1 participant