Skip to content

Conversation

@SamMed05
Copy link

Problem

The effect is always on top of all windows, which can be distracting when focusing on other applications or during work.

Solution

Added a configurable checkbox in the options dialog that toggles the always-on-top behavior. When enabled, other windows can cover the rain/snow effect while maintaining transparency and click-through functionality.

Changes

  • New checkbox in Configure dialog: "Allow windows to hide effect"
  • Dynamic window layering toggle (TOPMOST ↔ NOTOPMOST)
  • Setting persisted to INI file and applied on startup

Fixes #5, Fixes #12

- Add "Allow windows to hide effect" checkbox in options dialog
- Toggle window TOPMOST flag based on user preference
- Persist AllowHide setting to configuration file
- Apply saved setting on startup

When enabled, the window uses HWND_NOTOPMOST instead of HWND_TOPMOST,
allowing normal z-order behavior while maintaining transparency.

Fixes riyasy#5, Fixes riyasy#12
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.

Disable rain when another application is full screen. feature request: stick to desktop

1 participant