bitsdojo_window
bitsdojo_window copied to clipboard
[Feature] Add better CSD for Linux
Currently the window doesn't have any shadows and since flutter uses gtk decoration so you can render own shadows and by setting _GTK_FRAME_EXTENTS.
Sorry, accidentally replied this instead of the NativeShell issue. Can you reply there?
Shadows and rounded corners are coming soon. Check this for a demo:
https://twitter.com/callmebit/status/1408040439609970703

@bitsdojo awesome!
@bitsdojo I was wondering if you can implement something like WindowFrame.noTitle which nativeshell has btw.
It helps you to get what your package does without removing the shadows and borders of original window.
What it basically does is removes only the headerbar and doesn't overwrite any other settings(Like shadows or borders).
Something also told in this comment: https://github.com/bitsdojo/bitsdojo_window/issues/77#issuecomment-857954105
I was wondering if you can implement something like
WindowFrame.noTitle
Sure, it is on my list.
this just got you a donation. thanks for all the work.
In the meantime, is there an interim fix that one could apply to get window shadows back?
In the meantime, is there an interim fix that one could apply to get window shadows back?
Yes. In my_application.cc, add this after gtk_widget_show(GTK_WIDGET(window)); (around line 54).
auto gdk_window = gtk_widget_get_window(GTK_WIDGET(window));
gdk_window_set_decorations(gdk_window, GdkWMDecoration::GDK_DECOR_BORDER);
Not perfect, but it helps.
In the meantime, is there an interim fix that one could apply to get window shadows back?
Yes. In
my_application.cc, add this aftergtk_widget_show(GTK_WIDGET(window));(around line 54).auto gdk_window = gtk_widget_get_window(GTK_WIDGET(window)); gdk_window_set_decorations(gdk_window, GdkWMDecoration::GDK_DECOR_BORDER);Not perfect, but it helps.
Does not work for Linux on Wayland windowing system, only for X11. Probably because Flutter supports X11.
Do you happen to have any news here?
@TaylorHo this package is almost dead, so either switch to window_manager plugin or wait for eternity.
[EDIT] The package seems to be revived.
Do you happen to have any news here?
@TaylorHo Looking to release a new version in August.
september now :(
Hey @bitsdojo, is there something that we can help do to launch this new version?