summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Smirnov <onlyjob@debian.org>2018-07-07 08:03:38 +0200
committerDmitry Smirnov <onlyjob@debian.org>2018-07-07 08:03:38 +0200
commited7b29f13ff9d947da828ffe6d4088f239dd90ee (patch)
tree53ff7af10c3bba66f66f7b353901307061b5d915
Import clipit_1.4.4-2.debian.tar.xz
[dgit import tarball clipit 1.4.4-2 clipit_1.4.4-2.debian.tar.xz]
-rw-r--r--changelog122
-rw-r--r--clean2
-rw-r--r--compat1
-rw-r--r--control27
-rw-r--r--copyright83
-rw-r--r--gbp.conf7
-rw-r--r--patches/73.patch28
-rw-r--r--patches/90a.patch145
-rw-r--r--patches/90b.patch59
-rw-r--r--patches/91.patch24
-rw-r--r--patches/93a.patch35
-rw-r--r--patches/93b.patch33
-rw-r--r--patches/series6
-rwxr-xr-xrules25
-rw-r--r--source/format1
-rw-r--r--watch10
16 files changed, 608 insertions, 0 deletions
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..bf82622
--- /dev/null
+++ b/changelog
@@ -0,0 +1,122 @@
+clipit (1.4.4-2) unstable; urgency=medium
+
+ * Patchworks: patches updated as committed upstream.
+
+ -- Dmitry Smirnov <onlyjob@debian.org> Sat, 07 Jul 2018 16:03:38 +1000
+
+clipit (1.4.4-1) unstable; urgency=medium
+
+ * New upstream release [June 2018].
+ * Build using "--with-gtk3", "--enable-appindicator";
+ * Updated Homepage URL.
+ * Vcs URLs to Salsa.
+ * Removed "menu" file.
+ * debhelper & compat to version 11.
+ * Standards-Version: 4.1.4
+ * watch: check GitHub for releases.
+ * Set myself as Maintainer. Thanks, Jackson Doak.
+ * Build-Depends:
+ - libgtk2.0-dev
+ + libgtk-3-dev
+ - libappindicator-dev (>= 0.2.4)
+ + libappindicator3-dev
+
+ -- Dmitry Smirnov <onlyjob@debian.org> Fri, 29 Jun 2018 11:48:38 +1000
+
+clipit (1.4.2-1.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix Maintainer field.
+ * Add Vcs-* fields.
+
+ -- Andrew Shadura <andrewsh@debian.org> Sat, 29 Oct 2016 16:55:27 +0200
+
+clipit (1.4.2-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+
+ [ Logan Rosen ]
+ * debian/control: Build-depend on libappindicator-dev (>= 0.2.4).
+
+ [ Andrew Shadura ]
+ * Apply upstream patches for proper UTF-8 ellipsising.
+
+ -- Andrew Shadura <andrewsh@debian.org> Sat, 29 Oct 2016 14:07:30 +0200
+
+clipit (1.4.2-1) unstable; urgency=low
+
+ * New upstream version 1.4.2
+ * Delete patch glib-single-include.patch it is fixed in the new version
+ * Set myself as maintainer. closes: #718681
+ * Update debhelper to version 9
+ * Update standards version to 3.9.4
+ * Enable hardening and verbose mode in debian/rules
+ * Set xdotool as "required"
+ * Updated copyright file to standard 1.0
+
+ -- Jackson Doak <noskcaj@ubuntu.com> Sun, 04 Aug 2013 18:40:05 +1000
+
+clipit (1.4.1-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+
+ [ Sebastian Ramacher ]
+ * debian/patches/glib-single-include.patch: Apply patch from Michael Biebl
+ to fix build with newer glib. (Closes: #665518)
+
+ -- gregor herrmann <gregoa@debian.org> Sat, 13 Jul 2013 14:39:12 +0200
+
+clipit (1.4.1-1) unstable; urgency=low
+
+ * New upstream release.
+ - Fixed bug with indicator-menu not refreshing properly. (LP: #782248)
+ * Move xdotool from Build-Depends to Recommends.
+ * Set DM-Upload-Allowed flag, ACKed by David Paleino <dapal>.
+
+ -- Cristian Henzel <oss@rspwn.com> Fri, 27 May 2011 11:18:10 +0300
+
+clipit (1.4.0-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Cristian Henzel <oss@rspwn.com> Sat, 21 May 2011 21:31:05 +0300
+
+clipit (1.3.13-1) unstable; urgency=low
+
+ * New upstream release.
+ - Fixed problem with indicator code causing X to freeze. (LP: #702316)
+
+ -- Cristian Henzel <oss@rspwn.com> Tue, 03 May 2011 09:20:35 +0300
+
+clipit (1.3.12-1) unstable; urgency=low
+
+ * New upstream release.
+ - Fixed typo and added some info to description. (Closes: #611702, #615830)
+
+ -- Cristian Henzel <oss@rspwn.com> Mon, 28 Feb 2011 16:28:49 +0200
+
+clipit (1.3.11-1) unstable; urgency=low
+
+ * New upstream release.
+
+ * Fixed problem with all files being executable.
+
+ -- Cristian Henzel <oss@rspwn.com> Tue, 04 Jan 2011 11:00:47 +0200
+
+clipit (1.3.9-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Cristian Henzel <oss@rspwn.com> Mon, 20 Dec 2010 13:32:36 +0200
+
+clipit (1.3.6-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Cristian Henzel <oss@web-tm.com> Mon, 06 Dec 2010 13:41:26 +0200
+
+clipit (1.3.4-1) unstable; urgency=low
+
+ * Initial release (Closes: #603131)
+
+ -- Cristian Henzel <oss@web-tm.com> Tue, 30 Nov 2010 08:27:14 +0100
diff --git a/clean b/clean
new file mode 100644
index 0000000..54a6877
--- /dev/null
+++ b/clean
@@ -0,0 +1,2 @@
+m4/intltool.m4
+po/Makefile.in.in
diff --git a/compat b/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/compat
@@ -0,0 +1 @@
+11
diff --git a/control b/control
new file mode 100644
index 0000000..7665dfc
--- /dev/null
+++ b/control
@@ -0,0 +1,27 @@
+Source: clipit
+Section: misc
+Priority: optional
+Maintainer: Dmitry Smirnov <onlyjob@debian.org>
+Build-Depends: debhelper (>= 11~)
+ ,intltool
+ ,libappindicator3-dev
+ ,libgtk-3-dev
+Standards-Version: 4.1.4
+Homepage: https://github.com/CristianHenzel/ClipIt
+Vcs-Browser: https://salsa.debian.org/debian/clipit
+Vcs-Git: https://salsa.debian.org/debian/clipit.git
+
+Package: clipit
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, xdotool
+Description: lightweight GTK+ clipboard manager
+ Clipboard manager with features such as:
+ * Save history of your last copied items
+ * Search through the history
+ * Global hotkeys for most used functions
+ * Execute actions with clipboard items
+ * Exclude specific items from history
+ .
+ ClipIt was forked from Parcellite and adds many bugfixes and features to the
+ project. For a full list of changes see either the ChangeLog in the package
+ or http://clipit.rspwn.com/changelog/
diff --git a/copyright b/copyright
new file mode 100644
index 0000000..074f463
--- /dev/null
+++ b/copyright
@@ -0,0 +1,83 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: clipit
+Upstream-Contact: Cristian Henzel <oss@rspwn.com>
+Source: http://sourceforge.net/projects/gtkclipit/
+
+Files: *
+Copyright: 2010-2012 Cristian Henzel <oss@rspwn.com>
+ 2007-2008, Gilberto "Xyhthyx" Miralla <xyhthyx@gmail.com>
+License: GPL-3+
+
+Files: src/eggaccelerators.c
+Copyright: 2002, Red Hat, Inc.
+ 1998, 2001 Tim Janik
+License: LGPL-2+
+
+Files: src/eggaccelerators.h
+Copyright: 2002, Red Hat, Inc.
+License: LGPL-2+
+
+Files: src/keybinder.?
+Copyright: Alex Graveley
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+Files: po/sv.po po/pl.po
+Copyright: 2009, Free Software Foundation, Inc.
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2010, Cristian Henzel <oss@rspwn.com>
+ 2013, Jackson Doak <noskcaj@ubuntu.com>
+License: GPL-3+
+
+License: LGPL-2+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+ .
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/LGPL-2'
+
+License: GPL-3+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-3'.
diff --git a/gbp.conf b/gbp.conf
new file mode 100644
index 0000000..9ff03a3
--- /dev/null
+++ b/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+debian-branch=master
+upstream-branch=upstream
+
+[import-orig]
+pristine-tar = False
+merge = True
diff --git a/patches/73.patch b/patches/73.patch
new file mode 100644
index 0000000..2c7f966
--- /dev/null
+++ b/patches/73.patch
@@ -0,0 +1,28 @@
+Bug-Upstream: https://github.com/CristianHenzel/ClipIt/pull/73
+Origin: https://github.com/CristianHenzel/ClipIt/pull/73/commits/ed1aeef059805a6925237cee327a2a3bb8127262
+From ed1aeef059805a6925237cee327a2a3bb8127262 Mon Sep 17 00:00:00 2001
+From: Simon Epskamp <simon@frontwise.com>
+Date: Wed, 23 Aug 2017 21:09:44 +0200
+Subject: [PATCH] Don't write to primary clipboard unless "use primary" pref is set
+
+This actually fixes a bug with sublime text as well, where the
+selection is lost when the primary clipboard is overwritten.
+---
+ src/main.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -243,9 +243,11 @@
+ history = g_list_remove_link(history, element);
+ history = g_list_concat(element, history);
+ history_item *elem_data = history->data;
+ gtk_clipboard_set_text(clipboard, (gchar*)elem_data->content, -1);
+- gtk_clipboard_set_text(primary, (gchar*)elem_data->content, -1);
++ if (prefs.use_primary) {
++ gtk_clipboard_set_text(primary, (gchar*)elem_data->content, -1);
++ }
+ save_history();
+ /* Paste the clipboard contents automatically if enabled */
+ if (prefs.automatic_paste) {
+ gchar* cmd = g_strconcat("/bin/sh -c 'xdotool key ctrl+v'", NULL);
diff --git a/patches/90a.patch b/patches/90a.patch
new file mode 100644
index 0000000..8208ef2
--- /dev/null
+++ b/patches/90a.patch
@@ -0,0 +1,145 @@
+Bug-Upstream: https://github.com/CristianHenzel/ClipIt/issues/92
+Origin: https://github.com/CristianHenzel/ClipIt/pull/90/commits/9741c39382a3f6e4c03eac6905a49794d07c465a
+From 9741c39382a3f6e4c03eac6905a49794d07c465a Mon Sep 17 00:00:00 2001
+From: Ivan Malison <IvanMalison@gmail.com>
+Date: Thu, 14 Jun 2018 23:48:32 -0700
+Subject: [PATCH] Fix issues with newer versions of gtk
+
+---
+ src/main.c | 51 +++++++++++++++++++++++----------------------------
+ 1 file changed, 23 insertions(+), 28 deletions(-)
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -23,8 +23,10 @@
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+
++#define _GNU_SOURCE
++
+ #include <glib.h>
+ #include <stdlib.h>
+ #include <gtk/gtk.h>
+ #include <X11/keysym.h>
+@@ -540,17 +542,17 @@
+ clear_input_buffer();
+ return FALSE;
+ }
+
+- if (event->keyval == GDK_Down || event->keyval == GDK_Up) {
++ if (event->keyval == GDK_KEY_Down || event->keyval == GDK_KEY_Up) {
+ return FALSE;
+ }
+
+ if (isprint(*event->string))
+ append_to_input_buffer(event->string);
+
+ GtkMenuShell* menu = (GtkMenuShell *) history_menu;
+- GList* element = menu->children;
++ GList* element = gtk_container_get_children(menu);
+ GtkMenuItem *menu_item, *first_match = 0;
+
+ const gchar* menu_label;
+ int count, match_count = 0;
+@@ -577,71 +579,64 @@
+ }
+
+ if (first_match && match_count != prefs.items_menu) {
+ gtk_menu_item_select(first_match);
+- menu->active_menu_item = (GtkWidget *) first_match;
++ gtk_menu_shell_select_item(menu, first_match);
+ return TRUE;
+ }
+ return FALSE;
+ }
+
+ gboolean selected_by_digit(const GtkWidget *history_menu, const GdkEventKey *event) {
++ int selection = -1;
+ switch (event->keyval) {
+ case XK_1:
+ case XK_KP_1:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(0));
+- gtk_widget_destroy(history_menu);
++ selection = 1;
+ break;
+ case XK_2:
+ case XK_KP_2:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(1));
+- gtk_widget_destroy(history_menu);
++ selection = 2;
+ break;
+ case XK_3:
+ case XK_KP_3:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(2));
+- gtk_widget_destroy(history_menu);
++ selection = 3;
+ break;
+ case XK_4:
+ case XK_KP_4:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(3));
+- gtk_widget_destroy(history_menu);
++ selection = 4;
+ break;
+ case XK_5:
+ case XK_KP_5:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(4));
+- gtk_widget_destroy(history_menu);
++ selection = 5;
+ break;
+ case XK_6:
+ case XK_KP_6:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(5));
+- gtk_widget_destroy(history_menu);
++ selection = 6;
+ break;
+ case XK_7:
+ case XK_KP_7:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(6));
+- gtk_widget_destroy(history_menu);
++ selection = 7;
+ break;
+ case XK_8:
+ case XK_KP_8:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(7));
+- gtk_widget_destroy(history_menu);
++ selection = 8;
+ break;
+ case XK_9:
+ case XK_KP_9:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(8));
+- gtk_widget_destroy(history_menu);
++ selection = 9;
+ break;
+ case XK_0:
+ case XK_KP_0:
+- item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(9));
+- gtk_widget_destroy(history_menu);
++ selection = 0;
+ break;
+-
+- default:
+- return FALSE;
+ }
+- return TRUE;
++ if (selection >= 0) {
++ item_selected((GtkMenuItem*)history_menu, GINT_TO_POINTER(selection));
++ gtk_widget_destroy(history_menu);
++ return TRUE;
++ }
++ return FALSE;
+ }
+
+ static void toggle_offline_mode() {
+ if (prefs.offline_mode) {
+@@ -726,9 +721,9 @@
+ if (prefs.reverse_history)
+ element_number--;
+ else
+ element_number++;
+- element_number_small++;
++ element_number_small++;
+ }
+ /* Cleanup */
+ g_free(primary_temp);
+ g_free(clipboard_temp);
diff --git a/patches/90b.patch b/patches/90b.patch
new file mode 100644
index 0000000..02940ee
--- /dev/null
+++ b/patches/90b.patch
@@ -0,0 +1,59 @@
+Bug-Upstream: https://github.com/CristianHenzel/ClipIt/issues/92
+Origin: https://github.com/CristianHenzel/ClipIt/pull/90/commits/45e46d03b3ff315b5b380004d85fb499b4c139db
+From 45e46d03b3ff315b5b380004d85fb499b4c139db Mon Sep 17 00:00:00 2001
+From: Ivan Malison <IvanMalison@gmail.com>
+Date: Mon, 25 Jun 2018 18:24:12 -0700
+Subject: [PATCH] Proceed as normal if nothing provided in stdin
+
+---
+ src/main.c | 1 -
+ src/utils.c | 6 +++---
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -1028,9 +1028,8 @@
+ /* Exit */
+ return 0;
+ }
+ g_string_free(piped_string, TRUE);
+- return -1;
+ }
+ }
+
+ /* Init ClipIt */
+--- a/src/utils.c
++++ b/src/utils.c
+@@ -117,9 +117,9 @@
+ */
+ gboolean parse_options(int argc, char* argv[])
+ {
+ /* Declare argument options and argument variables */
+- gboolean icon = FALSE, daemon = FALSE,
++ gboolean no_icon = FALSE, daemon = FALSE,
+ clipboard = FALSE, primary = FALSE,
+ exit = FALSE;
+
+ GOptionEntry main_entries[] =
+@@ -134,9 +134,9 @@
+ {
+ "no-icon", 'n',
+ 0,
+ G_OPTION_ARG_NONE,
+- &icon, _("Do not use status icon (Ctrl-Alt-P for menu)"),
++ &no_icon, _("Do not use status icon (Ctrl-Alt-P for menu)"),
+ NULL
+ },
+ {
+ "clipboard", 'c',
+@@ -176,9 +176,9 @@
+
+ /* Check which options were parseed */
+
+ /* Do not display icon option */
+- if (icon)
++ if (no_icon)
+ {
+ prefs.no_icon = TRUE;
+ }
+ /* Run as daemon option */
diff --git a/patches/91.patch b/patches/91.patch
new file mode 100644
index 0000000..88f796e
--- /dev/null
+++ b/patches/91.patch
@@ -0,0 +1,24 @@
+Bug-Upstream: https://github.com/CristianHenzel/ClipIt/issues/91
+Origin: upstream, https://github.com/CristianHenzel/ClipIt/commit/8c5c3e67c0e08893bb432834d36efdb9c6963a25
+From 8c5c3e67c0e08893bb432834d36efdb9c6963a25 Mon Sep 17 00:00:00 2001
+From: Cristian Henzel <CristianHenzel@users.noreply.github.com>
+Date: Fri, 29 Jun 2018 14:17:45 +0300
+Subject: [PATCH] Initialize count
+
+---
+ src/main.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -554,9 +554,9 @@
+ GList* element = gtk_container_get_children(menu);
+ GtkMenuItem *menu_item, *first_match = 0;
+
+ const gchar* menu_label;
+- int count, match_count = 0;
++ int count = 0, match_count = 0;
+ char* match;
+
+ while (element->next != NULL && count < prefs.items_menu) {
+ menu_item = (GtkMenuItem *) element->data;
diff --git a/patches/93a.patch b/patches/93a.patch
new file mode 100644
index 0000000..f9e2c99
--- /dev/null
+++ b/patches/93a.patch
@@ -0,0 +1,35 @@
+Origin: upstream, https://github.com/CristianHenzel/ClipIt/commit/949bf67c51424f93fac249206c5cd3ff28097412
+From 949bf67c51424f93fac249206c5cd3ff28097412 Mon Sep 17 00:00:00 2001
+From: Cristian Henzel <CristianHenzel@users.noreply.github.com>
+Date: Fri, 29 Jun 2018 14:29:16 +0300
+Subject: [PATCH] Remove use of gtk_window_get_pointer
+
+Closes #93
+Closes #55
+---
+ src/main.c | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -126,9 +126,19 @@
+ }
+ else
+ {
+ GdkModifierType button_state;
+- gdk_window_get_pointer(NULL, NULL, NULL, &button_state);
++ GdkScreen *screen = gdk_screen_get_default();
++ if (screen)
++ {
++ GdkDisplay *display = gdk_screen_get_display(screen);
++ GdkWindow *window = gdk_screen_get_root_window(screen);
++ GdkSeat *seat = gdk_display_get_default_seat(display);
++
++ gdk_window_get_device_position(window, gdk_seat_get_pointer(seat), NULL,
++ NULL, &button_state);
++ }
++
+ /* Proceed if mouse button not being held */
+ if ((primary_temp != NULL) && !(button_state & GDK_BUTTON1_MASK))
+ {
+ /* Check if primary is the same as the last entry */
diff --git a/patches/93b.patch b/patches/93b.patch
new file mode 100644
index 0000000..0be5694
--- /dev/null
+++ b/patches/93b.patch
@@ -0,0 +1,33 @@
+Origin: upstream, https://github.com/CristianHenzel/ClipIt/commit/d6fab2be79b2fc8319b492a1a834300df64e4db8
+From d6fab2be79b2fc8319b492a1a834300df64e4db8 Mon Sep 17 00:00:00 2001
+From: Cristian Henzel <CristianHenzel@users.noreply.github.com>
+Date: Sat, 30 Jun 2018 10:26:13 +0300
+Subject: [PATCH] Remove use of deprecated gtk_window_get_pointer
+
+---
+ src/daemon.c | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+--- a/src/daemon.c
++++ b/src/daemon.c
+@@ -52,9 +52,19 @@
+ else
+ {
+ /* Get the button state to check if the mouse button is being held */
+ GdkModifierType button_state;
+- gdk_window_get_pointer(NULL, NULL, NULL, &button_state);
++ GdkScreen *screen = gdk_screen_get_default();
++ if (screen)
++ {
++ GdkDisplay *display = gdk_screen_get_display(screen);
++ GdkWindow *window = gdk_screen_get_root_window(screen);
++ GdkSeat *seat = gdk_display_get_default_seat(display);
++
++ gdk_window_get_device_position(window, gdk_seat_get_pointer(seat), NULL,
++ NULL, &button_state);
++ }
++
+ if ((primary_temp != NULL) && !(button_state & GDK_BUTTON1_MASK))
+ {
+ g_free(primary_text);
+ primary_text = g_strdup(primary_temp);
diff --git a/patches/series b/patches/series
new file mode 100644
index 0000000..4d758da
--- /dev/null
+++ b/patches/series
@@ -0,0 +1,6 @@
+#73.patch
+90a.patch
+90b.patch
+91.patch
+93a.patch
+93b.patch
diff --git a/rules b/rules
new file mode 100755
index 0000000..131c740
--- /dev/null
+++ b/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+# To enable all, uncomment following line
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
+
+override_dh_autoreconf:
+ dh_autoreconf
+#~ [ ! -x "./autogen.sh" ] || ./autogen.sh
+## call `intltoolize` to fix the following error:
+## ~~~~\
+## config.status: executing po/stamp-it commands
+## config.status: error: po/Makefile.in.in was not created by intltoolize.
+## ~~~~/
+ intltoolize --automake --copy --force
+
+override_dh_auto_configure:
+ dh_auto_configure -- --with-gtk3 --enable-appindicator
diff --git a/source/format b/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/watch b/watch
new file mode 100644
index 0000000..cce8aed
--- /dev/null
+++ b/watch
@@ -0,0 +1,10 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+opts=\
+pgpmode=none,\
+repack,compression=xz,\
+ https://github.com/CristianHenzel/ClipIt/releases \
+ .*/archive/v?(\d[\d\.]+)\.tar\.gz
+
+http://sf.net/gtkclipit/clipit-(.*)\.tar\.gz