Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadow missing on frameless windows in linux #2380

Closed
tommoor opened this issue Jul 29, 2015 · 6 comments
Closed

Shadow missing on frameless windows in linux #2380

tommoor opened this issue Jul 29, 2015 · 6 comments

Comments

@tommoor
Copy link
Contributor

tommoor commented Jul 29, 2015

We've found that under linux when setting a browser-window to frame: false then it loses it's shadow. Note, this is not a transparent window, just a frameless one. This was tested on Ubuntu 14.04.

Expected behaviour is that the shadow remains as it does on OSX and Windows.

@zcbenz
Copy link
Member

zcbenz commented Jul 30, 2015

Whether to show shadow for a frameless window completely depends on the window manager, on OS X the real frameless window doesn't have shadow too and it is fixed by using a window with frame while resizing the content area to covert the frame. However I don't think there is a way to fix this on Linux, because the frame and shadow are drawn by the window manager.

@tommoor
Copy link
Contributor Author

tommoor commented Jul 30, 2015

@zcbenz is there a reason that you couldn't take a similar approach to OSX on linux, covering the frame?

@zcbenz
Copy link
Member

zcbenz commented Jul 30, 2015

@tommoor The window manager is in charge of drawing the frame, and there is no simple way to cover what's drawn by the window manager.

@tommoor
Copy link
Contributor Author

tommoor commented Jul 30, 2015

Ew.

I see the problems, unfortunately this makes the frameless window not too useful at all on Linux as if you draw the shadow yourself in css then the window can't be resizable (the real bounds are at the edge of the shadow). And if you don't draw a shadow then a white window completely merges into other white windows.

We might need some wacky alternative ideas on how to achieve this!

@zcbenz
Copy link
Member

zcbenz commented May 6, 2016

I'm closing this since unfortunately this is a platform limitation of Linux and I don't see any way to work around it.

@johannesrld
Copy link

@tommoor The window manager is in charge of drawing the frame, and there is no simple way to cover what's drawn by the window manager.

I don't beleive this is an issue with wayland anymore is it? CSD is basically the norm there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants