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

nw2: transparency not working as intended #7221

Closed
Luzzifus opened this issue Nov 19, 2019 · 4 comments
Closed

nw2: transparency not working as intended #7221

Luzzifus opened this issue Nov 19, 2019 · 4 comments
Labels

Comments

@Luzzifus
Copy link

Luzzifus commented Nov 19, 2019

NWJS Version : 0.42.5
Operating System: Win10 (1903)

Expected behavior

Setting the window subfield "transparent" to true should yield a transparent window with the desktop or whatever window is behind it shining through.

Actual behavior

There is a Windows 95 style window in the background of my transparent window. When opening the window, sometimes the actual window content shows the that background window (as in the screenshot below), sometimes it is transparent to whatever is behind it as expected. But the (too large) border around it is always visible.

display_error

How to reproduce

Only happens in NW2 mode, works as expected with "chromium-args": "--disable-features=nw2".
Just run nw.Window.open() with transparency parameters:

let windowOptions = {
  show: true,
  title: 'test',
  width: 250,
  height: 100,
  min_width: 100,
  min_height: 50,
  position: 'center',
  frame: false,
  transparent: true
};
nw.Window.open('html/widget.html', windowOptions);

The background window seems to disappear when "transparent" is set to false. Or at least it is not too large anymore, can't really tell.

#7230

@gpetrov
Copy link

gpetrov commented Nov 20, 2019

@rogerwang - got this as well. Transparent windows on Windows do not work:

When opened I get:

transparent_bug_nw2_42 5_result

While it should be:
transparent_bug_without_nw2_42 5_result
(when opened with --disable-features=nw2)

Here is my test project:
transparent_title_42.5.zip

@rogerwang rogerwang added the nw2 label Nov 22, 2019
@Blatman
Copy link

Blatman commented Nov 23, 2019

Tried the above test on Win10 1803 in Parallels 13 got -

nwdiff

Note: I added --disable-gpu-compositing --force-cpu-draw to the manifest.

@TheRealDannyyy
Copy link

Can't reproduce issue on Windows 7. This seems to be Windows 10 exclusive.

@rogerwang
Copy link
Member

This is fixed in git and will be available in the next nightly build.

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

No branches or pull requests

5 participants