GithubHelp home page GithubHelp logo

Comments (3)

knopp avatar knopp commented on July 24, 2024

This is quite a bit problematic. On MacOS, you can get transparent windows already using window.setStyle(frame:windowFrame.noFrame). But generally there is no click through on Mac. I think it could be done by disabling mouse events on window completely and then registering to handle global events, but that seems very messy.

Click through on WS_EX_LAYERED only works for GDI, where the window transparency is used for determining click through region but the buffer is entirely in RAM. This is not compatible with accelerated applications such as Flutter. Much more performant way would be to simply use DirectComposition and removing redirection bitmap. I did submit a Flutter PR for this, but it is blocked on missing skia angle functionality. And again, as far as I can tell there's no documented way to get click through for hardware accelerated applications.

IIRC It is also possible to have transparency in windows using DwmExtendFrameIntoClientArea, but that I think that also works on Windows 10 only.

from nativeshell.

ahmed-alvis avatar ahmed-alvis commented on July 24, 2024

Is there any updates to this? With plugins like window_manager and flutter_acrylic, we now know for sure that it is possible.

How can we somehow implement this here?

from nativeshell.

ahmed-alvis avatar ahmed-alvis commented on July 24, 2024

I've also fixed this, sorry about that. Just need to set the background color to transparent

from nativeshell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.