webview / webview_deno

🌐 Deno bindings for webview, a tiny library for creating web-based desktop GUIs
https://deno.land/x/webview
MIT License
1.45k stars 75 forks source link

How to remove titlebar (use CSD) #105

Open ashkan-o opened 2 years ago

ashkan-o commented 2 years ago

Can I somehow hide title bar and use Client-Side Decorations for my window (on Linux)?

nicklasfrahm commented 2 years ago

You can achieve this if you create a GTK window first and then pass this to the create function as the second parameter.

ashkan-o commented 2 years ago

I can't find anything about GTK in deno... Can you send a code example of what you said?

nicklasfrahm commented 2 years ago

In theory, the low-level Deno bindings support it to pass an unsafe window pointer as this part of the code shows.

It does however seem like the new Webview() constructor does not support this, as this part of the code shows.

I am unfortunately neither familiar with Deno or native C/C++ bindings. Thus, I am not aware if it is possible to use the low-level Deno bindings without using the new Webview() constructor.

The GTK window I mentioned would have to be created via native C/C++ bindings.

@justjosias could I get access to this repository or all repos in the org to have the ability to add or remove labels?

justjosias commented 2 years ago

@nicklasfrahm Done! I've invited you to the organization and will add you to internal repos once you accept.