webview_deno icon indicating copy to clipboard operation
webview_deno copied to clipboard

How to remove titlebar (use CSD)

Open ashkan-o opened this issue 2 years ago • 4 comments

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

ashkan-o avatar Mar 10 '22 06:03 ashkan-o

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

nicklasfrahm avatar Mar 15 '22 08:03 nicklasfrahm

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

ashkan-o avatar Mar 15 '22 08:03 ashkan-o

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?

nicklasfrahm avatar Mar 31 '22 07:03 nicklasfrahm

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

justjosias avatar Mar 31 '22 15:03 justjosias