When setting up the drag cursor as a shaped window, make sure to hide the previous drag shaped windows.
This commit is contained in:
10
gdk/gdkdnd.c
10
gdk/gdkdnd.c
@ -45,9 +45,15 @@ gdk_dnd_set_drag_shape(GdkWindow *default_pixmapwin,
|
|||||||
|
|
||||||
g_list_free(gdk_dnd.c->xids); gdk_dnd.c->xids = NULL;
|
g_list_free(gdk_dnd.c->xids); gdk_dnd.c->xids = NULL;
|
||||||
if(gdk_dnd.c->drag_pm_default)
|
if(gdk_dnd.c->drag_pm_default)
|
||||||
gdk_window_unref(gdk_dnd.c->drag_pm_default);
|
{
|
||||||
|
gdk_window_hide(gdk_dnd.c->drag_pm_default);
|
||||||
|
gdk_window_unref(gdk_dnd.c->drag_pm_default);
|
||||||
|
}
|
||||||
if(gdk_dnd.c->drag_pm_ok)
|
if(gdk_dnd.c->drag_pm_ok)
|
||||||
gdk_window_unref(gdk_dnd.c->drag_pm_ok);
|
{
|
||||||
|
gdk_window_hide(gdk_dnd.c->drag_pm_ok);
|
||||||
|
gdk_window_unref(gdk_dnd.c->drag_pm_ok);
|
||||||
|
}
|
||||||
|
|
||||||
gdk_dnd.c->drag_pm_ok = NULL;
|
gdk_dnd.c->drag_pm_ok = NULL;
|
||||||
|
|
||||||
|
|||||||
@ -45,9 +45,15 @@ gdk_dnd_set_drag_shape(GdkWindow *default_pixmapwin,
|
|||||||
|
|
||||||
g_list_free(gdk_dnd.c->xids); gdk_dnd.c->xids = NULL;
|
g_list_free(gdk_dnd.c->xids); gdk_dnd.c->xids = NULL;
|
||||||
if(gdk_dnd.c->drag_pm_default)
|
if(gdk_dnd.c->drag_pm_default)
|
||||||
gdk_window_unref(gdk_dnd.c->drag_pm_default);
|
{
|
||||||
|
gdk_window_hide(gdk_dnd.c->drag_pm_default);
|
||||||
|
gdk_window_unref(gdk_dnd.c->drag_pm_default);
|
||||||
|
}
|
||||||
if(gdk_dnd.c->drag_pm_ok)
|
if(gdk_dnd.c->drag_pm_ok)
|
||||||
gdk_window_unref(gdk_dnd.c->drag_pm_ok);
|
{
|
||||||
|
gdk_window_hide(gdk_dnd.c->drag_pm_ok);
|
||||||
|
gdk_window_unref(gdk_dnd.c->drag_pm_ok);
|
||||||
|
}
|
||||||
|
|
||||||
gdk_dnd.c->drag_pm_ok = NULL;
|
gdk_dnd.c->drag_pm_ok = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user