summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wayland: Fix cross-layout acceleratorsfix-wayland-layout-changesMatthias Clasen2021-03-151-4/+21
| | | | | | | | | GTK traditionally lets you activate keyboard shortcuts even if they are for a non-active layout. But it is meant to only activate with a keysym from a non-active layout when that symbol is not present in the current layout. That last condition was lost when key event handling was redone for GTK4. Bring it back.
* wayland: Add debug spew for active keyboard layoutsMatthias Clasen2021-03-151-19/+43
| | | | | Print out what we think the active keyboard layout is, when it changes, with GDK_DEBUG=input.
* wayland: Emit keys-changed on layout changesMatthias Clasen2021-03-151-16/+37
| | | | | We were forgetting to do this in when layout changes are communicated via handle_modifiers.
* release-script: Actually compress the docs tarballMatthias Clasen2021-03-141-1/+1
| | | | Somehow an x got lot and the tarball got very big. Oops...
* Merge branch 'wip/otte/for-master' into 'master'Benjamin Otte2021-03-157-106/+48
|\ | | | | | | | | Wip/otte/for master See merge request GNOME/gtk!3297
| * x11: Don't call _gdk_surface_update_size() all the timeBenjamin Otte2021-03-152-23/+44
| | | | | | | | | | | | | | | | We were calling _gdk_surface_update_size() every frame, even if the window size didn't change. This would cause us to discard all cached buffers and redraw the whole screen. This was BAD.
| * surface: Remove unused gdk_surface_get_unscaled_size()Benjamin Otte2021-03-155-80/+4
| | | | | | | | | | | | Also remove unscaled_width/height members in the win32 backend. Both of those are unused.
| * ngl: Remove duplicate checkBenjamin Otte2021-03-151-4/+1
| | | | | | | | We check the extents, so there's no need to check overlap before.
* | 4.1.24.1.2Matthias Clasen2021-03-142-1/+56
| |
* | Update release scriptMatthias Clasen2021-03-141-5/+3
| | | | | | | | | | With gi-docgen based docs, we can try to go back to including the docs in the main release tarball.
* | Merge branch 'menubar-accel' into 'master'Matthias Clasen2021-03-152-0/+84
|\ \ | |/ |/| | | | | | | | | window: Add a way to disable F10 shortcut Closes #3727 See merge request GNOME/gtk!3296
| * window: Add a way to disable F10 shortcutMatthias Clasen2021-03-142-0/+84
|/ | | | | | This is needed for terminal emulators. Fixes: #3727
* Merge branch 'ngl-less-shaders' into 'master'Matthias Clasen2021-03-1422-459/+523
|\ | | | | | | | | Assorted ngl improvements See merge request GNOME/gtk!3295
| * ngl: Special-case css backgroundsMatthias Clasen2021-03-148-0/+133
| | | | | | | | | | | | | | | | Recognize a common pattern: A rounded clip with a color node, followed by a border node, with the same outline. This is what CSS backgrounds frequently produce, and we can render it more efficiently with a combined shader.
| * ngl: Don't bother with uniform border nodesMatthias Clasen2021-03-141-27/+0
| | | | | | | | | | | | | | Now that colors aren't uniforms anymore, we don't win much by using the inset_shadow shader. The fragment shaders of inset_shadow and border are identical. And the regular border setup does nine-slicing.
| * ngl: Small shader improvementsMatthias Clasen2021-03-1411-14/+36
| | | | | | | | | | Add a variant of gskSetOutputColor that saves a few multiplications, and use it where possible.
| * ngl: Improve the coloring shaderMatthias Clasen2021-03-141-5/+2
| | | | | | | | | | Since we are now passing a float anyway, we can avoid the branch in the fragment shader.
| * ngl: Improve the gradient shadersMatthias Clasen2021-03-143-30/+48
| | | | | | | | | | Use a define for MAX_COLOR_STOPS, and give the loop a fixed limit.
| * ngl: Rewrite gsk_ngl_render_job_visit_text_nodeMatthias Clasen2021-03-141-58/+9
| | | | | | | | Make this more compact, and thus easier to read.
| * ngl: Drop gsk_ngl_render_job_set_colorMatthias Clasen2021-03-141-210/+207
| | | | | | | | | | | | | | | | | | | | Colors are not state that we carry across draw ops, so setting the color on the render job doesn't make much sense. Instead, pass the color to the various draw calls. Add a few new ones for that purpose. Also, shorten the names of some by going from 'load_vertices_from_offscreen' to 'draw_offscreen'.
| * ngl: Refactor gsk_ngl_render_job_visit_border_nodeMatthias Clasen2021-03-141-103/+78
| | | | | | | | | | With color sorting out of the picture, this can be much simpler.
| * ngl: Consistently use gsk_scaled_premultiplyMatthias Clasen2021-03-146-8/+6
| | | | | | | | | | Its not going to make much of a difference, but we can just as well be consistent.
| * ngl: Fix up uniform enumsMatthias Clasen2021-03-141-9/+9
|/ | | | | This got messed up when color was changed from a uniform to an attribute in 06d5c8e72dee3d6339.
* Update Finnish translationJiri Grönroos2021-03-141-21/+10
| | | | (cherry picked from commit f5a34b53afed6f75a257c21dc52b07592ea76681)
* Update French translationGuillaume Bernard2021-03-141-1363/+1384
| | | | (cherry picked from commit 21039681d6df9824599d186934aaa53fd4ba722f)
* Update Polish translationPiotr Drąg2021-03-142-2638/+2643
|
* Updated Czech translationMarek Černocký2021-03-142-7/+7
|
* Merge branch 'gles-coloring' into 'master'Matthias Clasen2021-03-131-5/+5
|\ | | | | | | | | ngl: Fix the coloring shader on GLES 2.0 See merge request GNOME/gtk!3294
| * ngl: Fix the coloring shader on GLES 2.0Emmanuel Gil Peyrot2021-03-131-5/+5
|/ | | | | Integer varyings didn’t exist in GLSL ES 1.00, neither did the flat attribute.
* Update Norwegian Bokmål translationKjartan Maraas2021-03-131-271/+267
| | | | (cherry picked from commit 70ee21db71e5b8de0aff406d3d9f1decddebfa09)
* Merge branch 'ebassi/for-master' into 'master'Matthias Clasen2021-03-137-24/+17
|\ | | | | | | | | docs: Fix the dependencies links See merge request GNOME/gtk!3284
| * build: Install the API referencesEmmanuele Bassi2021-03-124-19/+12
| | | | | | | | We are building them, but not installing them.
| * docs: Fix the dependencies linksEmmanuele Bassi2021-03-123-5/+5
| | | | | | | | | | Use the GitLab pages location until we can link to a proper space on developer.gnome.org.
* | Merge branch 'ngl-textview-cursor' into 'master'Matthias Clasen2021-03-132-4/+15
|\ \ | | | | | | | | | | | | Ngl textview cursor See merge request GNOME/gtk!3292
| * | textview: Fix blinking block cursorsngl-textview-cursorMatthias Clasen2021-03-121-0/+7
| | | | | | | | | | | | | | | | | | When we have a block cursor, we need to discard the cached node of the line containing the cursor, in order to get a blinking cursor.
| * | textlayout: Render cursors at the endMatthias Clasen2021-03-121-3/+14
| | | | | | | | | | | | | | | | | | Don't place the insertion cursor render nodes in the middle of the text nodes for all the text. This helps the renderer batching the text draw calls together.
| * | ngl: Fix up some debug printoutsMatthias Clasen2021-03-121-1/+1
| | |
* | | textview: Fix blinking block cursorsMatthias Clasen2021-03-121-0/+7
|/ / | | | | | | | | | | When we have a block cursor, we need to discard the cached node of the line containing the cursor, in order to get a blinking cursor.
* | Merge branch 'wip/chergert/fewer-uniforms' into 'master'Matthias Clasen2021-03-123-157/+251
|\ \ | | | | | | | | | | | | ngl: apply fewer uniforms See merge request GNOME/gtk!3289
| * | ngl: reintroduce comparison checkswip/chergert/fewer-uniformsChristian Hergert2021-03-121-63/+114
| | | | | | | | | | | | | | | | | | This reduces how many changes we make when recording uniform state, which increases the chances that the data offset will be the same when applying uniforms.
| * | ngl: add front cache to reduce uniform changesChristian Hergert2021-03-123-94/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we make full snapshots when recording uniform state of batches, we need to perform some deduplication to avoid so many repeated uniform calls. This uses a closed hashtable to determine if we are likely changing the value to something new. This does not currently compare values, it instead only compares that we are going to point at a new offset into the uniform buffer. We could go further if we compare upon updating values (we did that early on in the prototype) so that offsets are less likely to be changed.
* | | Merge branch 'pgriffis/readme-fixes' into 'master'Matthias Clasen2021-03-121-3/+3
|\ \ \ | | | | | | | | | | | | | | | | readme: Fix broken doc links See merge request GNOME/gtk!3291
| * | | readme: Fix broken doc linksPatrick Griffis2021-03-121-3/+3
|/ / /
* | | Merge branch 'ngl-vertex-attributes' into 'master'Matthias Clasen2021-03-1228-240/+1520
|\ \ \ | |/ / |/| | | | | | | | Ngl vertex attributes See merge request GNOME/gtk!3290
| * | ngl: Identify shadersMatthias Clasen2021-03-1216-1/+57
| | | | | | | | | | | | | | | Add a comment with a name to each shader. That makes identifying the shaders in apitrace much easier.
| * | gtk-demo: Add a test for scrolling with EmojiMatthias Clasen2021-03-121-4/+44
| | | | | | | | | | | | | | | | | | Make a text with lots of Emoji and text. This is exercising the GL renderers switching between different shaders for color and plain glyphs.
| * | ngl: Make the coloring shader more versatileMatthias Clasen2021-03-122-28/+46
| | | | | | | | | | | | | | | | | | | | | | | | When the color passed is transparent black, use the color from the texture as source, instead of as mask. This lets use use the coloring program both for regular and color glyphs, avoiding program changes in text with Emoji.
| * | ngl: Set color as vertex attributeMatthias Clasen2021-03-1220-233/+179
| | | | | | | | | | | | | | | | | | | | | | | | Instead of using uniforms for color used in multiple programs, pass it as vertex attributes. This will let us batch more draw calls, since we don't have to change uniforms so often. In particular, for syntax-highlighted text.
| * | gsk: Give ngl its own shader sourcesMatthias Clasen2021-03-1223-21/+1241
|/ / | | | | | | | | | | | | We may want to change the interface between the shaders and the renderer for ngl, and therefore, sharing the shaders between gl and ngl will not be practical, going forward.
* | Merge branch 'fix-3704' into 'master'Matthias Clasen2021-03-121-7/+7
|\ \ | |/ |/| | | | | | | | | gdksurface-win32.c: Fix window menu positioning (issue #3704) Closes #3704 See merge request GNOME/gtk!3286