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

The recent versions have been a bunch of disasters! #8137

Open
velade opened this issue Nov 2, 2023 · 5 comments
Open

The recent versions have been a bunch of disasters! #8137

velade opened this issue Nov 2, 2023 · 5 comments

Comments

@velade
Copy link

velade commented Nov 2, 2023

BUG

The latest version has been a disaster! Starting from version 0.77 that I can tell, the transparent window on Linux gnome45 will add an extra layer behind it that is not synchronized with the movement of the window. This layer causes huge problems for the transparent part. This is still the case until 0.80, and the latest 0.81 is even worse, directly invalidating frame: false, and even the frame cannot be hidden. If 0.77-0.80 is only defective, then 0.81 is completely unusable!
Currently I'm going back to 0.64, which perfectly presents the transparent window effect I want.

  • Operating System: ArchLinux
  • NW.js Version: 0.7x after
@velade
Copy link
Author

velade commented Nov 2, 2023

image
nwjs version: 0.64 and this is I want
image
nwjs version: 0.80 cornar has bug!
image
nwjs version: 0.81 The frame: false is not work!!

same codes, same package.json, and this project create with 0.80 version

@malisipi
Copy link

@velade You can try disabling nw2 mode until the bugs is fixed.

@velade
Copy link
Author

velade commented Nov 8, 2024

until now! The version 0.93.0 is not fix this issue!!! if i want to make a rounded-window I have to use 0.64.1, even 0.68.1 is not work well too! We DON'T need that f*cking "nw2" I guess!

@velade
Copy link
Author

velade commented Nov 8, 2024

package.json

{
    "main": "app/index.html",
    "name": "scrcpy_launcher",
    "description": "",
    "version": "1.5.0",
    "keywords": [],
    "chromium-args": "",
    "window": {
        "id": "scrcpy_launcher_main_window",
        "title": "Scrcpy啟動器",
        "icon": "Scrcpy_logo.png",
        "toolbar": false,
        "frame": false,
        "width": 800,
        "height": 600,
        "min_width": 350,
        "min_height": 400,
        "position": "center",
        "as_desktop": false,
        "resizable": true,
        "always-on-top": false,
        "visible_on_all_workspaces": false,
        "fullscreen": false,
        "show_in_taskbar": true,
        "show": true,
        "kiosk": false,
        "transparent": true
    },
    "webkit": {
        "plugin": true,
        "java": false,
        "page-cache": true
    }
}

CSS

html,
body {
    display: block;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0);
    user-select: none;
}

You can simply reproduce this problem through the above configuration and style. When you drag it, the corner in the opposite direction of the drag will be filled with things behind the window (such as dragging from upper left to lower right, the circle in the upper left corner There will be problems with the corners). Of course I know that it can be solved by disabling nw2, but I can't ask my users to start with the terminal and append this parameter every time, right?

@velade
Copy link
Author

velade commented Nov 8, 2024

#7230 nw2 從未解決這個問題,它無法提供一個完美的透明窗口,那麼憑甚麼徹底取代nw1?

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

No branches or pull requests

2 participants