diff options
author | Tobias Häußler <tobias.haeussler@gmx.de> | 2011-07-18 14:48:23 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-11-27 16:08:22 +0000 |
commit | 8aa27ae82109e4fab0ff3ed86ad1d152438a2585 (patch) | |
tree | 146e5b38b7c4c780c3d0ecf7bd4e998c2d927f0c /hw/xwin/winwindow.h | |
parent | f3aef7f9561d2723da0d1438a8b276b77a1e672e (diff) |
hw/xwin: Add correct taskbar grouping of X windows on Windows 7
I created a small patch for XWin that adds correct grouping of taskbar icons
when 'Always combine, hide labels' is set in the taskbar properties. It uses the
new taskbar APIs introduced in Windows 7 to set an application id for each
window. The id is based on the X11 class hints.
v2: Add file to _SOURCES to fix distcheck
v3 : Fix compilation with mingw-w64 w32api headers
Include propkey.h, propsys.h rather than defining necessary stuff ourselves
v4: Fix up names taskbar->propertystore, AppID->AppUserModelID, etc.
Link directly with ole32 for PropVariantClear(), prototyping it if neccessary.
v5: Put winSetAppUserModelID()-related code in a separate file.
Drop a superfluous assign to hr of ignored HRESULT of SetValue()
Signed-off-by: Tobias Häußler <tobias.haeussler@gmx.de>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Diffstat (limited to 'hw/xwin/winwindow.h')
-rw-r--r-- | hw/xwin/winwindow.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/xwin/winwindow.h b/hw/xwin/winwindow.h index 49a720a67..4540dd03e 100644 --- a/hw/xwin/winwindow.h +++ b/hw/xwin/winwindow.h @@ -148,5 +148,14 @@ void void winMinimizeWindow(Window id); +void + winPropertyStoreInit(void); + +void + winPropertyStoreDestroy(void); + +void + winSetAppUserModelID(HWND hWnd, const char *AppID); + #endif /* XWIN_MULTIWINDOW */ #endif |