\hypertarget{structxdg__wm__base__listener}{}\section{xdg\+\_\+wm\+\_\+base\+\_\+listener Struct Reference}
\label{structxdg__wm__base__listener}\index{xdg\+\_\+wm\+\_\+base\+\_\+listener@{xdg\+\_\+wm\+\_\+base\+\_\+listener}}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
void($\ast$ \mbox{\hyperlink{structxdg__wm__base__listener_a4c735d844e84443304b37d917ec847d0}{ping}} )(void $\ast$data, struct xdg\+\_\+wm\+\_\+base $\ast$xdg\+\_\+wm\+\_\+base, uint32\+\_\+t serial)
\begin{DoxyCompactList}\small\item\em check if the client is alive \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Field Documentation}
\mbox{\Hypertarget{structxdg__wm__base__listener_a4c735d844e84443304b37d917ec847d0}\label{structxdg__wm__base__listener_a4c735d844e84443304b37d917ec847d0}} 
\index{xdg\+\_\+wm\+\_\+base\+\_\+listener@{xdg\+\_\+wm\+\_\+base\+\_\+listener}!ping@{ping}}
\index{ping@{ping}!xdg\+\_\+wm\+\_\+base\+\_\+listener@{xdg\+\_\+wm\+\_\+base\+\_\+listener}}
\subsubsection{\texorpdfstring{ping}{ping}}
{\footnotesize\ttfamily void($\ast$ xdg\+\_\+wm\+\_\+base\+\_\+listener\+::ping) (void $\ast$data, struct xdg\+\_\+wm\+\_\+base $\ast$xdg\+\_\+wm\+\_\+base, uint32\+\_\+t serial)}



check if the client is alive 

The ping event asks the client if it\textquotesingle{}s still alive. Pass the serial specified in the event back to the compositor by sending a \char`\"{}pong\char`\"{} request back with the specified serial. See xdg\+\_\+wm\+\_\+base.\+ping.

Compositors can use this to determine if the client is still alive. It\textquotesingle{}s unspecified what will happen if the client doesn\textquotesingle{}t respond to the ping request, or in what timeframe. Clients should try to respond in a reasonable amount of time.

A compositor is free to ping in any way it wants, but a client must always respond to any xdg\+\_\+wm\+\_\+base object it created. 
\begin{DoxyParams}{Parameters}
{\em serial} & pass this to the pong request \\
\hline
\end{DoxyParams}
