]> git.pld-linux.org Git - packages/emerald.git/blame - emerald-no-gdk_display.patch
- updated gettext BR
[packages/emerald.git] / emerald-no-gdk_display.patch
CommitLineData
dc6617a3
AA
1--- emerald-0.8.4/src/main.c.orig 2010-10-27 23:09:01.000000000 +0200
2+++ emerald-0.8.4/src/main.c 2010-10-27 23:08:34.000000000 +0200
3@@ -2457,7 +2457,7 @@
4 gdk_error_trap_push();
5
6 type = None;
7- result = XGetWindowProperty(gdk_display,
8+ result = XGetWindowProperty(GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
9 xwindow,
10 atom,
11 0, G_MAXLONG,
12@@ -4243,13 +4243,14 @@
13
14 static void force_quit_dialog_realize(GtkWidget * dialog, void *data)
15 {
16+ Display *xdisplay = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
17 WnckWindow *win = data;
18
19 gdk_error_trap_push();
20- XSetTransientForHint(gdk_display,
21+ XSetTransientForHint(xdisplay,
22 GDK_WINDOW_XID(dialog->window),
23 wnck_window_get_xid(win));
24- XSync(gdk_display, FALSE);
25+ XSync(xdisplay, FALSE);
26 gdk_error_trap_pop();
27 }
28
29@@ -4261,12 +4262,13 @@
30 unsigned char *sstr = NULL;
31 int format, result;
32 char *retval;
33+ Display *xdisplay = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
34
35- atom = XInternAtom(gdk_display, "WM_CLIENT_MACHINE", FALSE);
36+ atom = XInternAtom(xdisplay, "WM_CLIENT_MACHINE", FALSE);
37
38 gdk_error_trap_push();
39
40- result = XGetWindowProperty(gdk_display,
41+ result = XGetWindowProperty(xdisplay,
42 xwindow, atom,
43 0, G_MAXLONG,
44 FALSE, XA_STRING, &type, &format, &nitems,
45@@ -4293,6 +4295,8 @@
46
47 static void kill_window(WnckWindow * win)
48 {
49+ GdkDisplay *gdk_display = gdk_display_get_default ();
50+ Display *xdisplay = GDK_DISPLAY_XDISPLAY (gdk_display);
51 WnckApplication *app;
52
53 app = wnck_window_get_application(win);
54@@ -4318,7 +4322,7 @@
55 }
56
57 gdk_error_trap_push();
58- XKillClient(gdk_display, wnck_window_get_xid(win));
59+ XKillClient(xdisplay, wnck_window_get_xid(win));
60 XSync(gdk_display, FALSE);
61 gdk_error_trap_pop();
62 }
63@@ -4739,7 +4743,8 @@
64
65 static int update_shadow(frame_settings * fs)
66 {
67- Display *xdisplay = gdk_display;
68+ GdkDisplay *display = gdk_display_get_default ();
69+ Display *xdisplay = GDK_DISPLAY_XDISPLAY (display);
70 XRenderPictFormat *format;
71 GdkPixmap *pixmap;
72 Picture src, dst, tmp;
This page took 0.050768 seconds and 4 git commands to generate.