Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/wmfire/files: wmfire-1.2.4-no_display.patch
Date: Mon, 28 Jun 2010 22:00:13
Message-Id: 20100628220004.5DAE22C3ED@corvid.gentoo.org
1 voyageur 10/06/28 22:00:04
2
3 Added: wmfire-1.2.4-no_display.patch
4 Log:
5 Fix support with gtk+ >= 2.18, bug #304087
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 x11-plugins/wmfire/files/wmfire-1.2.4-no_display.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmfire/files/wmfire-1.2.4-no_display.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmfire/files/wmfire-1.2.4-no_display.patch?rev=1.1&content-type=text/plain
13
14 Index: wmfire-1.2.4-no_display.patch
15 ===================================================================
16 --- src/wmfire.c.orig 2010-06-28 23:53:35.000000000 +0200
17 +++ src/wmfire.c 2010-06-28 23:54:35.000000000 +0200
18 @@ -150,6 +150,8 @@
19 int
20 main(int argc, char **argv)
21 {
22 + /* This is needed to proper dockapp work on >=GTK+-2.18 */
23 + setenv("GDK_NATIVE_WINDOWS", "1", 0);
24 GdkEvent *event;
25 GdkCursor *cursor;
26 int i;
27 @@ -632,6 +634,7 @@
28
29 /* Moved after gdk_window_show due to change in GTK 2.4 */
30 XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
31 + gdk_window_show(bm.iconwin);
32
33 if (bm.x > 0 || bm.y > 0)
34 gdk_window_move(bm.win, bm.x, bm.y);