forked from AuroraMiddleware/gtk
gdk: gdk_drawable_get_display() => gdk_window_get_display()
This commit is contained in:
parent
2ee8fdb79b
commit
b5097de481
@ -1060,7 +1060,7 @@ gdk_device_grab (GdkDevice *device,
|
|||||||
GdkDisplay *display;
|
GdkDisplay *display;
|
||||||
gulong serial;
|
gulong serial;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
serial = _gdk_windowing_window_get_next_serial (display);
|
serial = _gdk_windowing_window_get_next_serial (display);
|
||||||
|
|
||||||
_gdk_display_add_device_grab (display,
|
_gdk_display_add_device_grab (display,
|
||||||
|
@ -1107,7 +1107,7 @@ singlehead_default_window_get_pointer (GdkWindow *window,
|
|||||||
{
|
{
|
||||||
GdkDisplay *display;
|
GdkDisplay *display;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
return gdk_window_real_window_get_device_position (display,
|
return gdk_window_real_window_get_device_position (display,
|
||||||
display->core_pointer,
|
display->core_pointer,
|
||||||
|
@ -319,7 +319,7 @@ gdk_event_put (const GdkEvent *event)
|
|||||||
g_return_if_fail (event != NULL);
|
g_return_if_fail (event != NULL);
|
||||||
|
|
||||||
if (event->any.window)
|
if (event->any.window)
|
||||||
display = gdk_drawable_get_display (event->any.window);
|
display = gdk_window_get_display (event->any.window);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GDK_NOTE (MULTIHEAD,
|
GDK_NOTE (MULTIHEAD,
|
||||||
@ -1040,9 +1040,9 @@ gdk_event_get_device (const GdkEvent *event)
|
|||||||
"It is most likely synthesized outside Gdk/GTK+\n",
|
"It is most likely synthesized outside Gdk/GTK+\n",
|
||||||
event->type);
|
event->type);
|
||||||
|
|
||||||
display = gdk_drawable_get_display (event->any.window);
|
display = gdk_window_get_display (event->any.window);
|
||||||
device_manager = gdk_display_get_device_manager (display);
|
device_manager = gdk_display_get_device_manager (display);
|
||||||
core_pointer = gdk_device_manager_get_client_pointer (device_manager);
|
core_pointer = gdk_display_get_core_pointer (display);
|
||||||
|
|
||||||
if (event->type == GDK_KEY_PRESS ||
|
if (event->type == GDK_KEY_PRESS ||
|
||||||
event->type == GDK_KEY_RELEASE)
|
event->type == GDK_KEY_RELEASE)
|
||||||
@ -1090,7 +1090,7 @@ gdk_event_request_motions (const GdkEventMotion *event)
|
|||||||
{
|
{
|
||||||
gdk_device_get_state (event->device, event->window, NULL, NULL);
|
gdk_device_get_state (event->device, event->window, NULL, NULL);
|
||||||
|
|
||||||
display = gdk_drawable_get_display (event->window);
|
display = gdk_window_get_display (event->window);
|
||||||
_gdk_display_enable_motion_hints (display, event->device);
|
_gdk_display_enable_motion_hints (display, event->device);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1449,7 +1449,7 @@ gdk_synthesize_window_state (GdkWindow *window,
|
|||||||
{
|
{
|
||||||
case GDK_WINDOW_TOPLEVEL:
|
case GDK_WINDOW_TOPLEVEL:
|
||||||
case GDK_WINDOW_TEMP: /* ? */
|
case GDK_WINDOW_TEMP: /* ? */
|
||||||
gdk_display_put_event (gdk_drawable_get_display (window), &temp_event);
|
gdk_display_put_event (gdk_window_get_display (window), &temp_event);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GDK_WINDOW_FOREIGN:
|
case GDK_WINDOW_FOREIGN:
|
||||||
|
@ -498,7 +498,7 @@ gdk_offscreen_window_hide (GdkWindow *window)
|
|||||||
offscreen = GDK_OFFSCREEN_WINDOW (private->impl);
|
offscreen = GDK_OFFSCREEN_WINDOW (private->impl);
|
||||||
|
|
||||||
/* May need to break grabs on children */
|
/* May need to break grabs on children */
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
/* TODO: This needs updating to the new grab world */
|
/* TODO: This needs updating to the new grab world */
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -509,7 +509,7 @@ gdk_window_finalize (GObject *object)
|
|||||||
GdkWindowObject *obj = (GdkWindowObject *) object;
|
GdkWindowObject *obj = (GdkWindowObject *) object;
|
||||||
GdkDeviceManager *device_manager;
|
GdkDeviceManager *device_manager;
|
||||||
|
|
||||||
device_manager = gdk_display_get_device_manager (gdk_drawable_get_display (GDK_DRAWABLE (window)));
|
device_manager = gdk_display_get_device_manager (gdk_window_get_display (window));
|
||||||
g_signal_handlers_disconnect_by_func (device_manager, device_removed_cb, window);
|
g_signal_handlers_disconnect_by_func (device_manager, device_removed_cb, window);
|
||||||
|
|
||||||
if (!GDK_WINDOW_DESTROYED (window))
|
if (!GDK_WINDOW_DESTROYED (window))
|
||||||
@ -1426,7 +1426,7 @@ gdk_window_new (GdkWindow *parent,
|
|||||||
private->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
|
private->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
|
||||||
(GDestroyNotify) gdk_cursor_unref);
|
(GDestroyNotify) gdk_cursor_unref);
|
||||||
|
|
||||||
device_manager = gdk_display_get_device_manager (gdk_drawable_get_display (GDK_DRAWABLE (parent)));
|
device_manager = gdk_display_get_device_manager (gdk_window_get_display (parent));
|
||||||
g_signal_connect (device_manager, "device-removed",
|
g_signal_connect (device_manager, "device-removed",
|
||||||
G_CALLBACK (device_removed_cb), window);
|
G_CALLBACK (device_removed_cb), window);
|
||||||
|
|
||||||
@ -1937,7 +1937,7 @@ _gdk_window_destroy_hierarchy (GdkWindow *window,
|
|||||||
if (GDK_WINDOW_DESTROYED (window))
|
if (GDK_WINDOW_DESTROYED (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (GDK_DRAWABLE (window));
|
display = gdk_window_get_display (window);
|
||||||
screen = gdk_window_get_screen (window);
|
screen = gdk_window_get_screen (window);
|
||||||
temp_window = g_object_get_qdata (G_OBJECT (screen), quark_pointer_window);
|
temp_window = g_object_get_qdata (G_OBJECT (screen), quark_pointer_window);
|
||||||
if (temp_window == window)
|
if (temp_window == window)
|
||||||
@ -4077,7 +4077,7 @@ gdk_window_process_updates_internal (GdkWindow *window)
|
|||||||
if (debug_updates)
|
if (debug_updates)
|
||||||
{
|
{
|
||||||
/* Make sure we see the red invalid area before redrawing. */
|
/* Make sure we see the red invalid area before redrawing. */
|
||||||
gdk_display_sync (gdk_drawable_get_display (window));
|
gdk_display_sync (gdk_window_get_display (window));
|
||||||
g_usleep (70000);
|
g_usleep (70000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5077,7 +5077,7 @@ gdk_window_get_pointer (GdkWindow *window,
|
|||||||
|
|
||||||
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
return gdk_window_get_device_position (window, display->core_pointer, x, y, mask);
|
return gdk_window_get_device_position (window, display->core_pointer, x, y, mask);
|
||||||
}
|
}
|
||||||
@ -5115,7 +5115,7 @@ gdk_window_get_device_position (GdkWindow *window,
|
|||||||
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
||||||
g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
|
g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
child = display->device_hooks->window_get_device_position (display, device, window,
|
child = display->device_hooks->window_get_device_position (display, device, window,
|
||||||
&tmp_x, &tmp_y, &tmp_mask);
|
&tmp_x, &tmp_y, &tmp_mask);
|
||||||
|
|
||||||
@ -5802,7 +5802,7 @@ gdk_window_hide (GdkWindow *window)
|
|||||||
GList *devices, *d;
|
GList *devices, *d;
|
||||||
|
|
||||||
/* May need to break grabs on children */
|
/* May need to break grabs on children */
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
device_manager = gdk_display_get_device_manager (display);
|
device_manager = gdk_display_get_device_manager (display);
|
||||||
|
|
||||||
/* Get all devices */
|
/* Get all devices */
|
||||||
@ -5924,7 +5924,7 @@ gdk_window_set_events (GdkWindow *window,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* If motion hint is disabled, enable motion events again */
|
/* If motion hint is disabled, enable motion events again */
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
if ((private->event_mask & GDK_POINTER_MOTION_HINT_MASK) &&
|
if ((private->event_mask & GDK_POINTER_MOTION_HINT_MASK) &&
|
||||||
!(event_mask & GDK_POINTER_MOTION_HINT_MASK))
|
!(event_mask & GDK_POINTER_MOTION_HINT_MASK))
|
||||||
{
|
{
|
||||||
@ -6004,7 +6004,7 @@ gdk_window_set_device_events (GdkWindow *window,
|
|||||||
private = (GdkWindowObject *) window;
|
private = (GdkWindowObject *) window;
|
||||||
|
|
||||||
/* If motion hint is disabled, enable motion events again */
|
/* If motion hint is disabled, enable motion events again */
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
if ((private->event_mask & GDK_POINTER_MOTION_HINT_MASK) &&
|
if ((private->event_mask & GDK_POINTER_MOTION_HINT_MASK) &&
|
||||||
!(event_mask & GDK_POINTER_MOTION_HINT_MASK))
|
!(event_mask & GDK_POINTER_MOTION_HINT_MASK))
|
||||||
_gdk_display_enable_motion_hints (display, device);
|
_gdk_display_enable_motion_hints (display, device);
|
||||||
@ -6837,7 +6837,7 @@ gdk_window_set_cursor (GdkWindow *window,
|
|||||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||||
|
|
||||||
private = (GdkWindowObject *) window;
|
private = (GdkWindowObject *) window;
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (private->cursor)
|
if (private->cursor)
|
||||||
{
|
{
|
||||||
@ -6915,7 +6915,7 @@ gdk_window_set_device_cursor (GdkWindow *window,
|
|||||||
g_return_if_fail (GDK_IS_DEVICE (device));
|
g_return_if_fail (GDK_IS_DEVICE (device));
|
||||||
|
|
||||||
private = (GdkWindowObject *) window;
|
private = (GdkWindowObject *) window;
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (!cursor)
|
if (!cursor)
|
||||||
g_hash_table_remove (private->device_cursor, device);
|
g_hash_table_remove (private->device_cursor, device);
|
||||||
@ -7628,7 +7628,7 @@ gdk_window_set_composited (GdkWindow *window,
|
|||||||
if (composited)
|
if (composited)
|
||||||
gdk_window_ensure_native (window);
|
gdk_window_ensure_native (window);
|
||||||
|
|
||||||
display = gdk_drawable_get_display (GDK_DRAWABLE (window));
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (!gdk_display_supports_composite (display) && composited)
|
if (!gdk_display_supports_composite (display) && composited)
|
||||||
{
|
{
|
||||||
@ -7884,7 +7884,7 @@ _gdk_window_add_damage (GdkWindow *toplevel,
|
|||||||
event.expose.send_event = FALSE;
|
event.expose.send_event = FALSE;
|
||||||
event.expose.region = damaged_region;
|
event.expose.region = damaged_region;
|
||||||
cairo_region_get_extents (event.expose.region, &event.expose.area);
|
cairo_region_get_extents (event.expose.region, &event.expose.area);
|
||||||
display = gdk_drawable_get_display (event.expose.window);
|
display = gdk_window_get_display (event.expose.window);
|
||||||
_gdk_event_queue_append (display, gdk_event_copy (&event));
|
_gdk_event_queue_append (display, gdk_event_copy (&event));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8204,7 +8204,7 @@ gdk_window_beep (GdkWindow *window)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
toplevel = get_event_toplevel (window);
|
toplevel = get_event_toplevel (window);
|
||||||
display = gdk_drawable_get_display (GDK_DRAWABLE (window));
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (toplevel && !gdk_window_is_offscreen ((GdkWindowObject *)toplevel))
|
if (toplevel && !gdk_window_is_offscreen ((GdkWindowObject *)toplevel))
|
||||||
_gdk_windowing_window_beep (toplevel);
|
_gdk_windowing_window_beep (toplevel);
|
||||||
@ -8478,12 +8478,12 @@ _gdk_make_event (GdkWindow *window,
|
|||||||
if (event_in_queue)
|
if (event_in_queue)
|
||||||
{
|
{
|
||||||
if (before_event)
|
if (before_event)
|
||||||
_gdk_event_queue_insert_before (gdk_drawable_get_display (window), event_in_queue, event);
|
_gdk_event_queue_insert_before (gdk_window_get_display (window), event_in_queue, event);
|
||||||
else
|
else
|
||||||
_gdk_event_queue_insert_after (gdk_drawable_get_display (window), event_in_queue, event);
|
_gdk_event_queue_insert_after (gdk_window_get_display (window), event_in_queue, event);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_gdk_event_queue_append (gdk_drawable_get_display (window), event);
|
_gdk_event_queue_append (gdk_window_get_display (window), event);
|
||||||
|
|
||||||
return event;
|
return event;
|
||||||
}
|
}
|
||||||
@ -8899,7 +8899,7 @@ gdk_pointer_grab (GdkWindow * window,
|
|||||||
native = gdk_window_get_toplevel (native);
|
native = gdk_window_get_toplevel (native);
|
||||||
}
|
}
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
serial = _gdk_windowing_window_get_next_serial (display);
|
serial = _gdk_windowing_window_get_next_serial (display);
|
||||||
device_manager = gdk_display_get_device_manager (display);
|
device_manager = gdk_display_get_device_manager (display);
|
||||||
@ -9004,7 +9004,7 @@ gdk_keyboard_grab (GdkWindow *window,
|
|||||||
native = gdk_window_get_toplevel (native);
|
native = gdk_window_get_toplevel (native);
|
||||||
}
|
}
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
serial = _gdk_windowing_window_get_next_serial (display);
|
serial = _gdk_windowing_window_get_next_serial (display);
|
||||||
device_manager = gdk_display_get_device_manager (display);
|
device_manager = gdk_display_get_device_manager (display);
|
||||||
@ -9081,7 +9081,7 @@ do_synthesize_crossing_event (gpointer data)
|
|||||||
if (GDK_WINDOW_DESTROYED (changed_toplevel))
|
if (GDK_WINDOW_DESTROYED (changed_toplevel))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (changed_toplevel);
|
display = gdk_window_get_display (changed_toplevel);
|
||||||
serial = _gdk_windowing_window_get_next_serial (display);
|
serial = _gdk_windowing_window_get_next_serial (display);
|
||||||
g_hash_table_iter_init (&iter, display->pointers_info);
|
g_hash_table_iter_init (&iter, display->pointers_info);
|
||||||
|
|
||||||
@ -9131,7 +9131,7 @@ _gdk_synthesize_crossing_events_for_geometry_change (GdkWindow *changed_window)
|
|||||||
if (_gdk_native_windows)
|
if (_gdk_native_windows)
|
||||||
return; /* We use the native crossing events if all native */
|
return; /* We use the native crossing events if all native */
|
||||||
|
|
||||||
display = gdk_drawable_get_display (changed_window);
|
display = gdk_window_get_display (changed_window);
|
||||||
|
|
||||||
toplevel = get_event_toplevel (changed_window);
|
toplevel = get_event_toplevel (changed_window);
|
||||||
toplevel_priv = (GdkWindowObject *) toplevel;
|
toplevel_priv = (GdkWindowObject *) toplevel;
|
||||||
@ -9442,7 +9442,7 @@ proxy_button_event (GdkEvent *source_event,
|
|||||||
gdk_event_get_state (source_event, &state);
|
gdk_event_get_state (source_event, &state);
|
||||||
time_ = gdk_event_get_time (source_event);
|
time_ = gdk_event_get_time (source_event);
|
||||||
device = gdk_event_get_device (source_event);
|
device = gdk_event_get_device (source_event);
|
||||||
display = gdk_drawable_get_display (source_event->any.window);
|
display = gdk_window_get_display (source_event->any.window);
|
||||||
toplevel_window = convert_native_coords_to_toplevel (event_window,
|
toplevel_window = convert_native_coords_to_toplevel (event_window,
|
||||||
toplevel_x, toplevel_y,
|
toplevel_x, toplevel_y,
|
||||||
&toplevel_x, &toplevel_y);
|
&toplevel_x, &toplevel_y);
|
||||||
@ -9900,7 +9900,7 @@ _gdk_window_get_input_window_for_event (GdkWindow *native_window,
|
|||||||
toplevel_x = x;
|
toplevel_x = x;
|
||||||
toplevel_y = y;
|
toplevel_y = y;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (native_window);
|
display = gdk_window_get_display (native_window);
|
||||||
toplevel_window = convert_native_coords_to_toplevel (native_window,
|
toplevel_window = convert_native_coords_to_toplevel (native_window,
|
||||||
toplevel_x, toplevel_y,
|
toplevel_x, toplevel_y,
|
||||||
&toplevel_x, &toplevel_y);
|
&toplevel_x, &toplevel_y);
|
||||||
|
@ -268,7 +268,7 @@ gdk_device_core_query_state (GdkDevice *device,
|
|||||||
if (!found_window)
|
if (!found_window)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (root_window)
|
if (root_window)
|
||||||
*root_window = _gdk_root;
|
*root_window = _gdk_root;
|
||||||
|
@ -366,7 +366,7 @@ generate_motion_event (GdkWindow *window)
|
|||||||
nswindow = ((GdkWindowImplQuartz *)private->impl)->toplevel;
|
nswindow = ((GdkWindowImplQuartz *)private->impl)->toplevel;
|
||||||
view = (GdkQuartzView *)[nswindow contentView];
|
view = (GdkQuartzView *)[nswindow contentView];
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
screen_point = [NSEvent mouseLocation];
|
screen_point = [NSEvent mouseLocation];
|
||||||
|
|
||||||
@ -540,7 +540,7 @@ find_toplevel_for_keyboard_event (NSEvent *nsevent)
|
|||||||
view = (GdkQuartzView *)[[nsevent window] contentView];
|
view = (GdkQuartzView *)[[nsevent window] contentView];
|
||||||
window = [view gdkWindow];
|
window = [view gdkWindow];
|
||||||
|
|
||||||
display = gdk_drawable_get_display (GDK_DRAWABLE (window));
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
device_manager = gdk_display_get_device_manager (display);
|
device_manager = gdk_display_get_device_manager (display);
|
||||||
list = gdk_device_manager_list_devices (device_manager,
|
list = gdk_device_manager_list_devices (device_manager,
|
||||||
@ -583,7 +583,7 @@ find_toplevel_for_mouse_event (NSEvent *nsevent,
|
|||||||
view = (GdkQuartzView *)[[nsevent window] contentView];
|
view = (GdkQuartzView *)[[nsevent window] contentView];
|
||||||
toplevel = [view gdkWindow];
|
toplevel = [view gdkWindow];
|
||||||
|
|
||||||
display = gdk_drawable_get_display (toplevel);
|
display = gdk_window_get_display (toplevel);
|
||||||
private = GDK_WINDOW_OBJECT (toplevel);
|
private = GDK_WINDOW_OBJECT (toplevel);
|
||||||
|
|
||||||
event_type = [nsevent type];
|
event_type = [nsevent type];
|
||||||
|
@ -145,7 +145,7 @@ static void
|
|||||||
check_grab_unmap (GdkWindow *window)
|
check_grab_unmap (GdkWindow *window)
|
||||||
{
|
{
|
||||||
GList *list, *l;
|
GList *list, *l;
|
||||||
GdkDisplay *display = gdk_drawable_get_display (window);
|
GdkDisplay *display = gdk_window_get_display (window);
|
||||||
GdkDeviceManager *device_manager;
|
GdkDeviceManager *device_manager;
|
||||||
|
|
||||||
device_manager = gdk_display_get_device_manager (display);
|
device_manager = gdk_display_get_device_manager (display);
|
||||||
@ -163,7 +163,7 @@ static void
|
|||||||
check_grab_destroy (GdkWindow *window)
|
check_grab_destroy (GdkWindow *window)
|
||||||
{
|
{
|
||||||
GList *list, *l;
|
GList *list, *l;
|
||||||
GdkDisplay *display = gdk_drawable_get_display (window);
|
GdkDisplay *display = gdk_window_get_display (window);
|
||||||
GdkDeviceManager *device_manager;
|
GdkDeviceManager *device_manager;
|
||||||
|
|
||||||
/* Make sure there is no lasting grab in this native window */
|
/* Make sure there is no lasting grab in this native window */
|
||||||
|
@ -888,7 +888,7 @@ _gdk_input_other_event (GdkEvent *event,
|
|||||||
window = _gdk_root;
|
window = _gdk_root;
|
||||||
|
|
||||||
g_object_ref (window);
|
g_object_ref (window);
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
GDK_NOTE (EVENTS_OR_INPUT,
|
GDK_NOTE (EVENTS_OR_INPUT,
|
||||||
g_print ("_gdk_input_other_event: window=%p %+d%+d\n",
|
g_print ("_gdk_input_other_event: window=%p %+d%+d\n",
|
||||||
|
@ -248,7 +248,7 @@ gdk_device_core_query_state (GdkDevice *device,
|
|||||||
int xroot_x, xroot_y, xwin_x, xwin_y;
|
int xroot_x, xroot_y, xwin_x, xwin_y;
|
||||||
unsigned int xmask;
|
unsigned int xmask;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (!XQueryPointer (GDK_WINDOW_XDISPLAY (window),
|
if (!XQueryPointer (GDK_WINDOW_XDISPLAY (window),
|
||||||
GDK_WINDOW_XID (window),
|
GDK_WINDOW_XID (window),
|
||||||
|
@ -307,7 +307,7 @@ gdk_device_xi2_query_state (GdkDevice *device,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
priv = GDK_DEVICE_XI2 (device)->priv;
|
priv = GDK_DEVICE_XI2 (device)->priv;
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (!XIQueryPointer (GDK_WINDOW_XDISPLAY (window),
|
if (!XIQueryPointer (GDK_WINDOW_XDISPLAY (window),
|
||||||
priv->device_id,
|
priv->device_id,
|
||||||
|
@ -453,7 +453,7 @@ gdk_device_manager_xi_translate_event (GdkEventTranslator *translator,
|
|||||||
event->button.button = xdbe->button;
|
event->button.button = xdbe->button;
|
||||||
|
|
||||||
if (event->button.type == GDK_BUTTON_PRESS)
|
if (event->button.type == GDK_BUTTON_PRESS)
|
||||||
_gdk_event_button_generate (gdk_drawable_get_display (event->button.window),
|
_gdk_event_button_generate (gdk_window_get_display (event->button.window),
|
||||||
event);
|
event);
|
||||||
|
|
||||||
GDK_NOTE (EVENTS,
|
GDK_NOTE (EVENTS,
|
||||||
|
@ -286,8 +286,8 @@ gdk_drag_context_find (GdkDisplay *display,
|
|||||||
context = (GdkDragContext *)tmp_list->data;
|
context = (GdkDragContext *)tmp_list->data;
|
||||||
private = PRIVATE_DATA (context);
|
private = PRIVATE_DATA (context);
|
||||||
|
|
||||||
if ((context->source_window && gdk_drawable_get_display (context->source_window) != display) ||
|
if ((context->source_window && gdk_window_get_display (context->source_window) != display) ||
|
||||||
(context->dest_window && gdk_drawable_get_display (context->dest_window) != display))
|
(context->dest_window && gdk_window_get_display (context->dest_window) != display))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
context_dest_xid = context->dest_window ?
|
context_dest_xid = context->dest_window ?
|
||||||
@ -1919,7 +1919,7 @@ motif_drag_status (GdkEvent *event,
|
|||||||
GDK_NOTE (DND,
|
GDK_NOTE (DND,
|
||||||
g_message ("Motif status message: flags %x", flags));
|
g_message ("Motif status message: flags %x", flags));
|
||||||
|
|
||||||
display = gdk_drawable_get_display (event->any.window);
|
display = gdk_window_get_display (event->any.window);
|
||||||
if (!display)
|
if (!display)
|
||||||
return GDK_FILTER_REMOVE;
|
return GDK_FILTER_REMOVE;
|
||||||
|
|
||||||
@ -2137,7 +2137,7 @@ xdnd_status_filter (GdkXEvent *xev,
|
|||||||
g_message ("XdndStatus: dest_window: %#x action: %ld",
|
g_message ("XdndStatus: dest_window: %#x action: %ld",
|
||||||
dest_window, action));
|
dest_window, action));
|
||||||
|
|
||||||
display = gdk_drawable_get_display (event->any.window);
|
display = gdk_window_get_display (event->any.window);
|
||||||
context = gdk_drag_context_find (display, TRUE, xevent->xclient.window, dest_window);
|
context = gdk_drag_context_find (display, TRUE, xevent->xclient.window, dest_window);
|
||||||
|
|
||||||
if (context)
|
if (context)
|
||||||
@ -2186,7 +2186,7 @@ xdnd_finished_filter (GdkXEvent *xev,
|
|||||||
GDK_NOTE (DND,
|
GDK_NOTE (DND,
|
||||||
g_message ("XdndFinished: dest_window: %#x", dest_window));
|
g_message ("XdndFinished: dest_window: %#x", dest_window));
|
||||||
|
|
||||||
display = gdk_drawable_get_display (event->any.window);
|
display = gdk_window_get_display (event->any.window);
|
||||||
context = gdk_drag_context_find (display, TRUE, xevent->xclient.window, dest_window);
|
context = gdk_drag_context_find (display, TRUE, xevent->xclient.window, dest_window);
|
||||||
|
|
||||||
if (context)
|
if (context)
|
||||||
@ -3185,7 +3185,7 @@ gdk_drag_begin (GdkWindow *window,
|
|||||||
|
|
||||||
new_context->actions = 0;
|
new_context->actions = 0;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (GDK_DRAWABLE (window));
|
display = gdk_window_get_display (window);
|
||||||
device_manager = gdk_display_get_device_manager (display);
|
device_manager = gdk_display_get_device_manager (display);
|
||||||
device = gdk_device_manager_get_client_pointer (device_manager);
|
device = gdk_device_manager_get_client_pointer (device_manager);
|
||||||
gdk_drag_context_set_device (new_context, device);
|
gdk_drag_context_set_device (new_context, device);
|
||||||
@ -3942,7 +3942,7 @@ gdk_window_register_dnd (GdkWindow *window)
|
|||||||
static const gulong xdnd_version = 5;
|
static const gulong xdnd_version = 5;
|
||||||
MotifDragReceiverInfo info;
|
MotifDragReceiverInfo info;
|
||||||
Atom motif_drag_receiver_info_atom;
|
Atom motif_drag_receiver_info_atom;
|
||||||
GdkDisplay *display = gdk_drawable_get_display (window);
|
GdkDisplay *display = gdk_window_get_display (window);
|
||||||
|
|
||||||
g_return_if_fail (window != NULL);
|
g_return_if_fail (window != NULL);
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ gdk_x11_drawable_get_xid (GdkDrawable *drawable)
|
|||||||
* this function returns. This is required because the returned XID
|
* this function returns. This is required because the returned XID
|
||||||
* for this window must be valid immediately, even with another
|
* for this window must be valid immediately, even with another
|
||||||
* connection to the Xserver */
|
* connection to the Xserver */
|
||||||
gdk_display_sync (gdk_drawable_get_display (window));
|
gdk_display_sync (gdk_window_get_display (window));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GDK_WINDOW_IS_X11 (window))
|
if (!GDK_WINDOW_IS_X11 (window))
|
||||||
|
@ -192,7 +192,7 @@ void
|
|||||||
_gdk_xgrab_check_unmap (GdkWindow *window,
|
_gdk_xgrab_check_unmap (GdkWindow *window,
|
||||||
gulong serial)
|
gulong serial)
|
||||||
{
|
{
|
||||||
GdkDisplay *display = gdk_drawable_get_display (window);
|
GdkDisplay *display = gdk_window_get_display (window);
|
||||||
GdkDeviceManager *device_manager;
|
GdkDeviceManager *device_manager;
|
||||||
GList *devices, *d;
|
GList *devices, *d;
|
||||||
|
|
||||||
@ -220,7 +220,7 @@ _gdk_xgrab_check_unmap (GdkWindow *window,
|
|||||||
void
|
void
|
||||||
_gdk_xgrab_check_destroy (GdkWindow *window)
|
_gdk_xgrab_check_destroy (GdkWindow *window)
|
||||||
{
|
{
|
||||||
GdkDisplay *display = gdk_drawable_get_display (window);
|
GdkDisplay *display = gdk_window_get_display (window);
|
||||||
GdkDeviceManager *device_manager;
|
GdkDeviceManager *device_manager;
|
||||||
GdkDeviceGrabInfo *grab;
|
GdkDeviceGrabInfo *grab;
|
||||||
GList *devices, *d;
|
GList *devices, *d;
|
||||||
|
@ -563,7 +563,7 @@ gdk_property_get (GdkWindow *window,
|
|||||||
if (GDK_WINDOW_DESTROYED (window))
|
if (GDK_WINDOW_DESTROYED (window))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
|
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
|
||||||
if (type == GDK_NONE)
|
if (type == GDK_NONE)
|
||||||
xtype = AnyPropertyType;
|
xtype = AnyPropertyType;
|
||||||
@ -703,7 +703,7 @@ gdk_property_change (GdkWindow *window,
|
|||||||
|
|
||||||
gdk_window_ensure_native (window);
|
gdk_window_ensure_native (window);
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
|
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
|
||||||
xtype = gdk_x11_atom_to_xatom_for_display (display, type);
|
xtype = gdk_x11_atom_to_xatom_for_display (display, type);
|
||||||
xwindow = GDK_WINDOW_XID (window);
|
xwindow = GDK_WINDOW_XID (window);
|
||||||
|
@ -83,7 +83,7 @@ _gdk_selection_filter_clear_event (XSelectionClearEvent *event)
|
|||||||
{
|
{
|
||||||
OwnerInfo *info = tmp_list->data;
|
OwnerInfo *info = tmp_list->data;
|
||||||
|
|
||||||
if (gdk_drawable_get_display (info->owner) == display &&
|
if (gdk_window_get_display (info->owner) == display &&
|
||||||
info->selection == gdk_x11_xatom_to_atom_for_display (display, event->selection))
|
info->selection == gdk_x11_xatom_to_atom_for_display (display, event->selection))
|
||||||
{
|
{
|
||||||
if ((GDK_DRAWABLE_XID (info->owner) == event->window &&
|
if ((GDK_DRAWABLE_XID (info->owner) == event->window &&
|
||||||
|
@ -127,7 +127,7 @@ gdk_test_simulate_key (GdkWindow *window,
|
|||||||
xev.y_root = 0;
|
xev.y_root = 0;
|
||||||
xev.state = modifiers;
|
xev.state = modifiers;
|
||||||
xev.keycode = 0;
|
xev.keycode = 0;
|
||||||
success = gdk_keymap_get_entries_for_keyval (gdk_keymap_get_for_display (gdk_drawable_get_display (window)), keyval, &keys, &n_keys);
|
success = gdk_keymap_get_entries_for_keyval (gdk_keymap_get_for_display (gdk_window_get_display (window)), keyval, &keys, &n_keys);
|
||||||
success &= n_keys > 0;
|
success &= n_keys > 0;
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
|
@ -504,7 +504,7 @@ _gdk_windowing_window_init (GdkScreen * screen)
|
|||||||
static void
|
static void
|
||||||
set_wm_protocols (GdkWindow *window)
|
set_wm_protocols (GdkWindow *window)
|
||||||
{
|
{
|
||||||
GdkDisplay *display = gdk_drawable_get_display (window);
|
GdkDisplay *display = gdk_window_get_display (window);
|
||||||
Atom protocols[4];
|
Atom protocols[4];
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
@ -623,7 +623,7 @@ setup_toplevel_window (GdkWindow *window,
|
|||||||
{
|
{
|
||||||
GdkWindowObject *obj = (GdkWindowObject *)window;
|
GdkWindowObject *obj = (GdkWindowObject *)window;
|
||||||
GdkToplevelX11 *toplevel = _gdk_x11_window_get_toplevel (window);
|
GdkToplevelX11 *toplevel = _gdk_x11_window_get_toplevel (window);
|
||||||
GdkDisplay *display = gdk_drawable_get_display (window);
|
GdkDisplay *display = gdk_window_get_display (window);
|
||||||
Display *xdisplay = GDK_WINDOW_XDISPLAY (window);
|
Display *xdisplay = GDK_WINDOW_XDISPLAY (window);
|
||||||
XID xid = GDK_WINDOW_XID (window);
|
XID xid = GDK_WINDOW_XID (window);
|
||||||
GdkScreenX11 *screen_x11 = GDK_SCREEN_X11 (GDK_WINDOW_SCREEN (parent));
|
GdkScreenX11 *screen_x11 = GDK_SCREEN_X11 (GDK_WINDOW_SCREEN (parent));
|
||||||
@ -1354,7 +1354,7 @@ gdk_window_x11_show (GdkWindow *window, gboolean already_mapped)
|
|||||||
|
|
||||||
if (WINDOW_IS_TOPLEVEL (window))
|
if (WINDOW_IS_TOPLEVEL (window))
|
||||||
{
|
{
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
display_x11 = GDK_DISPLAY_X11 (display);
|
display_x11 = GDK_DISPLAY_X11 (display);
|
||||||
toplevel = _gdk_x11_window_get_toplevel (window);
|
toplevel = _gdk_x11_window_get_toplevel (window);
|
||||||
|
|
||||||
@ -1788,7 +1788,7 @@ move_to_current_desktop (GdkWindow *window)
|
|||||||
gulong *current_desktop;
|
gulong *current_desktop;
|
||||||
GdkDisplay *display;
|
GdkDisplay *display;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
/* Get current desktop, then set it; this is a race, but not
|
/* Get current desktop, then set it; this is a race, but not
|
||||||
* one that matters much in practice.
|
* one that matters much in practice.
|
||||||
@ -1910,7 +1910,7 @@ gdk_window_set_type_hint (GdkWindow *window,
|
|||||||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
switch (hint)
|
switch (hint)
|
||||||
{
|
{
|
||||||
@ -1996,7 +1996,7 @@ gdk_window_get_type_hint (GdkWindow *window)
|
|||||||
|
|
||||||
type = GDK_WINDOW_TYPE_HINT_NORMAL;
|
type = GDK_WINDOW_TYPE_HINT_NORMAL;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (XGetWindowProperty (GDK_DISPLAY_XDISPLAY (display), GDK_WINDOW_XID (window),
|
if (XGetWindowProperty (GDK_DISPLAY_XDISPLAY (display), GDK_WINDOW_XID (window),
|
||||||
gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_WINDOW_TYPE"),
|
gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_WINDOW_TYPE"),
|
||||||
@ -2512,7 +2512,7 @@ gdk_window_set_title (GdkWindow *window,
|
|||||||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
xdisplay = GDK_DISPLAY_XDISPLAY (display);
|
xdisplay = GDK_DISPLAY_XDISPLAY (display);
|
||||||
xwindow = GDK_WINDOW_XID (window);
|
xwindow = GDK_WINDOW_XID (window);
|
||||||
|
|
||||||
@ -2556,7 +2556,7 @@ gdk_window_set_role (GdkWindow *window,
|
|||||||
{
|
{
|
||||||
GdkDisplay *display;
|
GdkDisplay *display;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (GDK_WINDOW_DESTROYED (window) ||
|
if (GDK_WINDOW_DESTROYED (window) ||
|
||||||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
||||||
@ -2590,7 +2590,7 @@ gdk_window_set_startup_id (GdkWindow *window,
|
|||||||
|
|
||||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (GDK_WINDOW_DESTROYED (window) ||
|
if (GDK_WINDOW_DESTROYED (window) ||
|
||||||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
||||||
@ -2903,7 +2903,7 @@ gdk_window_get_frame_extents (GdkWindow *window,
|
|||||||
|
|
||||||
gdk_error_trap_push();
|
gdk_error_trap_push();
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
xwindow = GDK_WINDOW_XID (window);
|
xwindow = GDK_WINDOW_XID (window);
|
||||||
|
|
||||||
/* first try: use _NET_FRAME_EXTENTS */
|
/* first try: use _NET_FRAME_EXTENTS */
|
||||||
@ -3106,7 +3106,7 @@ gdk_window_x11_get_device_state (GdkWindow *window,
|
|||||||
int winy = 0;
|
int winy = 0;
|
||||||
unsigned int xmask = 0;
|
unsigned int xmask = 0;
|
||||||
|
|
||||||
_gdk_windowing_get_device_state (gdk_drawable_get_display (window), device,
|
_gdk_windowing_get_device_state (gdk_window_get_display (window), device,
|
||||||
&screen, &rootx, &rooty, &xmask);
|
&screen, &rootx, &rooty, &xmask);
|
||||||
gdk_window_get_origin (window, &originx, &originy);
|
gdk_window_get_origin (window, &originx, &originy);
|
||||||
winx = rootx - originx;
|
winx = rootx - originx;
|
||||||
@ -3340,7 +3340,7 @@ gdk_window_x11_set_events (GdkWindow *window,
|
|||||||
if (GDK_WINDOW_XID (window) != GDK_WINDOW_XROOTWIN (window))
|
if (GDK_WINDOW_XID (window) != GDK_WINDOW_XROOTWIN (window))
|
||||||
xevent_mask = StructureNotifyMask | PropertyChangeMask;
|
xevent_mask = StructureNotifyMask | PropertyChangeMask;
|
||||||
|
|
||||||
display_x11 = GDK_DISPLAY_X11 (gdk_drawable_get_display (window));
|
display_x11 = GDK_DISPLAY_X11 (gdk_window_get_display (window));
|
||||||
gdk_event_source_select_events ((GdkEventSource *) display_x11->event_source,
|
gdk_event_source_select_events ((GdkEventSource *) display_x11->event_source,
|
||||||
GDK_WINDOW_XWINDOW (window), event_mask,
|
GDK_WINDOW_XWINDOW (window), event_mask,
|
||||||
xevent_mask);
|
xevent_mask);
|
||||||
@ -3625,7 +3625,7 @@ gdk_x11_window_set_user_time (GdkWindow *window,
|
|||||||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
display_x11 = GDK_DISPLAY_X11 (display);
|
display_x11 = GDK_DISPLAY_X11 (display);
|
||||||
toplevel = _gdk_x11_window_get_toplevel (window);
|
toplevel = _gdk_x11_window_get_toplevel (window);
|
||||||
|
|
||||||
@ -3797,7 +3797,7 @@ gdk_window_set_icon_list (GdkWindow *window,
|
|||||||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
l = pixbufs;
|
l = pixbufs;
|
||||||
size = 0;
|
size = 0;
|
||||||
@ -3917,7 +3917,7 @@ gdk_window_set_icon_name (GdkWindow *window,
|
|||||||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
g_object_set_qdata (G_OBJECT (window), g_quark_from_static_string ("gdk-icon-name-set"),
|
g_object_set_qdata (G_OBJECT (window), g_quark_from_static_string ("gdk-icon-name-set"),
|
||||||
GUINT_TO_POINTER (name != NULL));
|
GUINT_TO_POINTER (name != NULL));
|
||||||
@ -4390,7 +4390,7 @@ gdk_window_set_group (GdkWindow *window,
|
|||||||
toplevel = _gdk_x11_window_get_toplevel (window);
|
toplevel = _gdk_x11_window_get_toplevel (window);
|
||||||
|
|
||||||
if (leader == NULL)
|
if (leader == NULL)
|
||||||
leader = gdk_display_get_default_group (gdk_drawable_get_display (window));
|
leader = gdk_display_get_default_group (gdk_window_get_display (window));
|
||||||
|
|
||||||
if (toplevel->group_leader != leader)
|
if (toplevel->group_leader != leader)
|
||||||
{
|
{
|
||||||
@ -4417,7 +4417,7 @@ gdk_window_get_mwm_hints (GdkWindow *window)
|
|||||||
if (GDK_WINDOW_DESTROYED (window))
|
if (GDK_WINDOW_DESTROYED (window))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
hints_atom = gdk_x11_get_xatom_by_name_for_display (display, _XA_MOTIF_WM_HINTS);
|
hints_atom = gdk_x11_get_xatom_by_name_for_display (display, _XA_MOTIF_WM_HINTS);
|
||||||
|
|
||||||
@ -4448,7 +4448,7 @@ gdk_window_set_mwm_hints (GdkWindow *window,
|
|||||||
if (GDK_WINDOW_DESTROYED (window))
|
if (GDK_WINDOW_DESTROYED (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
hints_atom = gdk_x11_get_xatom_by_name_for_display (display, _XA_MOTIF_WM_HINTS);
|
hints_atom = gdk_x11_get_xatom_by_name_for_display (display, _XA_MOTIF_WM_HINTS);
|
||||||
|
|
||||||
@ -5485,7 +5485,7 @@ gdk_window_set_opacity (GdkWindow *window,
|
|||||||
!WINDOW_IS_TOPLEVEL (window))
|
!WINDOW_IS_TOPLEVEL (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (opacity < 0)
|
if (opacity < 0)
|
||||||
opacity = 0;
|
opacity = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user