mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: Shadows and CSD for frameless windows on Wayland (#49295)
* fix window sizing and content sizing on Linux when CSD is in use * fixed size constraints * layout helper * CSD shadows for frameless windows on Linux * simplify min/max size calculation * use base window size for min/max * respect HasShadow option * moved windows min/max size overrides * add newline at end of file * fix setting background color for frameless csd windows * fix wco positioning nad sizing to match prod * safety improvements
This commit is contained in:
@@ -196,8 +196,7 @@ void NativeWindow::InitFromOptions(const gin_helper::Dictionary& options) {
|
||||
if (bool val; options.Get(options::kMovable, &val))
|
||||
SetMovable(val);
|
||||
|
||||
if (bool val; options.Get(options::kHasShadow, &val))
|
||||
SetHasShadow(val);
|
||||
SetHasShadow(options.ValueOrDefault(options::kHasShadow, true));
|
||||
|
||||
if (double val; options.Get(options::kOpacity, &val))
|
||||
SetOpacity(val);
|
||||
|
||||
Reference in New Issue
Block a user