marco 1.29.1
Window manager
Loading...
Searching...
No Matches
eventqueue.c File Reference
View source
#include "eventqueue.h"
#include <glib-object.h>
#include <X11/Xlib.h>
Include dependency graph for eventqueue.c:

Data Structures

struct  _MetaEventQueue
 

Functions

static gboolean eq_prepare (GSource *source, gint *timeout)
 
static gboolean eq_check (GSource *source)
 
static gboolean eq_dispatch (GSource *source, GSourceFunc callback, gpointer user_data)
 
static void eq_destroy (GSource *source)
 
MetaEventQueue * meta_event_queue_new (Display *display, MetaEventQueueFunc func, gpointer data)
 
void meta_event_queue_free (MetaEventQueue *eq)
 
static gboolean eq_events_pending (MetaEventQueue *eq)
 
static void eq_queue_events (MetaEventQueue *eq)
 

Variables

static GSourceFuncs eq_funcs
 

Function Documentation

◆ eq_check()

static gboolean eq_check ( GSource *  source)
static

References eq_events_pending(), FALSE, and _MetaEventQueue::poll_fd.

Here is the call graph for this function:

◆ eq_destroy()

static void eq_destroy ( GSource *  source)
static

◆ eq_dispatch()

static gboolean eq_dispatch ( GSource *  source,
GSourceFunc  callback,
gpointer  user_data 
)
static

References eq_queue_events(), _MetaEventQueue::events, and TRUE.

Here is the call graph for this function:

◆ eq_events_pending()

static gboolean eq_events_pending ( MetaEventQueue *  eq)
static

◆ eq_prepare()

static gboolean eq_prepare ( GSource *  source,
gint *  timeout 
)
static

References eq_events_pending().

Here is the call graph for this function:

◆ eq_queue_events()

static void eq_queue_events ( MetaEventQueue *  eq)
static

◆ meta_event_queue_free()

void meta_event_queue_free ( MetaEventQueue *  eq)

◆ meta_event_queue_new()

MetaEventQueue * meta_event_queue_new ( Display *  display,
MetaEventQueueFunc  func,
gpointer  data 
)

Variable Documentation

◆ eq_funcs

GSourceFuncs eq_funcs
static
Initial value:
= {
}
static gboolean eq_dispatch(GSource *source, GSourceFunc callback, gpointer user_data)
Definition eventqueue.c:142
static gboolean eq_check(GSource *source)
Definition eventqueue.c:129
static gboolean eq_prepare(GSource *source, gint *timeout)
Definition eventqueue.c:117
static void eq_destroy(GSource *source)
Definition eventqueue.c:167

Referenced by meta_event_queue_new().