diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2015-02-11 17:34:15 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2015-02-17 22:14:47 +0800 |
commit | 768286bffb925759fba610d7d01354ce083242f6 (patch) | |
tree | fbac38691e1e6a96e8a7033ccf49e0cfe5b278fa /src/wayland/meta-wayland-popup.h | |
parent | f5c65d9ea142c458bd931c8da89c5fd19baca935 (diff) | |
download | mutter-768286bffb925759fba610d7d01354ce083242f6.tar.gz |
wayland: Move out popup logic to its own file
We'll want to expose popup logic outside of meta-wayland-pointer.c and
one day we'll also probably want to add touch support for popups, so
lets move it to its own file. There are no significant semantical
changes, only refactoring.
https://bugzilla.gnome.org/show_bug.cgi?id=744452
Diffstat (limited to 'src/wayland/meta-wayland-popup.h')
-rw-r--r-- | src/wayland/meta-wayland-popup.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-popup.h b/src/wayland/meta-wayland-popup.h new file mode 100644 index 000000000..bba6d56e6 --- /dev/null +++ b/src/wayland/meta-wayland-popup.h @@ -0,0 +1,49 @@ +/* + * Wayland Support + * + * Copyright (C) 2013 Intel Corporation + * Copyright (C) 2015 Red Hat, Inc. + * + * 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 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, see <http://www.gnu.org/licenses/>. + */ + +#ifndef META_WAYLAND_POPUP_H +#define META_WAYLAND_POPUP_H + +#include <glib.h> +#include <wayland-server.h> + +#include "meta-wayland-types.h" +#include "meta-wayland-pointer.h" + +MetaWaylandPopupGrab *meta_wayland_popup_grab_create (MetaWaylandPointer *pointer, + struct wl_client *client); + +void meta_wayland_popup_grab_destroy (MetaWaylandPopupGrab *grab); + +void meta_wayland_popup_grab_begin (MetaWaylandPopupGrab *grab, + MetaWaylandSurface *surface); + +void meta_wayland_popup_grab_end (MetaWaylandPopupGrab *grab); + +gboolean meta_wayland_pointer_grab_is_popup_grab (MetaWaylandPointerGrab *grab); + +MetaWaylandPopup *meta_wayland_popup_create (MetaWaylandSurface *surface, + MetaWaylandPopupGrab *grab); + +void meta_wayland_popup_destroy (MetaWaylandPopup *popup); + +void meta_wayland_popup_dismiss (MetaWaylandPopup *popup); + +#endif /* META_WAYLAND_POPUP_H */ |