Commit e11bbbf1 authored by Matthias Clasen's avatar Matthias Clasen

Rename _gdk_xgrab_ apis to _gdk_x11_window_

parent 566abbad
......@@ -613,14 +613,14 @@ gdk_display_x11_translate_event (GdkEventTranslator *translator,
* will have already flipped the iconified bit off.
*/
if (window)
{
if (GDK_WINDOW_IS_MAPPED (window))
gdk_synthesize_window_state (window,
0,
GDK_WINDOW_STATE_ICONIFIED);
{
if (GDK_WINDOW_IS_MAPPED (window))
gdk_synthesize_window_state (window,
0,
GDK_WINDOW_STATE_ICONIFIED);
_gdk_xgrab_check_unmap (window, xevent->xany.serial);
}
_gdk_x11_window_grab_check_unmap (window, xevent->xany.serial);
}
break;
......
......@@ -128,19 +128,19 @@ _gdk_x11_convert_grab_status (gint status)
return 0;
}
/**
* _gdk_xgrab_check_unmap:
/*
* _gdk_x11_window_grab_check_unmap:
* @window: a #GdkWindow
* @serial: serial from Unmap event (or from NextRequest(display)
* if the unmap is being done by this client.)
*
*
* Checks to see if an unmap request or event causes the current
* grab window to become not viewable, and if so, clear the
* the pointer we keep to it.
**/
void
_gdk_xgrab_check_unmap (GdkWindow *window,
gulong serial)
_gdk_x11_window_grab_check_unmap (GdkWindow *window,
gulong serial)
{
GdkDisplay *display = gdk_window_get_display (window);
GdkDeviceManager *device_manager;
......@@ -160,15 +160,15 @@ _gdk_xgrab_check_unmap (GdkWindow *window,
g_list_free (devices);
}
/**
* _gdk_xgrab_check_destroy:
/*
* _gdk_x11_window_grab_check_destroy:
* @window: a #GdkWindow
*
* Checks to see if window is the current grab window, and if
* so, clear the current grab window.
**/
void
_gdk_xgrab_check_destroy (GdkWindow *window)
_gdk_x11_window_grab_check_destroy (GdkWindow *window)
{
GdkDisplay *display = gdk_window_get_display (window);
GdkDeviceManager *device_manager;
......
......@@ -136,12 +136,12 @@ gboolean _gdk_keymap_key_is_modifier (GdkKeymap *keymap,
void _gdk_x11_initialize_locale (void);
void _gdk_x11_windowing_init (void);
void _gdk_xgrab_check_unmap (GdkWindow *window,
gulong serial);
void _gdk_xgrab_check_destroy (GdkWindow *window);
void _gdk_x11_window_grab_check_unmap (GdkWindow *window,
gulong serial);
void _gdk_x11_window_grab_check_destroy (GdkWindow *window);
gboolean _gdk_x11_display_is_root_window (GdkDisplay *display,
Window xroot_window);
Window xroot_window);
GdkDisplay * _gdk_x11_display_open (const gchar *display_name);
void _gdk_x11_display_make_default (GdkDisplay *display);
......
......@@ -232,22 +232,22 @@ gdk_window_impl_x11_finalize (GObject *object)
{
GdkWindow *wrapper;
GdkWindowImplX11 *impl;
g_return_if_fail (GDK_IS_WINDOW_IMPL_X11 (object));
impl = GDK_WINDOW_IMPL_X11 (object);
wrapper = impl->wrapper;
_gdk_xgrab_check_destroy (wrapper);
_gdk_x11_window_grab_check_destroy (wrapper);
if (!GDK_WINDOW_DESTROYED (wrapper))
{
GdkDisplay *display = GDK_WINDOW_DISPLAY (wrapper);
_gdk_xid_table_remove (display, impl->xid);
if (impl->toplevel && impl->toplevel->focus_window)
_gdk_xid_table_remove (display, impl->toplevel->focus_window);
_gdk_xid_table_remove (display, impl->toplevel->focus_window);
}
g_free (impl->toplevel);
......@@ -1092,13 +1092,13 @@ gdk_x11_window_destroy_notify (GdkWindow *window)
_gdk_window_destroy (window, TRUE);
}
_gdk_xid_table_remove (GDK_WINDOW_DISPLAY (window), GDK_WINDOW_XID (window));
if (window_impl->toplevel && window_impl->toplevel->focus_window)
_gdk_xid_table_remove (GDK_WINDOW_DISPLAY (window), window_impl->toplevel->focus_window);
_gdk_xgrab_check_destroy (window);
_gdk_x11_window_grab_check_destroy (window);
g_object_unref (window);
}
......@@ -1369,8 +1369,8 @@ gdk_window_x11_hide (GdkWindow *window)
* but checking here makes things more consistent if we are
* just doing stuff ourself.
*/
_gdk_xgrab_check_unmap (window,
NextRequest (GDK_WINDOW_XDISPLAY (window)));
_gdk_x11_window_grab_check_unmap (window,
NextRequest (GDK_WINDOW_XDISPLAY (window)));
/* You can't simply unmap toplevel windows. */
switch (window->window_type)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment