nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.31k stars 3.88k forks source link

Transparent window does not work after version v0.65.0 #7975

Open JoaquinDecima opened 1 year ago

JoaquinDecima commented 1 year ago

From version v0.66.0 onwards the transparent window does not work in Linux

With the previous version (v0.65.0) it works correctly (we will see the photos later) But it does not allow me to update the version since the transparency of the windows does not work.

Current/Missing Behavior

Screenshot_20221006_084133

Currently (versions v0.66.0/1 v0.67.0/1 v0.68.0/1 v0.69.0/1) The "transparent" window looks completely black. Losing the transparency that worked correctly in previous versions.

[357244:357253:1006/084122.970028:ERROR:cert_verify_proc_builtin.cc(612)] No net_fetcher for performing AIA chasing.
[357244:357253:1006/084131.287361:ERROR:cert_verify_proc_builtin.cc(612)] No net_fetcher for performing AIA chasing.

The log belongs to version v0.67.1 just like the image

Expected/Proposed Behavior

Screenshot_20221006_084215

The same code in version v0.65.0 works correctly. We can see it in the image and I leave below the console output when executing it in this version:

[1006/084159.691599:ERROR:zip_reader.cc(153)] Cannot open ZIP from file handle 3
[1006/084159.691676:ERROR:zip.cc(202)] Cannot open ZIP from file handle 3
[1006/084159.691719:ERROR:zip.cc(179)] Cannot open '/opt/nwjs/package.nw': FILE_ERROR_NOT_FOUND: No existe el fichero o el directorio (2)
[357898:357913:1006/084205.004015:ERROR:cert_verify_proc_builtin.cc(603)] No net_fetcher for performing AIA chasing.
[357898:357913:1006/084205.092471:ERROR:cert_verify_proc_builtin.cc(603)] No net_fetcher for performing AIA chasing.

Additional Info

sysrage commented 1 year ago
JoaquinDecima commented 1 year ago

Reduction of the case study:

Minimum case:

package.json

{
  "name": "hydriam",
  "version": "0.0.1",
  "description": "Hydriam is the official Application Launcher (or menu) of Vasak OS",
  "domain": "vasak",
  "chromium-args": "--disable-accelerated-video --force-cpu-draw",
  "main": "index.html",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "window": {
    "id": "ar.net.vasak.os.hydriam",
    "show": true,
    "transparent": true,
    "focus": true,
    "title": "Hydriam",
    "icon": "icon.svg",
    "resizable": false,
    "frame": false,
    "position": "center",
    "show_in_taskbar": false,
    "width": 700,
    "height": 620
  },
  "category": "System & Tools",
  "author": "Vasak group",
  "license": "GPL-3.0-or-later"
}

index.html

<html>
  <body style="background:rgba(0,0,0,0);">
    <h1>work?</h1>
  </body>
</html>

Results

v0.65.0

Screenshot_20221006_110102

v0.67.1

Screenshot_20221006_110134

sysrage commented 1 year ago

I actually am seeing "problem" behavior, both with and without the chromium-args listed above. The transparent window appears properly, but if you drag another window over it the transparency is broken and artifacts from the 2nd window are left behind.

JoaquinDecima commented 1 year ago

In my case, even removing the chromium-args I still see the background of the black window