Skip to content
  • Tobias Häußler's avatar
    hw/xwin: Add correct taskbar grouping of X windows on Windows 7 · 8aa27ae8
    Tobias Häußler authored and Jon Turney's avatar Jon Turney committed
    
    
    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: default avatarTobias Häußler <tobias.haeussler@gmx.de>
    Reviewed-by: default avatarJon TURNEY <jon.turney@dronecode.org.uk>
    Reviewed-by: default avatarColin Harrison <colin.harrison@virgin.net>
    8aa27ae8