Set have_render_with_trapezoids to GDK_YES when we have a new enough

2005-02-20  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
	Set have_render_with_trapezoids to GDK_YES when we have
	a new enough Render extension.  (#167965,Billy Biggs)
This commit is contained in:
Matthias Clasen 2005-02-21 04:09:18 +00:00 committed by Matthias Clasen
parent a1670a154a
commit 5a7cb2374a
4 changed files with 19 additions and 7 deletions

View File

@ -1,5 +1,9 @@
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
Set have_render_with_trapezoids to GDK_YES when we have
a new enough Render extension. (#167965,Billy Biggs)
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
the last user interaction when focusing the window. (#166379,
Elijah Newren)

View File

@ -1,5 +1,9 @@
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
Set have_render_with_trapezoids to GDK_YES when we have
a new enough Render extension. (#167965,Billy Biggs)
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
the last user interaction when focusing the window. (#166379,
Elijah Newren)

View File

@ -1,5 +1,9 @@
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
Set have_render_with_trapezoids to GDK_YES when we have
a new enough Render extension. (#167965,Billy Biggs)
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
the last user interaction when focusing the window. (#166379,
Elijah Newren)

View File

@ -336,9 +336,8 @@ _gdk_x11_have_render_with_trapezoids (GdkDisplay *display)
if (x11display->have_render_with_trapezoids == GDK_UNKNOWN)
{
if (!_gdk_x11_have_render (display))
x11display->have_render_with_trapezoids = GDK_NO;
else
x11display->have_render_with_trapezoids = GDK_NO;
if (_gdk_x11_have_render (display))
{
/*
* Require protocol >= 0.4 for CompositeTrapezoids support.
@ -350,10 +349,11 @@ _gdk_x11_have_render_with_trapezoids (GdkDisplay *display)
if (XRenderQueryVersion (xdisplay, &major_version,
&minor_version))
if ((major_version < XRENDER_TETRAPEZOIDS_MAJOR) ||
((major_version == XRENDER_TETRAPEZOIDS_MAJOR) &&
(minor_version < XRENDER_TETRAPEZOIDS_MINOR)))
x11display->have_render_with_trapezoids = GDK_NO;
{
if ((major_version == XRENDER_TETRAPEZOIDS_MAJOR) &&
(minor_version >= XRENDER_TETRAPEZOIDS_MINOR))
x11display->have_render_with_trapezoids = GDK_YES;
}
}
}