Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
cfa67127
Commit
cfa67127
authored
Oct 06, 2010
by
Benjamin Otte
Browse files
x11: Get display from window, not from impl-drawable's screen
parent
dc7d8dae
Changes
1
Hide whitespace changes
Inline
Side-by-side
gdk/x11/gdkdrawable-x11.c
View file @
cfa67127
...
...
@@ -122,7 +122,7 @@ gdk_x11_create_cairo_surface (GdkDrawable *drawable,
GdkVisual
*
visual
;
visual
=
gdk_window_get_visual
(
impl
->
wrapper
);
return
cairo_xlib_surface_create
(
GDK_
SCREEN
_XDISPLAY
(
impl
->
screen
),
return
cairo_xlib_surface_create
(
GDK_
WINDOW
_XDISPLAY
(
impl
->
wrapper
),
impl
->
xid
,
GDK_VISUAL_XVISUAL
(
visual
),
width
,
height
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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