summaryrefslogtreecommitdiff
path: root/src/backends/meta-dnd-private.h
diff options
context:
space:
mode:
authorHyungwon Hwang <hyungwon.hwang7@gmail.com>2017-01-02 23:11:32 +0900
committerJonas Ã…dahl <jadahl@gmail.com>2017-03-07 08:28:36 +0800
commit5fafaf92dfbcab549933fc95d7a9e4d64af9e437 (patch)
treecb02dbb37ab9adb4ab48430a45b39ec445d3a43f /src/backends/meta-dnd-private.h
parent4e4b24e7a87ac4f331d9e4447e9bfddaf9e64c55 (diff)
downloadmutter-5fafaf92dfbcab549933fc95d7a9e4d64af9e437.tar.gz
dnd: Implement MetaDnd
Implement MetaDnd for emitting DnD signals to plugins such as gnome-shell. The xdnd handling code comes from gnome-shell, and it is hidden behind MetaDnd now. https://bugzilla.gnome.org/show_bug.cgi?id=765003
Diffstat (limited to 'src/backends/meta-dnd-private.h')
-rw-r--r--src/backends/meta-dnd-private.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/backends/meta-dnd-private.h b/src/backends/meta-dnd-private.h
new file mode 100644
index 000000000..41aa2a0d7
--- /dev/null
+++ b/src/backends/meta-dnd-private.h
@@ -0,0 +1,30 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
+
+/*
+ * Copyright (C) 2016 Hyungwon Hwang
+ *
+ * This program 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 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef META_DND_PRIVATE__H
+#define META_DND_PRIVATE__H
+
+#include <X11/Xlib.h>
+
+gboolean meta_dnd_handle_xdnd_event (MetaBackend *backend,
+ MetaCompositor *compositor,
+ MetaDisplay *display,
+ XEvent *xev);
+
+#endif /* META_DND_PRIVATE_H */