TBH: Task Bar Hero (3678970)
Compatibility Report
- Name of the game with compatibility issues: TBH: Task Bar Hero
- Steam AppID of the game: 3678970
System Information
- GPU: NVIDIA GeForce RTX 4070 SUPER
- Video driver version: NVIDIA 595.71.05
- Kernel version: 7.0.10-2-cachyos
- Link to full system information report as Gist: https://gist.github.com/RafaelHGOliveira/305956cb1947cd9aa19630c09bdd6499
- Proton version: Proton Experimental (including the bleeding-edge branch), Proton-CachyOS, GE-Proton
I confirm:
- [x] that I haven't found an existing compatibility report for this game.
- [x] that I have checked whether there are updates for my system available.
Symptoms
TBH: Task Bar Hero renders its UI as a transparent/layered window over the desktop/taskbar. Under Proton, every region that should be transparent is drawn as solid black on every Proton version tested. The game image does appear, but mouse input only reaches the game under GE-Proton — with Proton Experimental (and its bleeding-edge branch) and Proton-CachyOS the window shows but is not interactive. The black-instead-of-transparent rendering happens on all versions, GE-Proton included.
Reproduction
- Install TBH: Task Bar Hero (AppID 3678970)
- Set the compatibility tool to Proton Experimental (or Proton-CachyOS)
- Launch the game — the image appears, but all areas that should be transparent are rendered solid black
- Input does not reach the game window
- Switch to GE-Proton — input now works and the game is playable, but the transparent areas are still rendered solid black
Note
- Only GE-Proton allows interacting with the game; Proton Experimental, Experimental bleeding-edge and Proton-CachyOS show the window but do not accept input.
- The broken transparency (solid black instead of transparent) reproduces on every Proton version, GE-Proton included.
PROTON_LOG attached below (steam-3678970.log.gz).
that's the problem
TBH: Task Bar Hero creates overlay windows with: WS_EX_TRANSPARENT | WS_EX_LAYERED | WS_EX_NOACTIVATE
Under GE-Proton10-34, input works, but transparent overlay areas render as solid black.
The Proton log shows Wine creating "Overlay Box" windows with those layered/transparent styles, but x11drv reports shaped 0 for the corresponding X11 windows. GE-Proton also sets GAMESCOPE_XALIA_OVERLAY on them.
This suggests the Windows layered/transparent overlay is recognised but not being translated into an actual shaped/alpha X11 window.
Additional diagnostic info
Reproduced this on a different setup (Linux Mint Cinnamon / X11, NVIDIA, GE-Proton10-34, wine-staging 10.0) and pulled a PROTON_LOG=1 with the default channels. Two findings that may help narrow down where the actual fix needs to land:
Transparency: it's the DWM composition path, not WS_EX_LAYERED
The game does not appear to use the classic WS_EX_LAYERED + UpdateLayeredWindow / SetLayeredWindowAttributes mechanism. It uses the modern DWM composition extension path. Relevant log lines:
fixme:dwmapi:DwmSetWindowAttribute (00000000000200B0, 2, 000000000010EF18, 4) stub
fixme:dwmapi:DwmExtendFrameIntoClientArea (00000000000200B0, 000000000010E620) stub
Both are pure stubs in current Wine's dwmapi — they return success but do nothing. Since DwmExtendFrameIntoClientArea (with negative MARGINS) is what tells the DWM to composite the host desktop through the client area, and it's a no-op, the supposedly-transparent regions end up rendered as the swapchain's clear color (black) on every Proton flavor.
This is consistent with the original report stating black-instead-of-transparent rendering reproduces on every Proton version including GE-Proton — the underlying dwmapi implementation is shared across all of them.
Input: Pointer Input API is stubbed
The game enables the Windows 8+ Pointer Input API:
fixme:win:NtUserEnableMouseInPointer enable 1 semi-stub!
fixme:win:GetPointerInfo (1 ...): stub
fixme:win:GetPointerType (1 ...): stub [354 calls in init phase]
EnableMouseInPointer is a semi-stub (returns success without actually switching the input model), and GetPointerInfo / GetPointerType are full stubs. This plausibly explains why input doesn't reach the game window on Proton Experimental / bleeding-edge / CachyOS, while GE-Proton happens to work — likely because of unrelated input-routing patches in GE that let classic WM_LBUTTONDOWN etc. through despite the pointer mode having been "enabled".
Other observations (likely not the cause, just for completeness)
The game also calls UI Automation / MSAA against #32769 (the desktop window class) and walks the shell window hierarchy — presumably to position its sprites relative to real taskbar icons. Those calls are also stubbed (fixme:oleacc:find_class_data, fixme:uiautomation:...). GE-Proton spins up xalia.exe during launch but, as far as I understand, Xalia bridges Wine windows to host accessibility, not the other way around, so this functionality cannot work on Wine regardless.
Setup details
- Distro: Linux Mint 22.x (Ubuntu noble base), kernel 6.17.0-29-generic, Cinnamon on X11
- GPU: AMD Radeon 780M (Phoenix1 iGPU, RDNA3) — different vendor from OP's NVIDIA RTX 4070 SUPER, same symptom
- Proton: GE-Proton10-34, wine-staging 10.0
- Launch options used:
PROTON_LOG=1 PROTON_USE_WINED3D=1 PROTON_NO_DESKTOP=1 %command% - WineD3D vs DXVK made no difference for the transparency symptom
- Log channels were the default (no
+win,+x11drv,+d3d), so window styles and X11 visuals aren't directly visible — a follow-up log withWINEDEBUG=+win,+x11drv,+dwmapiwould confirm theDwmExtendFrameIntoClientAreamargins value and whether the X11 window is created with an ARGB visual
Happy to capture a more verbose log if helpful.
Making progress...
https://github.com/user-attachments/assets/e72c99d0-a5fe-404c-913a-25741ad756c2
Flickers, but it is possible to get this working on KDE plasma... just needs a little more tinkering wiithin proton.
Patch is here: https://github.com/GloriousEggroll/proton-ge-custom/compare/master...solarisfire:proton-ge-custom:master but it's still not 100% perfect...
https://github.com/user-attachments/assets/00c69747-2a09-4050-891a-26e2e8f7b9a1
I'm basically turning every black pixel transparent, but the devs don't make that easy with a load of black pixels in the game itself. I'm sure a proper proton dev can do a better job 😅
How can I adjust this?
Patch is here: GloriousEggroll/[email protected]:proton-ge-custom:master but it's still not 100% perfect... 20260604_232811.webm
I'm basically turning every black pixel transparent, but the devs don't make that easy with a load of black pixels in the game itself. I'm sure a proper proton dev can do a better job 😅
I am not able to build it by my self. Would it be possible for you to release a build and/or start the pull request to Proton GE?
Building on @Solarisfire's GE-Proton patch — thank you for the original work, it was the right approach and got transparency rendering. I picked it up to tackle the remaining flicker and make it shippable for other games, and wanted to share the results in case it's useful for the PR.
What I changed on top of the original patch
-
Flicker fixed (temporal hysteresis). The flicker (worst when moving the window or hovering the mouse) came from
XGetImagereading the live X window mid-update: it occasionally returns cleared/black frames, which shrank or collapsed the XShape region for a frame and forced a reshape → flash. I made each 4×4 block stay in the shape for N frames after it was last seen lit (*age = 12instead of2). Transient black readbacks no longer shrink the shape; growth stays instant. On KDE Plasma Wayland the result is transparent, responsive, and with no perceptible flicker, both when moving the window and on hover. -
Removed a latent freeze bug. An earlier attempt also kept the previous shape on any all-black frame ("don't collapse to empty"). A unit test showed this is redundant with the hysteresis for flicker AND freezes the shape forever if the overlay ever goes genuinely empty (≥N black frames). Dropped it — the hysteresis alone absorbs transients and still lets the window collapse correctly when truly empty.
-
Generalised (no hardcoded AppID). Instead of
SteamGameId == "3678970", it's now opt-in viaWINE_LAYERED_OVERLAY_SHAPE=1and triggers on any borderlessWS_EX_LAYEREDwindow drawing through a 3D client surface. Off by default → zero effect on other games. So it works for any DWM-glass-style overlay game, not just TBH. -
Added a standalone unit test of the shape/hysteresis logic (compiles with gcc, runs in milliseconds, no Proton build needed) — covers establish, transient black, black bursts, content return, genuine shrink, persistent-black collapse, and first-frame.
Usage: add WINE_LAYERED_OVERLAY_SHAPE=1 %command% to the game's launch options.
WINEDEBUG=+x11drv shows layered overlay window ... shape updated with N rectangles.
Patch (against dlls/winex11.drv/{init,window}.c + x11drv.h) is up as a PR to
proton-ge-custom: GloriousEggroll/proton-ge-custom#553. The standalone unit test of the
shape/hysteresis logic is inlined below.
@Solarisfire — this builds entirely on your work and is not meant to compete with your in-flight PR. If you'd rather land your own, just say so and I'll close #553 in favour of it; or I'm glad to contribute these changes (hysteresis, generalisation, test) straight to your branch. Your call — credit for the core approach is yours.
For anyone who just wants to try it now, there's an unofficial prebuilt (clearly marked as not affiliated with GE-Proton/Valve): https://github.com/thaylorz/proton-ge-custom/releases/tag/proton-layered-overlay-v1
This remains an XShape (binary-mask) approach. The "fully correct" fix is real per-pixel alpha (32-bit ARGB visual + non-opaque Vulkan
compositeAlphain the WSI/vkd3d path), which would remove reshaping entirely — but that spans winex11 + Vulkan WSI + vkd3d-proton and is a much larger change. The shaped approach is the practical, robust fix today.
shape_test.c — standalone unit test (gcc -O2 -o shape_test shape_test.c && ./shape_test)
/* Standalone unit test for the layered-overlay shaping logic in winex11.drv.
* Mirrors update_layered_overlay_shape(): XGetImage is replaced by a per-block
* visibility grid and XShapeCombineRectangles by a counter. Verifies that the
* temporal hysteresis prevents reshapes on transient black readbacks (the cause
* of flicker on window move / hover) while still collapsing when truly empty.
* build: gcc -O2 -o shape_test shape_test.c && ./shape_test
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef unsigned char BYTE;
typedef int BOOL;
#define TRUE 1
#define FALSE 0
#ifndef min
#define min(a,b) ((a)<(b)?(a):(b))
#endif
#define TBH_AGE 12 /* must match the constant in winex11.drv */
typedef struct { int x, y, width, height; } XRectangle;
typedef struct {
BYTE *shape_age;
unsigned shape_cols, shape_rows;
XRectangle *shape_rects;
unsigned shape_rect_count;
int changes_x, changes_y;
} Surface;
static int g_reshape_calls = 0;
static int g_combined_empty = 0;
static void reset_counters(void) { g_reshape_calls = 0; g_combined_empty = 0; }
static void XShapeCombine(int count) {
g_reshape_calls++;
if (count == 0) g_combined_empty++;
}
/* visible_blocks: cols*rows grid, 1 if the block has any non-black pixel. */
static BOOL update_shape(Surface *s, const BYTE *visible_blocks, int width, int height) {
unsigned cols = (width + 3) / 4, rows = (height + 3) / 4, x, y, count = 0, capacity;
BOOL actually_visible = FALSE;
XRectangle *rects;
if (cols != s->shape_cols || rows != s->shape_rows) {
free(s->shape_age);
s->shape_age = calloc(cols * rows, 1);
s->shape_cols = cols; s->shape_rows = rows;
free(s->shape_rects); s->shape_rects = NULL; s->shape_rect_count = 0;
}
if (!s->shape_age) return TRUE;
capacity = cols * rows;
rects = malloc(capacity * sizeof(*rects));
if (!rects) return TRUE;
for (y = 0; y < (unsigned)height; y += 4) {
int run_start = -1;
for (x = 0; x < (unsigned)width; x += 4) {
BYTE *age = &s->shape_age[(y / 4) * cols + x / 4];
BOOL visible = visible_blocks[(y / 4) * cols + x / 4];
/* hysteresis: keep a block in the shape for TBH_AGE frames after it
was last lit, so transient black readbacks don't shrink the shape */
if (visible) { *age = TBH_AGE; actually_visible = TRUE; }
else if (*age) --*age;
if (*age && run_start < 0) run_start = x;
if ((!*age || x + 4 >= (unsigned)width) && run_start >= 0) {
unsigned end = *age ? (unsigned)width : x;
rects[count].x = s->changes_x + run_start;
rects[count].y = s->changes_y + y;
rects[count].width = end - run_start;
rects[count].height = min(4, height - (int)y);
count++;
run_start = -1;
}
}
}
if (!s->shape_rects || count != s->shape_rect_count ||
(count > 0 && memcmp(rects, s->shape_rects, count * sizeof(*rects)))) {
XShapeCombine(count); /* count==0 only reachable on the first frame */
free(s->shape_rects);
s->shape_rects = rects;
s->shape_rect_count = count;
} else {
free(rects);
}
return actually_visible;
}
static int g_fail = 0;
#define CHECK(cond, msg) do { \
if (!(cond)) { printf(" [FAIL] %s\n", msg); g_fail++; } \
else { printf(" [ok] %s\n", msg); } } while (0)
int main(void) {
int W = 16, H = 16;
BYTE square[16] = {0,0,0,0, 0,1,1,0, 0,1,1,0, 0,0,0,0};
BYTE black[16] = {0};
BYTE shrunk[16] = {0,0,0,0, 0,1,0,0, 0,0,0,0, 0,0,0,0};
Surface s; memset(&s, 0, sizeof(s)); reset_counters();
printf("establish shape\n");
update_shape(&s, square, W, H);
unsigned base = s.shape_rect_count;
CHECK(base > 0 && g_reshape_calls == 1, "shape established in one reshape");
printf("transient black frame (move/hover)\n");
int before = g_reshape_calls;
update_shape(&s, black, W, H);
CHECK(g_reshape_calls == before, "no reshape on transient black (no flicker)");
CHECK(s.shape_rect_count == base, "shape preserved (not shrunk)");
CHECK(g_combined_empty == 0, "never collapsed to empty");
printf("burst of 5 black frames (< TBH_AGE)\n");
before = g_reshape_calls;
for (int i = 0; i < 5; i++) update_shape(&s, black, W, H);
CHECK(g_reshape_calls == before, "no reshape across the burst");
printf("content returns\n");
before = g_reshape_calls;
update_shape(&s, square, W, H);
CHECK(g_reshape_calls == before, "no reshape on return (shape already correct)");
printf("genuine shrink (black past TBH_AGE frames)\n");
update_shape(&s, square, W, H);
before = g_reshape_calls;
for (int i = 0; i < TBH_AGE + 2; i++) update_shape(&s, shrunk, W, H);
CHECK(g_reshape_calls > before, "genuine content change eventually reshapes");
CHECK(s.shape_rect_count > 0, "still non-empty after shrink");
printf("persistent black collapses correctly\n");
before = g_reshape_calls;
for (int i = 0; i < 30; i++) update_shape(&s, black, W, H);
CHECK(s.shape_rect_count == 0, "shape collapses when truly empty");
printf("first frame all black clips initial clear colour\n");
Surface s2; memset(&s2, 0, sizeof(s2));
int emp = g_combined_empty;
update_shape(&s2, black, W, H);
CHECK(g_combined_empty == emp + 1, "first all-black frame sets empty shape");
printf("\n%s\n", g_fail == 0 ? "ALL TESTS PASSED" : "FAILURES PRESENT");
return g_fail ? 1 : 0;
}
Way better than before, but it seems to still work mostly via black pixels (Synthesis slot background has transparent parts) and moving characters leave a black trail.
Clicking through UI/popup rendering is also kinda wacky, I can't select stages all the time
Also I just compared it to Proton-GE-10.34, the patch made my desktop randomly freeze for a few seconds a lot more.
Thanks for picking this up and running with it, @thaylorz — genuinely really happy to see it carried forward.
I’ve been pretty busy with work and my brother’s wedding, so I haven’t had the time to take my patch much further. It’s amazing to see someone else continue the work and improve it properly.
You’re absolutely not stepping on my toes at all. This looks like a much more complete and shippable version of the idea, so I’m very happy for #553 to move forward. Thanks again for building on it, and for being thoughtful about the credit.
Follow-up: got the fully-correct fix working — real per-pixel alpha, zero flicker (no XShape). Sharing in case it helps land a proper solution.
Root cause (chain of opacity). The alpha has to survive D3D11 → DXVK → Vulkan swapchain → X client window → X top-level window → compositor. It was being dropped at three points:
- DXVK's presenter created the swapchain with
compositeAlpha = OPAQUE(hardcoded). - The Vulkan client X window used the default 24-bit visual (no alpha).
- The top-level X window (the one the compositor actually composites) was 24-bit/opaque.
Fix (opt-in via WINE_LAYERED_OVERLAY_ALPHA=1, no effect on other games):
- winex11: give the Vulkan client window and the top-level window a 32-bit ARGB visual
with
use_alpha, and stop Wine resetting the visual to opaque when the app togglesWS_EX_LAYERED. - DXVK presenter: request a non-opaque
compositeAlpha— on X11 the surface exposesINHERIT(and, with an ARGB window,PRE_MULTIPLIED), so we pick those instead of OPAQUE.
The DXVK present shader already preserves the source alpha, so the game's real per-pixel alpha then flows untouched to the compositor. Result on KDE Plasma Wayland: transparent, interactive, zero flicker, with proper anti-aliased/semi-transparent edges (impossible with the binary XShape mask).
The key insight was that the compositor composites the top-level window, not the Vulkan child — fixing only the child still showed black until the top-level became ARGB too.
Caveat: the ALPHA path needs a compositing WM (KWin/Mutter/picom). The XShape path above
remains as a no-compositor fallback (WINE_LAYERED_OVERLAY_SHAPE=1).
Patches (winex11 + DXVK presenter, committed/viewable) are in a dedicated PR: GloriousEggroll/proton-ge-custom#555. An unofficial prebuilt is at https://github.com/thaylorz/proton-ge-custom/releases/tag/proton-layered-overlay-v1 (#553 is the simpler XShape-only fallback.)
Core XShape approach + the original investigation: @Solarisfire — this builds on your work.
It's perfect now! Btw, I think placing it above the taskbar is a limitation of Plasma KDE right?
Maybe just that it still renders an invisible big window that doesn't let click pass through it? Not sure how it works on Windows
Thanks — glad it's working for you too!
And yeah, I noticed the same click issue. In the alpha mode the window is visually transparent but still occupies the full rectangle for input, so clicks on the transparent areas don't pass through to whatever is behind it. I'm already working on a fix: setting a per-pixel input shape (XShape ShapeInput) from the rendered content, so input only lands on the actual (opaque) pixels and the transparent areas become click-through. The nice part is that input-shape changes don't trigger a repaint, so it adds click-through without bringing the flicker back.
On the "above the taskbar" point — I think that's a separate thing, and likely a Plasma/window-manager limitation rather than something this fix controls. On KDE the panel lives in a high stacking layer, and normal windows generally can't draw above it; on Windows the taskbar isn't an "always-on-top" layer in the same way, so a topmost window sits over it. It might be approachable with window-type/layer hints (dock type, _NET_WM_STATE_ABOVE, or wlr-layer-shell on Wayland), but that's a different problem from the transparency/input one and could just be a WM limitation. I'll keep it in mind, but it's out of scope for this patch.
@thaylorz , I just validated on the steamdeck and recomended your fix on protondb. awesome work mate!
Replying to https://github.com/ValveSoftware/Proton/issues/9841#issuecomment-4655515394
LETS GO!!!
Bazzite - Fedora, working really well with Always on Top in-game settings
Replying to https://github.com/ValveSoftware/Proton/issues/9841#issuecomment-4663109482
For some reason, I ended up with this gap next to the taskbar.
I have a dual-screen setup and noticed that it functions properly on the second display.
I'm having the same problem, but now that the transparency and click issues have been fixed, it's playable.
I think this problem is due to interference from KDE.
Side-effect with WINE_LAYERED_OVERLAY_SHAPE=1: mouse input lag in a simultaneously-running native game (CS2)
Using the XShape build (WINE_LAYERED_OVERLAY_SHAPE=1, the #553 path) with TBH running alongside native CS2: CS2 reports ~200 FPS but mouse movement feels like ~30 FPS — sluggish/stuttery input. Closing TBH immediately restores normal mouse response in CS2. Without the env var (plain GE-Proton, TBH still running), the issue does not occur.
Setup: CachyOS, KDE Plasma 6 Wayland, RTX 4070 SUPER. Note that on a Wayland session both apps share the same XWayland server (TBH via winex11 → XWayland, native CS2 via XWayland).
My guess: the periodic XGetImage readbacks used to compute the shape mask are stalling the shared XWayland server, adding latency to mouse events for other X clients on it — including the native game. This would be specific to the SHAPE path; the ALPHA path (#555) shouldn't have this cost since it doesn't read back pixels.