\hypertarget{structzxdg__popup__v6__interface}{}\section{zxdg\+\_\+popup\+\_\+v6\+\_\+interface Struct Reference}
\label{structzxdg__popup__v6__interface}\index{zxdg\+\_\+popup\+\_\+v6\+\_\+interface@{zxdg\+\_\+popup\+\_\+v6\+\_\+interface}}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
void($\ast$ \mbox{\hyperlink{structzxdg__popup__v6__interface_a5c9788f1f28d99e28c8096c7da0eb51c}{destroy}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource)
\begin{DoxyCompactList}\small\item\em remove xdg\+\_\+popup interface \end{DoxyCompactList}\item 
void($\ast$ \mbox{\hyperlink{structzxdg__popup__v6__interface_aa3848ffd8cac9c6274a0e32ac0536509}{grab}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, struct wl\+\_\+resource $\ast$seat, uint32\+\_\+t serial)
\begin{DoxyCompactList}\small\item\em make the popup take an explicit grab \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Field Documentation}
\mbox{\Hypertarget{structzxdg__popup__v6__interface_a5c9788f1f28d99e28c8096c7da0eb51c}\label{structzxdg__popup__v6__interface_a5c9788f1f28d99e28c8096c7da0eb51c}} 
\index{zxdg\+\_\+popup\+\_\+v6\+\_\+interface@{zxdg\+\_\+popup\+\_\+v6\+\_\+interface}!destroy@{destroy}}
\index{destroy@{destroy}!zxdg\+\_\+popup\+\_\+v6\+\_\+interface@{zxdg\+\_\+popup\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{destroy}{destroy}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+popup\+\_\+v6\+\_\+interface\+::destroy) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource)}



remove xdg\+\_\+popup interface 

This destroys the popup. Explicitly destroying the xdg\+\_\+popup object will also dismiss the popup, and unmap the surface.

If this xdg\+\_\+popup is not the \char`\"{}topmost\char`\"{} popup, a protocol error will be sent. \mbox{\Hypertarget{structzxdg__popup__v6__interface_aa3848ffd8cac9c6274a0e32ac0536509}\label{structzxdg__popup__v6__interface_aa3848ffd8cac9c6274a0e32ac0536509}} 
\index{zxdg\+\_\+popup\+\_\+v6\+\_\+interface@{zxdg\+\_\+popup\+\_\+v6\+\_\+interface}!grab@{grab}}
\index{grab@{grab}!zxdg\+\_\+popup\+\_\+v6\+\_\+interface@{zxdg\+\_\+popup\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{grab}{grab}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+popup\+\_\+v6\+\_\+interface\+::grab) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, struct wl\+\_\+resource $\ast$seat, uint32\+\_\+t serial)}



make the popup take an explicit grab 

This request makes the created popup take an explicit grab. An explicit grab will be dismissed when the user dismisses the popup, or when the client destroys the xdg\+\_\+popup. This can be done by the user clicking outside the surface, using the keyboard, or even locking the screen through closing the lid or a timeout.

If the compositor denies the grab, the popup will be immediately dismissed.

This request must be used in response to some sort of user action like a button press, key press, or touch down event. The serial number of the event should be passed as \textquotesingle{}serial\textquotesingle{}.

The parent of a grabbing popup must either be an xdg\+\_\+toplevel surface or another xdg\+\_\+popup with an explicit grab. If the parent is another xdg\+\_\+popup it means that the popups are nested, with this popup now being the topmost popup.

Nested popups must be destroyed in the reverse order they were created in, e.\+g. the only popup you are allowed to destroy at all times is the topmost one.

When compositors choose to dismiss a popup, they may dismiss every nested grabbing popup as well. When a compositor dismisses popups, it will follow the same dismissing order as required from the client.

The parent of a grabbing popup must either be another xdg\+\_\+popup with an active explicit grab, or an xdg\+\_\+popup or xdg\+\_\+toplevel, if there are no explicit grabs already taken.

If the topmost grabbing popup is destroyed, the grab will be returned to the parent of the popup, if that parent previously had an explicit grab.

If the parent is a grabbing popup which has already been dismissed, this popup will be immediately dismissed. If the parent is a popup that did not take an explicit grab, an error will be raised.

During a popup grab, the client owning the grab will receive pointer and touch events for all their surfaces as normal (similar to an \char`\"{}owner-\/events\char`\"{} grab in X11 parlance), while the top most grabbing popup will always have keyboard focus. 
\begin{DoxyParams}{Parameters}
{\em seat} & the wl\+\_\+seat of the user event \\
\hline
{\em serial} & the serial of the user event \\
\hline
\end{DoxyParams}
