Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preventChangeZOrder hide the desktop icon #2

Open
xland opened this issue Jul 14, 2022 · 1 comment
Open

preventChangeZOrder hide the desktop icon #2

xland opened this issue Jul 14, 2022 · 1 comment

Comments

@xland
Copy link

xland commented Jul 14, 2022

When press Win+D to show desktop,The window is pinned to the desktop but all the desktop icons are hidden.
When active another window, the desktop icons shown.

OS: Windows 10 1709
Code:

win.show();
electget.alwaysOnBottom(win);

image

image

@fronterior
Copy link
Owner

I know the content, but I haven't been able to modify it because it's enough for me and I don't have enough understanding of my Windows development. Anyway, I want it to work like Fences or Rainmeter like your request. What's causing the current situation is Windows' Show Desktop (Win + D) feature, but I haven't found a way to detect it in Windows.

So I'm going to try to solve this problem by using the method of capturing Windows keystrokes globally from Electron. That way, maybe I can focus on another invisible window to return the hidden icon, or maybe I can focus on it again and show the window. The relevant source code appears to be this. As I said, I am not familiar with C language development, so I don't know how long it will take, but I will deliver it to you once there is an update.

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

No branches or pull requests

2 participants