[BUG]: handling mstsc #131

Closed
opened 2026-01-05 14:48:28 +01:00 by adam · 3 comments
Owner

Originally created by @nascentt on GitHub (Aug 23, 2022).

Originally assigned to: @LGUG2Z on GitHub.

Describe the bug
I'm struggling to have komorebi correctly handle mstsc.
By default it tried to manage it but this leads to komorebi not tiling other windows correctly leaving half a workspace empty as if there's an invisible window. Closing mstsc fixed it.

If I try to add a manage rule for mstsc through komorebi.ahk I then get giant white artifacting covering my mstsc window.

To Reproduce
Open mstsc to reproduce invisible windows in workspaces.
RDP to host to reproduce white blanks after adding a manage rule.

Expected behavior
Either mstsc to be managed correctly where other windows tile around it, or just ignore mstsc and treat it as if it wasn't open at all.

Screenshots and Videos

Operating System
Windows 10 21h2

Additional context

Originally created by @nascentt on GitHub (Aug 23, 2022). Originally assigned to: @LGUG2Z on GitHub. **Describe the bug** I'm struggling to have komorebi correctly handle mstsc. By default it tried to manage it but this leads to komorebi not tiling other windows correctly leaving half a workspace empty as if there's an invisible window. Closing mstsc fixed it. If I try to add a manage rule for mstsc through komorebi.ahk I then get giant white artifacting covering my mstsc window. **To Reproduce** Open mstsc to reproduce invisible windows in workspaces. RDP to host to reproduce white blanks after adding a manage rule. **Expected behavior** Either mstsc to be managed correctly where other windows tile around it, or just ignore mstsc and treat it as if it wasn't open at all. **Screenshots and Videos** **Operating System** Windows 10 21h2 **Additional context**
adam added the bug label 2026-01-05 14:48:28 +01:00
adam closed this issue 2026-01-05 14:48:28 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Aug 23, 2022):

I think that this issue can be traced back to this commit.

While it made sense at the time, the WSLg team has since introduced even further breaking changes that render mstsc.exe being on the WSL GUI whitelist here useless.

For anyone arriving here through Google who wants to use WSL GUI apps and have them managed properly with komorebi, your only real option is to use a mature, tried and tested solution like VcXsrv, because I don't have the time or the interest in playing this sort of cat and mouse game with WSLg.

@nascentt I will remove mstsc.exe from WSL2_UI_PROCESSES which will resolve the ghost tile situation.

@LGUG2Z commented on GitHub (Aug 23, 2022): I think that this issue can be traced back to [this commit](https://github.com/LGUG2Z/komorebi/commit/3f3c2815da5bf1f83a627c79915a4a4cff5c7ce9). While it made sense at the time, the WSLg team has since introduced even further breaking changes that render `mstsc.exe` being on the WSL GUI whitelist here useless. For anyone arriving here through Google who wants to use WSL GUI apps and have them managed properly with `komorebi`, your only real option is to use a mature, tried and tested solution like `VcXsrv`, because I don't have the time or the interest in playing this sort of cat and mouse game with WSLg. @nascentt I will remove `mstsc.exe` from `WSL2_UI_PROCESSES` which will resolve the ghost tile situation.
Author
Owner

@nascentt commented on GitHub (Feb 6, 2023):

Just wanted to confirm I still have display issues using mstsc and komorebi. If I fullscreen an RDP connection I still get white blocks obscuring the window. If I close komorebi this doesn't happen.

@nascentt commented on GitHub (Feb 6, 2023): Just wanted to confirm I still have display issues using mstsc and komorebi. If I fullscreen an RDP connection I still get white blocks obscuring the window. If I close komorebi this doesn't happen.
Author
Owner

@meicale commented on GitHub (Mar 26, 2023):

I think that this issue can be traced back to this commit.

While it made sense at the time, the WSLg team has since introduced even further breaking changes that render mstsc.exe being on the WSL GUI whitelist here useless.

For anyone arriving here through Google who wants to use WSL GUI apps and have them managed properly with komorebi, your only real option is to use a mature, tried and tested solution like VcXsrv, because I don't have the time or the interest in playing this sort of cat and mouse game with WSLg.

@nascentt I will remove mstsc.exe from WSL2_UI_PROCESSES which will resolve the ghost tile situation.

It is a cool app and I use this quite a lot. I came to the same problem as I use WSL2 as my daily driver to develop. I tried to use the VcXsrv and setted everything to view the pdf, which turn out to be useless. Zathura which is installed by apt had changed nothing. Sioyek will is an appimage can sit in a frame and manage by komorebi, but it is just all black and give the errors like "QOpenGLWidget: Failed to make context current ... qt.qpa.backingstore: composeAndFlush: makeCurrent() failed ...".
I do think there will be more and more devs using Windows and WSL2. This this app is quite helpful if it can have even better support for GUI things. Thank for your time.

@meicale commented on GitHub (Mar 26, 2023): > I think that this issue can be traced back to [this commit](https://github.com/LGUG2Z/komorebi/commit/3f3c2815da5bf1f83a627c79915a4a4cff5c7ce9). > > While it made sense at the time, the WSLg team has since introduced even further breaking changes that render `mstsc.exe` being on the WSL GUI whitelist here useless. > > For anyone arriving here through Google who wants to use WSL GUI apps and have them managed properly with `komorebi`, your only real option is to use a mature, tried and tested solution like `VcXsrv`, because I don't have the time or the interest in playing this sort of cat and mouse game with WSLg. > > @nascentt I will remove `mstsc.exe` from `WSL2_UI_PROCESSES` which will resolve the ghost tile situation. It is a cool app and I use this quite a lot. I came to the same problem as I use WSL2 as my daily driver to develop. I tried to use the `VcXsrv` and setted everything to view the pdf, which turn out to be useless. Zathura which is installed by apt had changed nothing. Sioyek will is an appimage can sit in a frame and manage by komorebi, but it is just all black and give the errors like "QOpenGLWidget: Failed to make context current ... qt.qpa.backingstore: composeAndFlush: makeCurrent() failed ...". I do think there will be more and more devs using Windows and WSL2. This this app is quite helpful if it can have even better support for GUI things. Thank for your time.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#131