2010-11-12 12:18:58 +00:00
|
|
|
/* GDK - The GIMP Drawing Kit
|
|
|
|
* Copyright (C) 1995-2007 Peter Mattis, Spencer Kimball,
|
|
|
|
* Josh MacDonald, Ryan Lortie
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
|
|
* files for a list of changes. These files are distributed with
|
|
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include "gdkwindow-broadway.h"
|
2010-11-15 19:08:18 +00:00
|
|
|
#include "gdkscreen-broadway.h"
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
#include "gdkwindow.h"
|
|
|
|
#include "gdkwindowimpl.h"
|
|
|
|
#include "gdkdisplay-broadway.h"
|
|
|
|
#include "gdkprivate-broadway.h"
|
|
|
|
#include "gdkinternals.h"
|
|
|
|
#include "gdkdeviceprivate.h"
|
|
|
|
#include "gdkeventsource.h"
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
/* Forward declarations */
|
2010-11-16 11:33:02 +00:00
|
|
|
static void gdk_window_broadway_set_background (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
cairo_pattern_t *pattern);
|
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
static void gdk_window_impl_broadway_finalize (GObject *object);
|
2010-11-12 12:18:58 +00:00
|
|
|
static void gdk_window_impl_iface_init (GdkWindowImplIface *iface);
|
|
|
|
|
|
|
|
#define WINDOW_IS_TOPLEVEL_OR_FOREIGN(window) \
|
|
|
|
(GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD && \
|
|
|
|
GDK_WINDOW_TYPE (window) != GDK_WINDOW_OFFSCREEN)
|
|
|
|
|
|
|
|
#define WINDOW_IS_TOPLEVEL(window) \
|
|
|
|
(GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD && \
|
|
|
|
GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN && \
|
|
|
|
GDK_WINDOW_TYPE (window) != GDK_WINDOW_OFFSCREEN)
|
|
|
|
|
|
|
|
/* Return whether time1 is considered later than time2 as far as xserver
|
|
|
|
* time is concerned. Accounts for wraparound.
|
|
|
|
*/
|
|
|
|
#define XSERVER_TIME_IS_LATER(time1, time2) \
|
|
|
|
( (( time1 > time2 ) && ( time1 - time2 < ((guint32)-1)/2 )) || \
|
|
|
|
(( time1 < time2 ) && ( time2 - time1 > ((guint32)-1)/2 )) \
|
|
|
|
)
|
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
G_DEFINE_TYPE_WITH_CODE (GdkWindowImplBroadway,
|
|
|
|
gdk_window_impl_broadway,
|
|
|
|
GDK_TYPE_DRAWABLE_IMPL_BROADWAY,
|
2010-11-12 12:18:58 +00:00
|
|
|
G_IMPLEMENT_INTERFACE (GDK_TYPE_WINDOW_IMPL,
|
|
|
|
gdk_window_impl_iface_init));
|
|
|
|
|
2010-11-15 20:44:38 +00:00
|
|
|
static GList *all_windows;
|
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
GType
|
|
|
|
_gdk_window_impl_get_type (void)
|
|
|
|
{
|
2010-11-16 11:33:02 +00:00
|
|
|
return gdk_window_impl_broadway_get_type ();
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 21:11:53 +00:00
|
|
|
diff_surfaces (cairo_surface_t *surface,
|
|
|
|
cairo_surface_t *old_surface)
|
2010-11-15 19:08:18 +00:00
|
|
|
{
|
2010-11-16 21:11:53 +00:00
|
|
|
guint8 *data, *old_data;
|
2010-11-21 18:52:05 +00:00
|
|
|
guint32 *line, *old_line;
|
2010-11-16 21:11:53 +00:00
|
|
|
int w, h, stride, old_stride;
|
|
|
|
int x, y;
|
2010-11-15 20:51:32 +00:00
|
|
|
|
2010-11-16 21:11:53 +00:00
|
|
|
data = cairo_image_surface_get_data (surface);
|
|
|
|
old_data = cairo_image_surface_get_data (old_surface);
|
|
|
|
|
|
|
|
w = cairo_image_surface_get_width (surface);
|
|
|
|
h = cairo_image_surface_get_height (surface);
|
|
|
|
|
|
|
|
stride = cairo_image_surface_get_stride (surface);
|
|
|
|
old_stride = cairo_image_surface_get_stride (old_surface);
|
|
|
|
|
|
|
|
for (y = 0; y < h; y++)
|
|
|
|
{
|
2010-11-21 18:52:05 +00:00
|
|
|
line = (guint32 *)data;
|
|
|
|
old_line = (guint32 *)old_data;
|
2010-11-16 21:11:53 +00:00
|
|
|
|
|
|
|
for (x = 0; x < w; x++)
|
|
|
|
{
|
2010-11-21 18:52:05 +00:00
|
|
|
if ((*line & 0xffffff) == (*old_line & 0xffffff))
|
|
|
|
*old_line = 0;
|
|
|
|
else
|
|
|
|
*old_line = *line | 0xff000000;
|
|
|
|
line ++;
|
|
|
|
old_line ++;
|
2010-11-16 21:11:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
data += stride;
|
|
|
|
old_data += old_stride;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static guint dirty_flush_id = 0;
|
|
|
|
|
2010-11-18 21:21:16 +00:00
|
|
|
static void
|
|
|
|
window_data_send (BroadwayClient *client, GdkWindowImplBroadway *impl)
|
|
|
|
{
|
|
|
|
GdkDrawableImplBroadway *drawable_impl = GDK_DRAWABLE_IMPL_BROADWAY (impl);
|
|
|
|
cairo_t *cr;
|
|
|
|
|
2010-11-21 18:52:05 +00:00
|
|
|
if (drawable_impl->surface == NULL)
|
|
|
|
return;
|
|
|
|
|
2010-11-18 21:21:16 +00:00
|
|
|
if (impl->last_synced)
|
|
|
|
{
|
|
|
|
diff_surfaces (drawable_impl->surface,
|
|
|
|
drawable_impl->last_surface);
|
2010-11-21 18:52:05 +00:00
|
|
|
broadway_client_put_rgba (client, impl->id, 0, 0,
|
|
|
|
cairo_image_surface_get_width (drawable_impl->last_surface),
|
|
|
|
cairo_image_surface_get_height (drawable_impl->last_surface),
|
|
|
|
cairo_image_surface_get_stride (drawable_impl->last_surface),
|
|
|
|
cairo_image_surface_get_data (drawable_impl->last_surface));
|
2010-11-18 21:21:16 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
impl->last_synced = TRUE;
|
|
|
|
broadway_client_put_rgb (client, impl->id, 0, 0,
|
|
|
|
cairo_image_surface_get_width (drawable_impl->surface),
|
|
|
|
cairo_image_surface_get_height (drawable_impl->surface),
|
|
|
|
cairo_image_surface_get_stride (drawable_impl->surface),
|
|
|
|
cairo_image_surface_get_data (drawable_impl->surface));
|
|
|
|
}
|
|
|
|
|
|
|
|
cr = cairo_create (drawable_impl->last_surface);
|
|
|
|
cairo_set_source_surface (cr, drawable_impl->surface, 0, 0);
|
|
|
|
cairo_paint (cr);
|
|
|
|
cairo_destroy (cr);
|
|
|
|
}
|
|
|
|
|
2010-11-16 21:11:53 +00:00
|
|
|
static gboolean
|
|
|
|
dirty_flush_idle (gpointer data)
|
|
|
|
{
|
|
|
|
GList *l;
|
|
|
|
GdkDisplayBroadway *display;
|
|
|
|
BroadwayClient *client;
|
|
|
|
|
|
|
|
dirty_flush_id = 0;
|
|
|
|
|
2010-11-18 21:21:16 +00:00
|
|
|
display = GDK_DISPLAY_BROADWAY (gdk_display_get_default ());
|
|
|
|
client = display->output;
|
|
|
|
if (client == NULL)
|
|
|
|
return FALSE;
|
|
|
|
|
2010-11-16 21:11:53 +00:00
|
|
|
for (l = all_windows; l != NULL; l = l->next)
|
|
|
|
{
|
|
|
|
GdkWindowImplBroadway *impl = l->data;
|
|
|
|
|
|
|
|
if (impl->dirty)
|
|
|
|
{
|
|
|
|
impl->dirty = FALSE;
|
2010-11-18 21:21:16 +00:00
|
|
|
window_data_send (display->output, impl);
|
2010-11-16 21:11:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-11-18 21:21:16 +00:00
|
|
|
broadway_client_flush (client);
|
2010-11-16 21:11:53 +00:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-18 21:21:16 +00:00
|
|
|
queue_dirty_flush (GdkDisplayBroadway *display)
|
2010-11-16 21:11:53 +00:00
|
|
|
{
|
2010-11-18 21:21:16 +00:00
|
|
|
if (dirty_flush_id == 0 && display->output != NULL)
|
2010-11-16 21:11:53 +00:00
|
|
|
dirty_flush_id = gdk_threads_add_idle (dirty_flush_idle, NULL);
|
|
|
|
}
|
|
|
|
|
2010-11-18 21:21:16 +00:00
|
|
|
void
|
|
|
|
_gdk_broadway_resync_windows (void)
|
|
|
|
{
|
|
|
|
GdkDisplayBroadway *display;
|
|
|
|
GList *l;
|
|
|
|
|
|
|
|
dirty_flush_id = 0;
|
|
|
|
|
|
|
|
display = GDK_DISPLAY_BROADWAY (gdk_display_get_default ());
|
|
|
|
|
|
|
|
for (l = all_windows; l != NULL; l = l->next)
|
|
|
|
{
|
|
|
|
GdkWindowImplBroadway *impl = l->data;
|
|
|
|
GdkWindowObject *private;
|
|
|
|
|
|
|
|
private = (GdkWindowObject*) GDK_DRAWABLE_IMPL_BROADWAY (impl)->wrapper;
|
|
|
|
|
2010-11-19 20:55:13 +00:00
|
|
|
if (impl->id == 0)
|
|
|
|
continue; /* Skip root */
|
|
|
|
|
2010-11-18 21:21:16 +00:00
|
|
|
impl->dirty = FALSE;
|
|
|
|
impl->last_synced = FALSE;
|
|
|
|
broadway_client_new_surface (display->output,
|
|
|
|
impl->id,
|
|
|
|
private->x,
|
|
|
|
private->y,
|
|
|
|
private->width,
|
|
|
|
private->height);
|
|
|
|
if (GDK_WINDOW_IS_MAPPED (private))
|
|
|
|
{
|
|
|
|
broadway_client_show_surface (display->output, impl->id);
|
|
|
|
window_data_send (display->output, impl);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
broadway_client_flush (display->output);
|
|
|
|
}
|
2010-11-16 21:11:53 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
gdk_window_impl_broadway_init (GdkWindowImplBroadway *impl)
|
|
|
|
{
|
2010-11-15 20:44:38 +00:00
|
|
|
all_windows = g_list_prepend (all_windows, impl);
|
2010-11-12 12:18:58 +00:00
|
|
|
impl->toplevel_window_type = -1;
|
|
|
|
impl->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
|
|
|
|
(GDestroyNotify) gdk_cursor_unref);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_impl_broadway_class_init (GdkWindowImplBroadwayClass *klass)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
object_class->finalize = gdk_window_impl_broadway_finalize;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_impl_broadway_finalize (GObject *object)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
GdkWindowObject *wrapper;
|
2010-11-16 11:33:02 +00:00
|
|
|
GdkDrawableImplBroadway *draw_impl;
|
|
|
|
GdkWindowImplBroadway *window_impl;
|
2010-11-20 21:38:34 +00:00
|
|
|
GdkDisplayBroadway *display_broadway;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
g_return_if_fail (GDK_IS_WINDOW_IMPL_BROADWAY (object));
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
draw_impl = GDK_DRAWABLE_IMPL_BROADWAY (object);
|
|
|
|
window_impl = GDK_WINDOW_IMPL_BROADWAY (object);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
wrapper = (GdkWindowObject*) draw_impl->wrapper;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-21 18:53:19 +00:00
|
|
|
display_broadway = GDK_DISPLAY_BROADWAY (gdk_window_get_display (draw_impl->wrapper));
|
|
|
|
g_hash_table_remove (display_broadway->id_ht, GINT_TO_POINTER(window_impl->id));
|
2010-11-20 21:38:34 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
if (window_impl->cursor)
|
|
|
|
gdk_cursor_unref (window_impl->cursor);
|
|
|
|
|
|
|
|
g_hash_table_destroy (window_impl->device_cursor);
|
|
|
|
|
2010-11-15 20:44:38 +00:00
|
|
|
all_windows = g_list_remove (all_windows, window_impl);
|
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
G_OBJECT_CLASS (gdk_window_impl_broadway_parent_class)->finalize (object);
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_window_init (GdkScreen * screen)
|
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
2010-11-16 11:33:02 +00:00
|
|
|
GdkDrawableImplBroadway *draw_impl;
|
|
|
|
GdkScreenBroadway *screen_broadway;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
screen_broadway = GDK_SCREEN_BROADWAY (screen);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
g_assert (screen_broadway->root_window == NULL);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
screen_broadway->root_window = g_object_new (GDK_TYPE_WINDOW, NULL);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
private = (GdkWindowObject *) screen_broadway->root_window;
|
2010-11-12 12:18:58 +00:00
|
|
|
private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
|
|
|
|
private->impl_window = private;
|
|
|
|
private->visual = gdk_screen_get_system_visual (screen);
|
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
draw_impl = GDK_DRAWABLE_IMPL_BROADWAY (private->impl);
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
draw_impl->screen = screen;
|
|
|
|
draw_impl->wrapper = GDK_DRAWABLE (private);
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
private->window_type = GDK_WINDOW_ROOT;
|
2010-11-15 19:08:18 +00:00
|
|
|
private->depth = 24;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
private->x = 0;
|
|
|
|
private->y = 0;
|
|
|
|
private->abs_x = 0;
|
|
|
|
private->abs_y = 0;
|
2010-11-15 19:08:18 +00:00
|
|
|
private->width = gdk_screen_get_width (screen);
|
|
|
|
private->height = gdk_screen_get_height (screen);
|
2010-11-12 12:18:58 +00:00
|
|
|
private->viewable = TRUE;
|
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
_gdk_window_update_size (screen_broadway->root_window);
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_window_impl_new (GdkWindow *window,
|
|
|
|
GdkWindow *real_parent,
|
|
|
|
GdkScreen *screen,
|
|
|
|
GdkEventMask event_mask,
|
|
|
|
GdkWindowAttr *attributes,
|
|
|
|
gint attributes_mask)
|
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
2010-11-16 11:33:02 +00:00
|
|
|
GdkWindowImplBroadway *impl;
|
|
|
|
GdkDrawableImplBroadway *draw_impl;
|
|
|
|
GdkScreenBroadway *screen_broadway;
|
|
|
|
GdkDisplayBroadway *display_broadway;
|
2010-11-16 21:11:53 +00:00
|
|
|
static int current_id = 1; /* 0 is the root window */
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
private = (GdkWindowObject *) window;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
screen_broadway = GDK_SCREEN_BROADWAY (screen);
|
|
|
|
display_broadway = GDK_DISPLAY_BROADWAY (GDK_SCREEN_DISPLAY (screen));
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-16 21:11:53 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
impl = g_object_new (_gdk_window_impl_get_type (), NULL);
|
|
|
|
private->impl = (GdkDrawable *)impl;
|
2010-11-16 21:11:53 +00:00
|
|
|
impl->id = current_id++;
|
2010-11-21 18:53:19 +00:00
|
|
|
g_hash_table_insert (display_broadway->id_ht, GINT_TO_POINTER(impl->id), window);
|
2010-11-16 11:33:02 +00:00
|
|
|
draw_impl = GDK_DRAWABLE_IMPL_BROADWAY (impl);
|
2010-11-12 12:18:58 +00:00
|
|
|
draw_impl->wrapper = GDK_DRAWABLE (window);
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
draw_impl->screen = screen;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
g_assert (private->window_type == GDK_WINDOW_TOPLEVEL ||
|
|
|
|
private->window_type == GDK_WINDOW_TEMP);
|
|
|
|
g_assert (GDK_WINDOW_TYPE (private->parent) == GDK_WINDOW_ROOT);
|
2010-11-16 21:11:53 +00:00
|
|
|
|
2010-11-18 21:21:16 +00:00
|
|
|
if (display_broadway->output)
|
|
|
|
broadway_client_new_surface (display_broadway->output,
|
|
|
|
impl->id,
|
|
|
|
private->x,
|
|
|
|
private->y,
|
|
|
|
private->width,
|
|
|
|
private->height);
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GdkWindow *
|
|
|
|
gdk_window_foreign_new_for_display (GdkDisplay *display,
|
|
|
|
GdkNativeWindow anid)
|
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return NULL;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GdkWindow *
|
|
|
|
gdk_window_lookup_for_display (GdkDisplay *display, GdkNativeWindow anid)
|
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return NULL;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GdkWindow *
|
|
|
|
gdk_window_lookup (GdkNativeWindow anid)
|
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return NULL;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
_gdk_broadway_window_destroy (GdkWindow *window,
|
2010-11-16 21:11:53 +00:00
|
|
|
gboolean recursing,
|
|
|
|
gboolean foreign_destroy)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
GdkWindowObject *private = (GdkWindowObject *)window;
|
2010-11-16 21:11:53 +00:00
|
|
|
GdkWindowImplBroadway *impl;
|
|
|
|
GdkDisplayBroadway *display_broadway;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
|
|
|
|
2010-11-16 21:11:53 +00:00
|
|
|
private = (GdkWindowObject*) window;
|
|
|
|
impl = GDK_WINDOW_IMPL_BROADWAY (private->impl);
|
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
_gdk_selection_window_destroyed (window);
|
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
_gdk_broadway_drawable_finish (private->impl);
|
2010-11-16 21:11:53 +00:00
|
|
|
|
|
|
|
display_broadway = GDK_DISPLAY_BROADWAY (gdk_window_get_display (window));
|
2010-11-18 21:21:16 +00:00
|
|
|
if (display_broadway->output)
|
|
|
|
broadway_client_destroy_surface (display_broadway->output,
|
|
|
|
impl->id);
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static cairo_surface_t *
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_resize_cairo_surface (GdkWindow *window,
|
2010-11-16 19:28:54 +00:00
|
|
|
cairo_surface_t *surface,
|
|
|
|
gint width,
|
|
|
|
gint height)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
/* Image surfaces cannot be resized */
|
|
|
|
cairo_surface_destroy (surface);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
return NULL;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_window_destroy_foreign (GdkWindow *window)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/* This function is called when the XWindow is really gone.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
gdk_window_destroy_notify (GdkWindow *window)
|
|
|
|
{
|
2010-11-16 11:33:02 +00:00
|
|
|
GdkWindowImplBroadway *window_impl;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
window_impl = GDK_WINDOW_IMPL_BROADWAY (((GdkWindowObject *)window)->impl);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
if (!GDK_WINDOW_DESTROYED (window))
|
|
|
|
{
|
|
|
|
if (GDK_WINDOW_TYPE(window) != GDK_WINDOW_FOREIGN)
|
2010-11-15 19:08:18 +00:00
|
|
|
g_warning ("GdkWindow %p unexpectedly destroyed", window);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
_gdk_window_destroy (window, TRUE);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_object_unref (window);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_show (GdkWindow *window, gboolean already_mapped)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 21:12:04 +00:00
|
|
|
GdkWindowObject *private;
|
2010-11-16 21:11:53 +00:00
|
|
|
GdkWindowImplBroadway *impl;
|
|
|
|
GdkDisplayBroadway *display_broadway;
|
2010-11-15 21:12:04 +00:00
|
|
|
|
|
|
|
private = (GdkWindowObject*) window;
|
2010-11-16 21:11:53 +00:00
|
|
|
impl = GDK_WINDOW_IMPL_BROADWAY (private->impl);
|
2010-11-15 21:12:04 +00:00
|
|
|
|
|
|
|
if (private->event_mask & GDK_STRUCTURE_MASK)
|
|
|
|
_gdk_make_event (GDK_WINDOW (private), GDK_MAP, NULL, FALSE);
|
|
|
|
|
|
|
|
if (private->parent && private->parent->event_mask & GDK_SUBSTRUCTURE_MASK)
|
|
|
|
_gdk_make_event (GDK_WINDOW (private), GDK_MAP, NULL, FALSE);
|
|
|
|
|
2010-11-16 21:11:53 +00:00
|
|
|
display_broadway = GDK_DISPLAY_BROADWAY (gdk_window_get_display (window));
|
2010-11-18 21:21:16 +00:00
|
|
|
if (display_broadway->output)
|
|
|
|
{
|
|
|
|
broadway_client_show_surface (display_broadway->output, impl->id);
|
|
|
|
queue_dirty_flush (display_broadway);
|
|
|
|
}
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_hide (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
2010-11-16 21:11:53 +00:00
|
|
|
GdkWindowImplBroadway *impl;
|
|
|
|
GdkDisplayBroadway *display_broadway;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
private = (GdkWindowObject*) window;
|
2010-11-16 21:11:53 +00:00
|
|
|
impl = GDK_WINDOW_IMPL_BROADWAY (private->impl);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 21:12:04 +00:00
|
|
|
if (private->event_mask & GDK_STRUCTURE_MASK)
|
|
|
|
_gdk_make_event (GDK_WINDOW (private), GDK_UNMAP, NULL, FALSE);
|
|
|
|
|
|
|
|
if (private->parent && private->parent->event_mask & GDK_SUBSTRUCTURE_MASK)
|
|
|
|
_gdk_make_event (GDK_WINDOW (private), GDK_UNMAP, NULL, FALSE);
|
|
|
|
|
2010-11-16 21:11:53 +00:00
|
|
|
display_broadway = GDK_DISPLAY_BROADWAY (gdk_window_get_display (window));
|
2010-11-18 21:21:16 +00:00
|
|
|
if (display_broadway->output)
|
|
|
|
{
|
|
|
|
broadway_client_hide_surface (display_broadway->output, impl->id);
|
|
|
|
queue_dirty_flush (display_broadway);
|
|
|
|
}
|
2010-11-16 21:11:53 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
_gdk_window_clear_update_area (window);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_withdraw (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_hide (window);
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
2010-11-21 19:46:50 +00:00
|
|
|
static void
|
|
|
|
gdk_window_broadway_move_resize (GdkWindow *window,
|
|
|
|
gboolean with_move,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
GdkWindowObject *private = (GdkWindowObject *) window;;
|
2010-11-21 19:46:50 +00:00
|
|
|
GdkWindowImplBroadway *impl = GDK_WINDOW_IMPL_BROADWAY (private->impl);
|
|
|
|
GdkDisplayBroadway *display_broadway;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-21 19:46:50 +00:00
|
|
|
display_broadway = GDK_DISPLAY_BROADWAY (gdk_window_get_display (window));
|
|
|
|
if (with_move)
|
|
|
|
{
|
|
|
|
private->x = x;
|
|
|
|
private->y = y;
|
|
|
|
if (display_broadway->output != NULL)
|
|
|
|
{
|
|
|
|
broadway_client_move_surface (display_broadway->output,
|
|
|
|
impl->id, x, y);
|
|
|
|
queue_dirty_flush (display_broadway);
|
|
|
|
}
|
|
|
|
}
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
|
2010-11-21 19:46:50 +00:00
|
|
|
if (width > 0 || height > 0)
|
|
|
|
{
|
|
|
|
if (width < 1)
|
|
|
|
width = 1;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-21 19:46:50 +00:00
|
|
|
if (height < 1)
|
|
|
|
height = 1;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-21 19:46:50 +00:00
|
|
|
g_print ("TODO: Ignoring resize of window %p\n", window);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-21 19:46:50 +00:00
|
|
|
private->width = width;
|
|
|
|
private->height = height;
|
|
|
|
_gdk_broadway_drawable_update_size (private->impl);
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_reparent (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
GdkWindow *new_parent,
|
|
|
|
gint x,
|
|
|
|
gint y)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_raise (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_restack_under (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
GList *native_siblings /* in requested order, first is bottom-most */)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_restack_toplevel (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
GdkWindow *sibling,
|
|
|
|
gboolean above)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_lower (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_focus (GdkWindow *window,
|
|
|
|
guint32 timestamp)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_type_hint (GdkWindow *window,
|
|
|
|
GdkWindowTypeHint hint)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkWindowTypeHint
|
|
|
|
gdk_window_get_type_hint (GdkWindow *window)
|
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return GDK_WINDOW_TYPE_HINT_NORMAL;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_modal_hint (GdkWindow *window,
|
|
|
|
gboolean modal)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_skip_taskbar_hint (GdkWindow *window,
|
|
|
|
gboolean skips_taskbar)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_skip_pager_hint (GdkWindow *window,
|
|
|
|
gboolean skips_pager)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_urgency_hint (GdkWindow *window,
|
|
|
|
gboolean urgent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
2010-11-12 12:18:58 +00:00
|
|
|
gdk_window_set_geometry_hints (GdkWindow *window,
|
|
|
|
const GdkGeometry *geometry,
|
|
|
|
GdkWindowHints geom_mask)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_set_title (GdkWindow *window,
|
|
|
|
const gchar *title)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
}
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_role (GdkWindow *window,
|
|
|
|
const gchar *role)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_startup_id (GdkWindow *window,
|
|
|
|
const gchar *startup_id)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_transient_for (GdkWindow *window,
|
|
|
|
GdkWindow *parent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_set_background (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
cairo_pattern_t *pattern)
|
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_set_device_cursor (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
GdkDevice *device,
|
|
|
|
GdkCursor *cursor)
|
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
2010-11-16 11:33:02 +00:00
|
|
|
GdkWindowImplBroadway *impl;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
|
|
|
g_return_if_fail (GDK_IS_DEVICE (device));
|
|
|
|
|
|
|
|
private = (GdkWindowObject *) window;
|
2010-11-16 11:33:02 +00:00
|
|
|
impl = GDK_WINDOW_IMPL_BROADWAY (private->impl);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
if (!cursor)
|
|
|
|
g_hash_table_remove (impl->device_cursor, device);
|
|
|
|
else
|
|
|
|
{
|
2010-11-16 11:33:02 +00:00
|
|
|
_gdk_broadway_cursor_update_theme (cursor);
|
2010-11-12 12:18:58 +00:00
|
|
|
g_hash_table_replace (impl->device_cursor,
|
|
|
|
device, gdk_cursor_ref (cursor));
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!GDK_WINDOW_DESTROYED (window))
|
|
|
|
GDK_DEVICE_GET_CLASS (device)->set_window_cursor (device, window, cursor);
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkCursor *
|
2010-11-16 11:33:02 +00:00
|
|
|
_gdk_broadway_window_get_cursor (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
2010-11-16 11:33:02 +00:00
|
|
|
GdkWindowImplBroadway *impl;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
private = (GdkWindowObject *)window;
|
2010-11-16 11:33:02 +00:00
|
|
|
impl = GDK_WINDOW_IMPL_BROADWAY (private->impl);
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
return impl->cursor;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_get_geometry (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
gint *width,
|
|
|
|
gint *height,
|
|
|
|
gint *depth)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static gint
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_get_root_coords (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint *root_x,
|
|
|
|
gint *root_y)
|
|
|
|
{
|
|
|
|
if (root_x)
|
2010-11-15 19:08:18 +00:00
|
|
|
*root_x = x;
|
2010-11-12 12:18:58 +00:00
|
|
|
if (root_y)
|
2010-11-15 19:08:18 +00:00
|
|
|
*root_y = y;
|
|
|
|
|
|
|
|
return 1;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_get_root_origin (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y)
|
|
|
|
{
|
|
|
|
if (x)
|
2010-11-15 19:08:18 +00:00
|
|
|
*x = 0;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
if (y)
|
2010-11-15 19:08:18 +00:00
|
|
|
*y = 0;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_get_frame_extents (GdkWindow *window,
|
|
|
|
GdkRectangle *rect)
|
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
g_return_if_fail (rect != NULL);
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
private = (GdkWindowObject*) window;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
rect->x = private->x;
|
|
|
|
rect->y = private->y;
|
|
|
|
rect->width = private->width;
|
|
|
|
rect->height = private->height;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_get_device_state (GdkDisplay *display,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkScreen **screen,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
GdkModifierType *mask)
|
|
|
|
{
|
|
|
|
if (display->closed)
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_get_device_state (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
GdkDevice *device,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
GdkModifierType *mask)
|
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return FALSE;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_display_warp_pointer (GdkDisplay *display,
|
|
|
|
GdkScreen *screen,
|
|
|
|
gint x,
|
|
|
|
gint y)
|
|
|
|
{
|
|
|
|
GdkDevice *device;
|
|
|
|
|
|
|
|
g_return_if_fail (GDK_IS_DISPLAY (display));
|
|
|
|
g_return_if_fail (GDK_IS_SCREEN (screen));
|
|
|
|
|
|
|
|
device = display->core_pointer;
|
|
|
|
GDK_DEVICE_GET_CLASS (device)->warp (device, screen, x, y);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_display_warp_device (GdkDisplay *display,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkScreen *screen,
|
|
|
|
gint x,
|
|
|
|
gint y)
|
|
|
|
{
|
|
|
|
g_return_if_fail (GDK_IS_DISPLAY (display));
|
|
|
|
g_return_if_fail (GDK_IS_DEVICE (device));
|
|
|
|
g_return_if_fail (GDK_IS_SCREEN (screen));
|
|
|
|
g_return_if_fail (display == gdk_device_get_display (device));
|
|
|
|
|
|
|
|
GDK_DEVICE_GET_CLASS (device)->warp (device, screen, x, y);
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkWindow*
|
|
|
|
_gdk_windowing_window_at_device_position (GdkDisplay *display,
|
|
|
|
GdkDevice *device,
|
|
|
|
gint *win_x,
|
|
|
|
gint *win_y,
|
|
|
|
GdkModifierType *mask,
|
|
|
|
gboolean get_toplevel)
|
|
|
|
{
|
2010-11-21 19:46:14 +00:00
|
|
|
GdkWindow *window;
|
|
|
|
GdkWindowObject *private;
|
|
|
|
GdkDisplayBroadway *display_broadway;
|
|
|
|
GdkScreen *screen;
|
|
|
|
|
|
|
|
display_broadway = GDK_DISPLAY_BROADWAY (display);
|
|
|
|
screen = gdk_display_get_screen (display, 0);
|
|
|
|
window = _gdk_window_find_child_at (gdk_screen_get_root_window (screen),
|
|
|
|
display_broadway->last_x,
|
|
|
|
display_broadway->last_y);
|
|
|
|
|
|
|
|
if (window != NULL)
|
|
|
|
{
|
|
|
|
private = (GdkWindowObject *)window;
|
|
|
|
*win_x = display_broadway->last_x - private->x;
|
|
|
|
*win_y = display_broadway->last_y - private->y;
|
|
|
|
}
|
|
|
|
|
|
|
|
return window;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static GdkEventMask
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_get_events (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
if (GDK_WINDOW_DESTROYED (window))
|
|
|
|
return 0;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
|
|
|
return 0;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_set_events (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
GdkEventMask event_mask)
|
|
|
|
{
|
|
|
|
if (!GDK_WINDOW_DESTROYED (window))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_shape_combine_region (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
const cairo_region_t *shape_region,
|
|
|
|
gint offset_x,
|
|
|
|
gint offset_y)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
static void
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_input_shape_combine_region (GdkWindow *window,
|
2010-11-12 12:18:58 +00:00
|
|
|
const cairo_region_t *shape_region,
|
|
|
|
gint offset_x,
|
|
|
|
gint offset_y)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_override_redirect (GdkWindow *window,
|
|
|
|
gboolean override_redirect)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_accept_focus (GdkWindow *window,
|
|
|
|
gboolean accept_focus)
|
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
private = (GdkWindowObject *)window;
|
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
accept_focus = accept_focus != FALSE;
|
|
|
|
|
|
|
|
if (private->accept_focus != accept_focus)
|
|
|
|
{
|
|
|
|
private->accept_focus = accept_focus;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_focus_on_map (GdkWindow *window,
|
|
|
|
gboolean focus_on_map)
|
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
private = (GdkWindowObject *)window;
|
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
focus_on_map = focus_on_map != FALSE;
|
|
|
|
|
|
|
|
if (private->focus_on_map != focus_on_map)
|
|
|
|
{
|
|
|
|
private->focus_on_map = focus_on_map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_icon_list (GdkWindow *window,
|
|
|
|
GList *pixbufs)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
void
|
2010-11-15 19:08:18 +00:00
|
|
|
gdk_window_set_icon_name (GdkWindow *window,
|
|
|
|
const gchar *name)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
GdkDisplay *display;
|
|
|
|
|
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
display = gdk_window_get_display (window);
|
|
|
|
|
|
|
|
g_object_set_qdata (G_OBJECT (window), g_quark_from_static_string ("gdk-icon-name-set"),
|
|
|
|
GUINT_TO_POINTER (name != NULL));
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2010-11-15 19:08:18 +00:00
|
|
|
gdk_window_iconify (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_deiconify (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_stick (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_unstick (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_maximize (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
2010-11-12 12:18:58 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_unmaximize (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_fullscreen (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
}
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_unfullscreen (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_set_keep_above (GdkWindow *window,
|
|
|
|
gboolean setting)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_set_keep_below (GdkWindow *window, gboolean setting)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
GdkWindow *
|
|
|
|
gdk_window_get_group (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL (window))
|
|
|
|
return NULL;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
return window;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_set_group (GdkWindow *window,
|
|
|
|
GdkWindow *leader)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_set_decorations (GdkWindow *window,
|
|
|
|
GdkWMDecoration decorations)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
|
|
|
}
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
gboolean
|
2010-11-15 19:08:18 +00:00
|
|
|
gdk_window_get_decorations(GdkWindow *window,
|
|
|
|
GdkWMDecoration *decorations)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
gboolean result = FALSE;
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
2010-11-12 12:18:58 +00:00
|
|
|
return FALSE;
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
return result;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
void
|
|
|
|
gdk_window_set_functions (GdkWindow *window,
|
|
|
|
GdkWMFunction functions)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
2010-11-12 12:18:58 +00:00
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
cairo_region_t *
|
|
|
|
_gdk_windowing_window_get_shape (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return NULL;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
cairo_region_t *
|
|
|
|
_gdk_windowing_window_get_input_shape (GdkWindow *window)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return NULL;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
static gboolean
|
2010-11-16 11:33:02 +00:00
|
|
|
gdk_window_broadway_set_static_gravities (GdkWindow *window,
|
2010-11-15 19:08:18 +00:00
|
|
|
gboolean use_static)
|
2010-11-12 12:18:58 +00:00
|
|
|
{
|
2010-11-15 19:08:18 +00:00
|
|
|
return TRUE;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_begin_resize_drag (GdkWindow *window,
|
|
|
|
GdkWindowEdge edge,
|
|
|
|
gint button,
|
|
|
|
gint root_x,
|
|
|
|
gint root_y,
|
|
|
|
guint32 timestamp)
|
|
|
|
{
|
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_begin_move_drag (GdkWindow *window,
|
|
|
|
gint button,
|
|
|
|
gint root_x,
|
|
|
|
gint root_y,
|
|
|
|
guint32 timestamp)
|
|
|
|
{
|
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL (window))
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_enable_synchronized_configure (GdkWindow *window)
|
|
|
|
{
|
|
|
|
GdkWindowObject *private = (GdkWindowObject *)window;
|
|
|
|
|
2010-11-16 11:33:02 +00:00
|
|
|
if (!GDK_IS_WINDOW_IMPL_BROADWAY (private->impl))
|
2010-11-12 12:18:58 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_configure_finished (GdkWindow *window)
|
|
|
|
{
|
|
|
|
if (!WINDOW_IS_TOPLEVEL (window))
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_window_beep (GdkWindow *window)
|
|
|
|
{
|
|
|
|
GdkDisplay *display;
|
|
|
|
|
|
|
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
|
|
|
|
|
|
|
display = GDK_WINDOW_DISPLAY (window);
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
gdk_display_beep (display);
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gdk_window_set_opacity (GdkWindow *window,
|
|
|
|
gdouble opacity)
|
|
|
|
{
|
|
|
|
GdkDisplay *display;
|
2010-11-15 19:08:18 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
|
|
|
|
|
|
|
if (GDK_WINDOW_DESTROYED (window) ||
|
|
|
|
!WINDOW_IS_TOPLEVEL (window))
|
|
|
|
return;
|
|
|
|
|
|
|
|
display = gdk_window_get_display (window);
|
|
|
|
|
|
|
|
if (opacity < 0)
|
|
|
|
opacity = 0;
|
|
|
|
else if (opacity > 1)
|
|
|
|
opacity = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_window_set_composited (GdkWindow *window,
|
|
|
|
gboolean composited)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_window_process_updates_recurse (GdkWindow *window,
|
|
|
|
cairo_region_t *region)
|
|
|
|
{
|
2010-11-15 20:51:32 +00:00
|
|
|
GdkWindowObject *private;
|
2010-11-16 11:33:02 +00:00
|
|
|
GdkWindowImplBroadway *impl;
|
2010-11-15 20:51:32 +00:00
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
_gdk_window_process_updates_recurse (window, region);
|
2010-11-15 20:51:32 +00:00
|
|
|
|
|
|
|
private = (GdkWindowObject *)window;
|
2010-11-16 11:33:02 +00:00
|
|
|
impl = GDK_WINDOW_IMPL_BROADWAY (private->impl);
|
2010-11-15 20:51:32 +00:00
|
|
|
impl->dirty = TRUE;
|
2010-11-18 21:21:16 +00:00
|
|
|
queue_dirty_flush (GDK_DISPLAY_BROADWAY (gdk_window_get_display (window)));
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_before_process_all_updates (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
_gdk_windowing_after_process_all_updates (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-11-15 19:08:18 +00:00
|
|
|
gboolean
|
2010-11-16 11:33:02 +00:00
|
|
|
_gdk_broadway_window_queue_antiexpose (GdkWindow *window,
|
2010-11-15 19:08:18 +00:00
|
|
|
cairo_region_t *area)
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
static void
|
|
|
|
copy_region (cairo_surface_t *surface,
|
|
|
|
cairo_region_t *area,
|
|
|
|
gint dx,
|
|
|
|
gint dy)
|
2010-11-15 19:08:18 +00:00
|
|
|
{
|
2010-11-16 12:16:38 +00:00
|
|
|
cairo_t *cr;
|
2010-11-15 21:11:39 +00:00
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
cr = cairo_create (surface);
|
2010-11-15 21:11:39 +00:00
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
gdk_cairo_region (cr, area);
|
|
|
|
cairo_clip (cr);
|
2010-11-15 21:11:39 +00:00
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
/* NB: This is a self-copy and Cairo doesn't support that yet.
|
|
|
|
* So we do a litle trick.
|
|
|
|
*/
|
|
|
|
cairo_push_group (cr);
|
2010-11-15 21:11:39 +00:00
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
cairo_set_source_surface (cr, surface, dx, dy);
|
|
|
|
cairo_paint (cr);
|
2010-11-15 21:11:39 +00:00
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
cairo_pop_group_to_source (cr);
|
|
|
|
cairo_paint (cr);
|
2010-11-15 21:11:39 +00:00
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
cairo_destroy (cr);
|
|
|
|
}
|
2010-11-15 21:11:39 +00:00
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
void
|
|
|
|
_gdk_broadway_window_translate (GdkWindow *window,
|
|
|
|
cairo_region_t *area,
|
|
|
|
gint dx,
|
|
|
|
gint dy)
|
|
|
|
{
|
|
|
|
GdkWindowObject *private;
|
|
|
|
GdkDrawableImplBroadway *impl;
|
2010-11-16 21:11:53 +00:00
|
|
|
GdkDisplayBroadway *display_broadway;
|
|
|
|
int n_rects, i;
|
|
|
|
BroadwayRect *rects;
|
|
|
|
cairo_rectangle_int_t rect;
|
2010-11-15 21:11:39 +00:00
|
|
|
|
2010-11-16 12:16:38 +00:00
|
|
|
private = (GdkWindowObject *)window;
|
|
|
|
impl = GDK_DRAWABLE_IMPL_BROADWAY (private->impl);
|
|
|
|
|
|
|
|
if (impl->surface)
|
|
|
|
{
|
|
|
|
copy_region (impl->surface, area, dx, dy);
|
|
|
|
if (GDK_WINDOW_IMPL_BROADWAY (impl)->last_synced)
|
|
|
|
{
|
|
|
|
copy_region (impl->last_surface, area, dx, dy);
|
2010-11-16 21:11:53 +00:00
|
|
|
n_rects = cairo_region_num_rectangles (area);
|
|
|
|
rects = g_new (BroadwayRect, n_rects);
|
|
|
|
for (i = 0; i < n_rects; i++)
|
|
|
|
{
|
|
|
|
cairo_region_get_rectangle (area, i, &rect);
|
|
|
|
rects[i].x = rect.x;
|
|
|
|
rects[i].y = rect.y;
|
|
|
|
rects[i].width = rect.width;
|
|
|
|
rects[i].height = rect.height;
|
|
|
|
}
|
|
|
|
display_broadway = GDK_DISPLAY_BROADWAY (gdk_window_get_display (window));
|
2010-11-18 21:21:16 +00:00
|
|
|
broadway_client_copy_rectangles (display_broadway->output,
|
2010-11-16 21:11:53 +00:00
|
|
|
GDK_WINDOW_IMPL_BROADWAY (impl)->id,
|
|
|
|
rects, n_rects, dx, dy);
|
2010-11-18 21:21:16 +00:00
|
|
|
queue_dirty_flush (display_broadway);
|
2010-11-16 21:11:53 +00:00
|
|
|
g_free (rects);
|
2010-11-16 12:16:38 +00:00
|
|
|
}
|
2010-11-15 21:11:39 +00:00
|
|
|
}
|
2010-11-15 19:08:18 +00:00
|
|
|
}
|
|
|
|
|
2010-11-12 12:18:58 +00:00
|
|
|
static void
|
|
|
|
gdk_window_impl_iface_init (GdkWindowImplIface *iface)
|
|
|
|
{
|
2010-11-16 11:33:02 +00:00
|
|
|
iface->show = gdk_window_broadway_show;
|
|
|
|
iface->hide = gdk_window_broadway_hide;
|
|
|
|
iface->withdraw = gdk_window_broadway_withdraw;
|
|
|
|
iface->set_events = gdk_window_broadway_set_events;
|
|
|
|
iface->get_events = gdk_window_broadway_get_events;
|
|
|
|
iface->raise = gdk_window_broadway_raise;
|
|
|
|
iface->lower = gdk_window_broadway_lower;
|
|
|
|
iface->restack_under = gdk_window_broadway_restack_under;
|
|
|
|
iface->restack_toplevel = gdk_window_broadway_restack_toplevel;
|
|
|
|
iface->move_resize = gdk_window_broadway_move_resize;
|
|
|
|
iface->set_background = gdk_window_broadway_set_background;
|
|
|
|
iface->reparent = gdk_window_broadway_reparent;
|
|
|
|
iface->set_device_cursor = gdk_window_broadway_set_device_cursor;
|
|
|
|
iface->get_geometry = gdk_window_broadway_get_geometry;
|
|
|
|
iface->get_root_coords = gdk_window_broadway_get_root_coords;
|
|
|
|
iface->get_device_state = gdk_window_broadway_get_device_state;
|
|
|
|
iface->shape_combine_region = gdk_window_broadway_shape_combine_region;
|
|
|
|
iface->input_shape_combine_region = gdk_window_broadway_input_shape_combine_region;
|
|
|
|
iface->set_static_gravities = gdk_window_broadway_set_static_gravities;
|
|
|
|
iface->queue_antiexpose = _gdk_broadway_window_queue_antiexpose;
|
|
|
|
iface->translate = _gdk_broadway_window_translate;
|
|
|
|
iface->destroy = _gdk_broadway_window_destroy;
|
|
|
|
iface->resize_cairo_surface = gdk_window_broadway_resize_cairo_surface;
|
2010-11-12 12:18:58 +00:00
|
|
|
}
|