nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.16k stars 3.88k forks source link

Ability to denote element as maximise/restore button for Win11 Snap support #8147

Closed UtterDonkey closed 4 months ago

UtterDonkey commented 5 months ago

Issue Type

Before opening an issue, please search and see if it has already been raised.

Please use our mailing list or Gitter chatroom to ask questions. The issue tracker is only for bugs and feature requests, in English only. Please note that issues without a repro or code snippet are less likely to be resolved.

Current/Missing Behaviour

When making a custom titlebar on a frameless windows, it isn't possible to hover over the maximise/restore button to display the snap layout menu in Windows 11. I believe this is already possible in electron as it is supported in VS Code.

This feature may not be needed if this is implemented: https://github.com/nwjs/nw.js/issues/5999

Expected/Proposed Behaviour

Some way of specifying an element as the maximise/restore button (eg. a CSS property like -webkit-app-reigon) so that when it is hovered, the native snap layout menu can be displayed on Windows 11.

Additional Info

ayushmanchhabra commented 5 months ago

@UtterDonkey can this closed as subset of #5999?

tiagorangel2011 commented 5 months ago

There is no need for more info. We just want the ability to use Windows 11's snap feature that shows when you hover the maximize button on a custom titlebar.

UtterDonkey commented 5 months ago

@UtterDonkey can this closed as subset of #5999?

Yes, probably