@@ -1,90 +0,0 @@
1−diff -rup xournal-0.4.8-orig/src/Makefile.am xournal-0.4.8/src/Makefile.am
2−--- xournal-0.4.8-orig/src/Makefile.am 2012-07-04 23:12:47.000000000 +0200
3−+++ xournal-0.4.8/src/Makefile.am 2016-12-25 03:04:00.000000000 +0100
4−@@ -31,6 +31,5 @@ if WIN32
5− xournal_LDFLAGS = -mwindows
6− xournal_LDADD = win32/xournal.res ttsubset/libttsubset.a @PACKAGE_LIBS@ $(INTLLIBS) -lz
7− else
8−- xournal_LDADD = ttsubset/libttsubset.a @PACKAGE_LIBS@ $(INTLLIBS) -lX11 -lz -lm
9−+ xournal_LDADD = ttsubset/libttsubset.a @PACKAGE_LIBS@ $(INTLLIBS) -lz -lm
10− endif
11−-
12−diff -rup xournal-0.4.8-orig/src/xo-file.c xournal-0.4.8/src/xo-file.c
13−--- xournal-0.4.8-orig/src/xo-file.c 2014-06-28 21:52:25.000000000 +0200
14−+++ xournal-0.4.8/src/xo-file.c 2016-12-25 03:07:19.000000000 +0100
15−@@ -31,11 +31,6 @@
16− #include <glib/gstdio.h>
17− #include <poppler/glib/poppler.h>
18−
19−-#ifndef WIN32
20−- #include <gdk/gdkx.h>
21−- #include <X11/Xlib.h>
22−-#endif
23−-
24− #include "xournal.h"
25− #include "xo-interface.h"
26− #include "xo-support.h"
27−@@ -1275,50 +1270,8 @@ GList *attempt_load_gv_bg(char *filename
28−
29− struct Background *attempt_screenshot_bg(void)
30− {
31−-#ifndef WIN32
32−- struct Background *bg;
33−- GdkPixbuf *pix;
34−- XEvent x_event;
35−- GdkWindow *window;
36−- GdkColormap *cmap;
37−- int x,y,w,h;
38−- Window x_root, x_win;
39−-
40−- x_root = gdk_x11_get_default_root_xwindow();
41−-
42−- if (!XGrabButton(GDK_DISPLAY(), AnyButton, AnyModifier, x_root,
43−- False, ButtonReleaseMask, GrabModeAsync, GrabModeSync, None, None))
44−- return NULL;
45−-
46−- XWindowEvent (GDK_DISPLAY(), x_root, ButtonReleaseMask, &x_event);
47−- XUngrabButton(GDK_DISPLAY(), AnyButton, AnyModifier, x_root);
48−-
49−- x_win = x_event.xbutton.subwindow;
50−- if (x_win == None) x_win = x_root;
51−-
52−- window = gdk_window_foreign_new_for_display(gdk_display_get_default(), x_win);
53−-
54−- gdk_window_get_geometry(window, &x, &y, &w, &h, NULL);
55−- cmap = gdk_drawable_get_colormap(window);
56−- if (cmap == NULL) cmap = gdk_colormap_get_system();
57−-
58−- pix = gdk_pixbuf_get_from_drawable(NULL, window,
59−- cmap, 0, 0, 0, 0, w, h);
60−-
61−- if (pix == NULL) return NULL;
62−-
63−- bg = g_new(struct Background, 1);
64−- bg->type = BG_PIXMAP;
65−- bg->canvas_item = NULL;
66−- bg->pixbuf = pix;
67−- bg->pixbuf_scale = DEFAULT_ZOOM;
68−- bg->filename = new_refstring(NULL);
69−- bg->file_domain = DOMAIN_ATTACH;
70−- return bg;
71−-#else
72− // not implemented under WIN32
73− return FALSE;
74−-#endif
75− }
76−
77− /************** pdf annotation ***************/
78−diff -rup xournal-0.4.8-orig/src/xo-misc.c xournal-0.4.8/src/xo-misc.c
79−--- xournal-0.4.8-orig/src/xo-misc.c 2014-06-28 15:17:44.000000000 +0200
80−+++ xournal-0.4.8/src/xo-misc.c 2016-12-25 03:05:50.000000000 +0100
81−@@ -2288,9 +2288,7 @@ void hide_unimplemented(void)
82− }
83−
84− /* screenshot feature doesn't work yet in Win32 */
85−-#ifdef WIN32
86− gtk_widget_hide(GET_COMPONENT("journalScreenshot"));
87−-#endif
88− }
89−
90− // toggle fullscreen mode