Giter Site home page Giter Site logo

Handle wslg windows about komorebi HOT 10 CLOSED

lgug2z avatar lgug2z commented on September 25, 2024
Handle wslg windows

from komorebi.

Comments (10)

pigmej avatar pigmej commented on September 25, 2024 1

Will do a bit later today. Like plus 30mins or so.

from komorebi.

LGUG2Z avatar LGUG2Z commented on September 25, 2024 1

Linux GUI apps run with VcXsrv, WSLg and X410 will now be tiled by default. 🎉

from komorebi.

markgeejw avatar markgeejw commented on September 25, 2024 1

WSLg applications still seem to have issues. WSLg preview is now using msrdc.exe. I tried updating the array, but it still wasn't managing the WSLg window. Works with vcxsrv though!

When I manually manage the WSLg window, there seems to be issues with how komorebi tiles the window. The size of the window can only change by using the cursor to drag the edges. I think it has to do with how WSLg is handling window sizing server-side, according to microsoft/wslg#22

from komorebi.

LGUG2Z avatar LGUG2Z commented on September 25, 2024

I don't have a build of windows that supports WSLg at the moment. Can you run the AHK script below and share the WindowStyle and WindowExStyle output for a WSLg app? This will help me narrow down why it is being excluded by the current window management logic.

https://www.computoredge.com/AutoHotkey/Downloads/CheckStyles.ahk

from komorebi.

pigmej avatar pigmej commented on September 25, 2024

That would be that:
2021-10-21_17-55

from komorebi.

LGUG2Z avatar LGUG2Z commented on September 25, 2024

Can you post the results from the WindowExStyle tab as well? I can already see that WS_CAPTION is not set on these windows, which is used by komorebi to decide to manage a window.

Can you also check if other WSLg apps have the same ahk_class and ahk_exe?

from komorebi.

LGUG2Z avatar LGUG2Z commented on September 25, 2024

I have just tried launching gedit through vcxsrv and I see the same behaviour. WS_CAPTION and WS_EX_WINDOWEDGE are both not set on the window, which is what is causing them to not be managed. I believe that if we have a whilelist of exe files that are used for launching Linux GUI apps, we can override the caption and window edge requirements for managing windows by default.

So far I can think of:
vcxsrv.exe - what I think a lot of people used before WSLg was a thing
mstsc.exe - what is used by WSLg

If there are any other overwhelmingly common processes used for remotely displaying Linux GUI apps, they can be added to a default list too.

Ultimately, I think that the way forward is to allow each user to be able to configure via komorebic one or more processes that they use for remotely displaying Linux GUIs from WSL2, with a bunch of sane defaults (like for WSLg) built in.

from komorebi.

pigmej avatar pigmej commented on September 25, 2024

They all have the same class. All the same, mostly title changes and that's It.

2021-10-21_21-05

from komorebi.

pigmej avatar pigmej commented on September 25, 2024

Works good! :)

from komorebi.

pigmej avatar pigmej commented on September 25, 2024

@LGUG2Z same happens as in #52 currently.

from komorebi.

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.