- 25 Jul, 2015 1 commit
-
-
- 17 Jul, 2015 1 commit
-
-
Matthias Clasen authored
This may help coverity recognize that we're not called with invalid combinations.
-
- 23 Jun, 2015 1 commit
-
-
Matthias Clasen authored
-
- 17 Jun, 2015 1 commit
-
-
- 16 Jun, 2015 1 commit
-
-
Christian Hergert authored
Background patterns are often updated when style changes. In many cases, the new pattern will match the previous. We can optimize out the invalidation that will occur upon resetting the same pattern.
-
- 15 Jun, 2015 1 commit
-
-
Alexander Larsson authored
An pass_through window is something you can draw in but does not affect event handling. Normally if a window has with no event mask set for a particular event then input events in it go to its parent window (X11 semantics), whereas if pass_through is enabled the window below the window will get the event. The later mode is useful when the window is partially transparent. Note that an pass-through windows can have child windows that are not pass-through so they can still get events on some parts. Semantically, this behaves the same as an regular window with gdk_window_set_child_input_shapes() called on it (and re-called any time a child is changed), but its far more efficient and easy to use. This allows us to fix the testoverlay input stacking test. https://bugzilla.gnome.org/show_bug.cgi?id=750568 https://bugs.freedesktop.org/show_bug.cgi?id=90917
-
- 14 Jun, 2015 1 commit
-
-
Matthias Clasen authored
-
- 13 Jun, 2015 1 commit
-
-
- 30 Apr, 2015 1 commit
-
-
LRN authored
It's a miracle that this code ever worked.
-
- 18 Apr, 2015 1 commit
-
-
Matthias Clasen authored
Fix several typos and annotate the region parameter as allow-none.
-
- 09 Mar, 2015 1 commit
-
-
Philip Withnall authored
gdk_window_ensure_native() can end up with a NULL parent pointer, which it passes to find_native_parent_above()…but that expects a non-NULL parent. Found with scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760
-
- 19 Feb, 2015 1 commit
-
-
Philip Withnall authored
Also try and clarify a few things about event propagation. Move input-handling.xml into gtk-doc’s expand_content_files variable so it automatically links to widget documentation. Add links from gtk_widget_add_events() and friends to the new documentation. https://bugzilla.gnome.org/show_bug.cgi?id=744054
-
- 17 Feb, 2015 1 commit
-
-
Paolo Borelli authored
-
- 12 Feb, 2015 1 commit
-
-
Emmanuele Bassi authored
Now that we have a two-stages GL context creation sequence, we can move the profile to a pre-realize option, like the debug and forward compatibility bits, or the GL version to use.
-
- 09 Feb, 2015 2 commits
-
-
Emmanuele Bassi authored
We simply don't want to care about legacy OpenGL. All supported platforms also have support for OpenGL ≥ 3.2; it would complicate the internal code; and would force us to use legacy GL contexts internally if the first context created by the user is a legacy GL context, and disable creation of core-3.2 contexts after that. We will need to fix all our code examples to use the Core 3.2 profile. https://bugzilla.gnome.org/show_bug.cgi?id=741946
-
Emmanuele Bassi authored
One of the major requests by OpenGL users has been the ability to specify settings when creating a GL context, like the version to use or whether the debug support should be enabled. We have a couple of requirements in terms of API: • avoid, if at all possible, the "C arrays of integers with attribute, value pairs", which are hard to write and hard to bind in non-C languages. • allow failing in a recoverable way. • do not make the GL context creation API a mess of arguments. Looking at prior art, it seems that a common pattern is to split the construction phase in two: • a first phase that creates a GL context wrapper object and does preliminary checks on the environment. • a second phase that creates the backend-specific GL object. We adopted a similar pattern: • gdk_window_create_gl_context() creates a GdkGLContext • gdk_gl_context_realize() creates the underlying resources Calling gdk_gl_context_make_current() also realizes the context, so simple GL users do not need to care. Advanced users will want to call gdk_window_create_gl_context(), set up the optional requirements, and then call gdk_gl_context_realize(). If either of these two steps fails, it's possible to recover by changing the requirements, or simply creating a new GdkGLContext instance. https://bugzilla.gnome.org/show_bug.cgi?id=741946
-
- 01 Feb, 2015 1 commit
-
-
Matthias Clasen authored
Since gboolean is a typedef for int, the compiler won't complain about gdk_window_set_event_compression (w, 2). So, make it work. https://bugzilla.gnome.org/show_bug.cgi?id=742566
-
- 30 Jan, 2015 2 commits
-
-
Matthias Clasen authored
Commit ff256956 introduced a frame_clock_events_paused flag, but only ever set it to TRUE, instead of unsetting it when events are resumed. This was leading to assertion failures in _gdk_display_unpause_events().
-
Tom Hughes authored
If we are disconnecting from a frame clock that has paused event processing and hasn't issued a resume yet make sure we resume the events or they will stay blocked forever. https://bugzilla.gnome.org/show_bug.cgi?id=742636
-
- 28 Jan, 2015 2 commits
-
-
Niels Nesse authored
In some layouts this inconsistency results in crashes in gdk_gl_texture_from_surface() since it uses gdk_gl_context_get_window() but the returned window is not the same as the one that is being painted so "window->current_paint.surface" is NULL. I saw this problem when packing a GdkGLArea into a GtkPaned. https://bugzilla.gnome.org/show_bug.cgi?id=743146
-
Niels Nesse authored
- Specifically request GL version when creating context. Just specifying core profile bit results in the requested version defaulting to 1.0 which causes the core profile bit to be ignored and an arbitrary compatability context to be returned. - Fix GL painting by removing GL calls that have been depricated by the 3.2 core profile. - Additionally remove glInvalidateFramebuffer() call, it is not supported by 3.2 core. https://bugzilla.gnome.org/show_bug.cgi?id=742953
-
- 24 Jan, 2015 1 commit
-
-
Matthias Clasen authored
No need to risk valgrind complaints about initialized values. https://bugzilla.gnome.org/show_bug.cgi?id=743422
-
- 18 Jan, 2015 2 commits
-
-
-
Matthias Clasen authored
We shouldn't recommend gtk_widget_modify_bg() or gtk_style_set_background() anymore.
-
- 22 Nov, 2014 2 commits
-
-
Jasper St. Pierre authored
This has been bothering me for a while.
-
Jasper St. Pierre authored
It's unused. At the same time, rename "begin_paint_region" to "begin_paint". This will help us clean up how GDK painting works in the future to allow more creative use of double-buffering.
-
- 20 Nov, 2014 1 commit
-
-
Alexander Larsson authored
This is required for the X backend GL integration. If the window has a height that is not a multiple of the window scale we can't properly do the y coordinate flipping that GL needs. Other backends can ignore this and use the default implementation. https://bugzilla.gnome.org/show_bug.cgi?id=739750
-
- 10 Nov, 2014 4 commits
-
-
Matthias Clasen authored
Add private API to set this per-display, and make the existing gdk_window_set_debug_update function set a global default.
-
Matthias Clasen authored
This is in preparation for making it runtime-settable in the inspector.
-
Javier Jardón authored
This is needed for cairo_set_device_scale()
-
Alexander Larsson authored
It seems in cairo 1.14 we need this after having painted an image surface to a X11 window surface (i.e. with GDK_RENDERING=image).
-
- 08 Nov, 2014 2 commits
-
-
Emmanuele Bassi authored
These are the last two global GDK symbols that have a libgtk_only suffix. https://bugzilla.gnome.org/show_bug.cgi?id=739781
-
Emmanuele Bassi authored
This allows us to use the GDK_PRIVATE_CALL macro inside gtk. https://bugzilla.gnome.org/show_bug.cgi?id=739781
-
- 07 Nov, 2014 1 commit
-
-
Matthias Clasen authored
This will be used in the inspector.
-
- 06 Nov, 2014 4 commits
-
-
Alexander Larsson authored
-
Alexander Larsson authored
If buffer age is undefined and the updated area is not the whole window then we use bit-blits instead of swap-buffers to end the frame. This allows us to not repaint the entire window unnecessarily if buffer_age is not supported, like e.g. with DRI2.
-
Alexander Larsson authored
This moves the GDK_ALWAYS_USE_GL env var to GDK_GL=always. It also changes GDK_DEBUG=nogl to GDK_GL=disable, as GDK_DEBUG is really only about debug loggin. It also adds some completely new flags: software-draw-gl: Always use software fallback for drawing gl content to a cairo_t. This disables the fastpaths that exist for drawing directly to a window and instead reads back the pixels into a cairo image surface. software-draw-surface: Always use software fallback for drawing cairo surfaces onto a gl-using window. This disables e.g. texture-from-pixmap on X11. software-draw: Enables both the above.
-
Alexander Larsson authored
If this is supported we avoid a lot of legacy baggage which we don't need.
-
- 30 Oct, 2014 1 commit
-
-
Alexander Larsson authored
-
- 28 Oct, 2014 1 commit
-
-
Matthias Clasen authored
Also found by valgrind.
-