Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
5cbb3098
Commit
5cbb3098
authored
Oct 14, 2010
by
Kristian Rietveld
Browse files
Initialize device_cursor hash table before creating impl window
parent
aeec832f
Changes
1
Hide whitespace changes
Inline
Side-by-side
gdk/gdkwindow.c
View file @
5cbb3098
...
...
@@ -1429,6 +1429,9 @@ gdk_window_new (GdkWindow *parent,
if
(
private
->
parent
)
private
->
parent
->
children
=
g_list_prepend
(
private
->
parent
->
children
,
window
);
private
->
device_cursor
=
g_hash_table_new_full
(
NULL
,
NULL
,
NULL
,
(
GDestroyNotify
)
gdk_cursor_unref
);
native
=
_gdk_native_windows
;
/* Default */
if
(
private
->
parent
->
window_type
==
GDK_WINDOW_ROOT
)
native
=
TRUE
;
/* Always use native windows for toplevels */
...
...
@@ -1467,9 +1470,6 @@ gdk_window_new (GdkWindow *parent,
(
attributes
->
cursor
)
:
NULL
));
private
->
device_cursor
=
g_hash_table_new_full
(
NULL
,
NULL
,
NULL
,
(
GDestroyNotify
)
gdk_cursor_unref
);
device_manager
=
gdk_display_get_device_manager
(
gdk_window_get_display
(
parent
));
g_signal_connect
(
device_manager
,
"device-removed"
,
G_CALLBACK
(
device_removed_cb
),
window
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment