#include "config.h"
#include "magnifier.h"
#include "magnifier-private.h"
#include "gmag-events.h"
#include <stdlib.h>
#include <X11/Xlib.h>
#include <glib.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
Go to the source code of this file.
Defines | |
#define | EVENTS_DEBUG |
Functions | |
GdkPixbuf * | gmag_events_get_source_pixbuf (Magnifier *magnifier) |
gboolean | gmag_events_source_has_damage_extension (Magnifier *magnifier) |
static gboolean | gmag_events_handler (GIOChannel *source, GIOCondition condition, gpointer data) |
static gboolean | gmag_events_use_damage () |
static gboolean | gmag_events_use_composite () |
void | gmag_events_client_init (Magnifier *magnifier) |
Variables | |
static Display * | dpy_conn = NULL |
static guint | dpy_gsource = 0 |
static Window | root_window |
static Window | mag_window |
static gboolean | use_damage |
static gboolean | use_composite |
gint | fixes_event_base = 0 |
gint | fixes_error_base |
#define EVENTS_DEBUG |
Definition at line 70 of file gmag-events.c.
GdkPixbuf* gmag_events_get_source_pixbuf | ( | Magnifier * | magnifier | ) |
Definition at line 811 of file gmag-events.c.
Referenced by gmag_events_handler(), magnifier_get_cursor(), and magnifier_set_cursor_pixmap_by_name().
gboolean gmag_events_source_has_damage_extension | ( | Magnifier * | magnifier | ) |
Definition at line 842 of file gmag-events.c.
References Magnifier::source_display.
Referenced by main().
static gboolean gmag_events_handler | ( | GIOChannel * | source, | |
GIOCondition | condition, | |||
gpointer | data | |||
) | [static] |
Definition at line 858 of file gmag-events.c.
References fixes_event_base, gmag_events_get_source_pixbuf(), mag_window, magnifier_notify_damage(), magnifier_set_cursor_from_pixbuf(), magnifier_set_cursor_pixmap_by_name(), magnifier_transform_cursor(), _MagnifierPrivate::overlay, Magnifier::priv, use_composite, use_damage, _MagnifierPrivate::use_source_cursor, and _MagnifierPrivate::w.
Referenced by gmag_events_client_init().
static gboolean gmag_events_use_damage | ( | ) | [static] |
Definition at line 1029 of file gmag-events.c.
Referenced by gmag_events_client_init(), and gmag_events_use_composite().
static gboolean gmag_events_use_composite | ( | ) | [static] |
Definition at line 1043 of file gmag-events.c.
References gmag_events_use_damage().
Referenced by gmag_events_client_init().
void gmag_events_client_init | ( | Magnifier * | magnifier | ) |
Definition at line 1060 of file gmag-events.c.
References dpy_gsource, fixes_error_base, fixes_event_base, gmag_events_handler(), gmag_events_use_composite(), gmag_events_use_damage(), Magnifier::priv, _MagnifierPrivate::root, root_window, Magnifier::source_display_name, _MagnifierPrivate::source_drawable, use_composite, and use_damage.
Referenced by magnifier_set_extension_listeners().
Display* dpy_conn = NULL [static] |
Definition at line 48 of file gmag-events.c.
guint dpy_gsource = 0 [static] |
Window root_window [static] |
Window mag_window [static] |
gboolean use_damage [static] |
Definition at line 52 of file gmag-events.c.
Referenced by gmag_events_client_init(), and gmag_events_handler().
gboolean use_composite [static] |
Definition at line 52 of file gmag-events.c.
Referenced by gmag_events_client_init(), and gmag_events_handler().
gint fixes_event_base = 0 |
Definition at line 54 of file gmag-events.c.
Referenced by gmag_events_client_init(), gmag_events_handler(), magnifier_get_cursor(), and magnifier_init_cursor_set().
gint fixes_error_base |