-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
GTK+ window as desktop #51
Conversation
Thank you! |
A great addition, but it should probably be documented somewhere. |
Just set as_desktop to true in the "window" field of your config file. This is an example: Then, board.html will be started as desktop background, and the window size will automatically be the whole screen size. |
Thank you. And I've just noticed also that it was documented in the “Manifest format” article in the wiki, inside the “Window Sub Fields” section. I remember reading that article, I must have missed that item. |
The option "as_desktop" does not work on Window XP? |
It does not work under Windows. I'm not sure how to implement that under Windows. This is implemented on a GTK+ level, and it's possible that it DOES support GDK_WINDOW_TYPE_HINT_DESKTOP under Windows, however if I'm not mistaken, node-webkit/Chromium won't use GTK+ to create the window under Windows - it would use the windows API. |
I'm not familiar with C++, but I know the methods "FindWindowEx" and then "SetParent" in "user32.dll" can achieve that. |
So any ideas how to achieve this on windows? |
Not working under linux Ubuntu 14.04 64-bit. |
Under UNIX-like operating systems that use X11, the GTK+ hint "GDK_WINDOW_TYPE_HINT_DESKTOP" means that the window will be used as a desktop background window.
An example of a desktop background window is Nautilus, when it shows the icons on your desktop, or explorer.exe under Windows.
This allows using node-webkit to develop desktop environments (DEs) or other interesting projects that might need a desktop window.
as_desktop must be set in the window object of package.json.
Tested only under Linux.