Add patch to better group running wine programs in WMs.

This commit is contained in:
Michael Müller
2014-08-16 01:22:35 +02:00
parent 96d0db4493
commit 533f33055c
4 changed files with 54 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ PATCHLIST := \
wineboot-HKEY_DYN_DATA.ok \
winepulse-PulseAudio_Support.ok \
winex11-Limited_Resolutions.ok \
winex11-Window_Groups.ok \
winex11-XEMBED.ok \
ws2_32-Connect_Time.ok \
ws2_32-TransmitFile.ok \
@@ -925,6 +926,24 @@ winex11-Limited_Resolutions.ok:
echo '+ { "winex11-Limited_Resolutions", "Erich E. Hoover", "Update the check for broken nVidia RandR to test for the number of resolutions instead of the number of modes." },'; \
) > winex11-Limited_Resolutions.ok
# Patchset winex11-Window_Groups
# |
# | Included patches:
# | * Prevent window managers from grouping all wine programs together. [by Michael Müller]
# |
# | This patchset fixes the following Wine bugs:
# | * [#32699] Prevent window managers from grouping all wine programs together
# |
# | Modified files:
# | * dlls/winex11.drv/window.c
# |
.INTERMEDIATE: winex11-Window_Groups.ok
winex11-Window_Groups.ok:
$(call APPLY_FILE,winex11-Window_Groups/0001-winex11-Prevent-window-managers-from-grouping-all-wi.patch)
@( \
echo '+ { "winex11-Window_Groups", "Michael Müller", "Prevent window managers from grouping all wine programs together." },'; \
) > winex11-Window_Groups.ok
# Patchset winex11-XEMBED
# |
# | Included patches:

View File

@@ -0,0 +1,29 @@
From 55d50964170f5fd8cf75b5e4e7ca109a60875980 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Sat, 16 Aug 2014 01:17:27 +0200
Subject: winex11: Prevent window managers from grouping all wine programs
together.
---
dlls/winex11.drv/window.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 06e2294..e715642 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -842,10 +842,8 @@ static void set_initial_wm_hints( Display *display, Window window )
/* class hints */
if ((class_hints = XAllocClassHint()))
{
- static char wine[] = "Wine";
-
class_hints->res_name = process_name;
- class_hints->res_class = wine;
+ class_hints->res_class = process_name;
XSetClassHint( display, window, class_hints );
XFree( class_hints );
}
--
1.9.1

View File

@@ -0,0 +1,4 @@
Author: Michael Müller
Subject: Prevent window managers from grouping all wine programs together.
Revision: 1
Fixes: [32699] Prevent window managers from grouping all wine programs together