2009-06-25 18:56:15 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
#ifndef META_COMPOSITOR_PRIVATE_H
|
|
|
|
#define META_COMPOSITOR_PRIVATE_H
|
|
|
|
|
2009-06-26 15:33:20 -04:00
|
|
|
#include <X11/extensions/Xfixes.h>
|
|
|
|
|
2011-03-05 19:29:12 -05:00
|
|
|
#include <meta/compositor.h>
|
|
|
|
#include <meta/display.h>
|
2010-10-18 13:27:14 -04:00
|
|
|
#include "meta-plugin-manager.h"
|
2011-08-27 05:43:09 -04:00
|
|
|
#include "meta-window-actor-private.h"
|
2009-06-25 18:56:15 -04:00
|
|
|
#include <clutter/clutter.h>
|
|
|
|
|
|
|
|
struct _MetaCompositor
|
|
|
|
{
|
|
|
|
MetaDisplay *display;
|
|
|
|
|
2014-04-18 14:21:20 -04:00
|
|
|
guint pre_paint_func_id;
|
|
|
|
guint post_paint_func_id;
|
2009-06-25 18:56:15 -04:00
|
|
|
|
2012-11-12 14:09:38 -05:00
|
|
|
gint64 server_time_query_time;
|
|
|
|
gint64 server_time_offset;
|
|
|
|
|
|
|
|
guint server_time_is_monotonic_time : 1;
|
2011-11-09 15:40:38 -05:00
|
|
|
guint no_mipmaps : 1;
|
2009-06-26 15:33:20 -04:00
|
|
|
|
2014-10-06 10:46:26 -04:00
|
|
|
ClutterActor *stage, *window_group, *top_window_group, *feedback_group;
|
2010-11-14 12:37:17 -05:00
|
|
|
ClutterActor *background_actor;
|
2009-06-26 15:33:20 -04:00
|
|
|
GList *windows;
|
|
|
|
Window output;
|
|
|
|
|
2012-11-12 14:11:08 -05:00
|
|
|
CoglOnscreen *onscreen;
|
|
|
|
CoglFrameClosure *frame_closure;
|
|
|
|
|
2011-08-27 05:43:09 -04:00
|
|
|
/* Used for unredirecting fullscreen windows */
|
2013-12-06 17:10:44 -05:00
|
|
|
guint disable_unredirect_count;
|
|
|
|
MetaWindow *unredirected_window;
|
2014-01-22 09:16:56 -05:00
|
|
|
|
2009-06-26 15:33:20 -04:00
|
|
|
gint switch_workspace_in_progress;
|
|
|
|
|
2010-10-18 13:27:14 -04:00
|
|
|
MetaPluginManager *plugin_mgr;
|
2014-05-12 09:11:53 -04:00
|
|
|
|
|
|
|
gboolean frame_has_updated_xsurfaces;
|
2014-04-18 14:21:20 -04:00
|
|
|
gboolean have_x11_sync_object;
|
2009-06-26 15:33:20 -04:00
|
|
|
};
|
|
|
|
|
2012-11-12 14:11:08 -05:00
|
|
|
/* Wait 2ms after vblank before starting to draw next frame */
|
|
|
|
#define META_SYNC_DELAY 2
|
|
|
|
|
2014-03-18 17:31:22 -04:00
|
|
|
void meta_switch_workspace_completed (MetaCompositor *compositor);
|
2010-10-18 13:27:14 -04:00
|
|
|
|
2014-03-18 17:31:22 -04:00
|
|
|
gboolean meta_begin_modal_for_plugin (MetaCompositor *compositor,
|
2010-10-18 13:27:14 -04:00
|
|
|
MetaPlugin *plugin,
|
|
|
|
MetaModalOptions options,
|
|
|
|
guint32 timestamp);
|
2014-03-18 17:31:22 -04:00
|
|
|
void meta_end_modal_for_plugin (MetaCompositor *compositor,
|
2010-10-18 13:27:14 -04:00
|
|
|
MetaPlugin *plugin,
|
|
|
|
guint32 timestamp);
|
|
|
|
|
2012-11-12 14:09:38 -05:00
|
|
|
gint64 meta_compositor_monotonic_time_to_server_time (MetaDisplay *display,
|
|
|
|
gint64 monotonic_time);
|
|
|
|
|
2009-06-25 18:56:15 -04:00
|
|
|
#endif /* META_COMPOSITOR_PRIVATE_H */
|