Commit Graph

53213 Commits

Author SHA1 Message Date
Luca Bacci
0c72ce94ea GdkWindow: check for same impl class in set_transient_for ()
Checking for offscreen windows with gdk_window_is_offscreen ()
is not enough in this case. What we want here is that the impl
classes match, as backends are meant to know only about their
windows. Instead gdk_window_is_offscreen () checks whether the
GdkWindow.window_type field is GDK_WINDOW_OFFSCREEN.

In the case of child windows in offscreen windows, the window
type is GDK_WINDOW_CHILD, even though their impl is still
GdkOffscreenWindow.

So actually check whether GDK_WINDOW_IMPL_GET_CLASS (window)
matches GDK_WINDOW_IMPL_GET_CLASS (parent).

We may also consider getting the toplevels from child windows,
as transient-for relationships are really about toplevels, but
child windows doesn't seem to cause problems in practice.
2023-12-13 12:23:43 +01:00
Matthias Clasen
9b9560c76a Merge branch 'gtk-3-24-cursor-fallback' into 'gtk-3-24'
Fall back to the 'default' cursor

See merge request GNOME/gtk!6649
2023-12-09 04:32:17 +00:00
Matthias Clasen
44f7cb1c55 wayland: Avoid more legacy cursor names
Set the cursor from a standard name instead of relying on the X11
cursor font derived enum values.
2023-12-08 14:09:48 +04:00
Matthias Clasen
262be35f43 Fall back to the 'default' cursor
The Adwaita cursor theme is moving to shipping just standard cursor
names, so we should fall back to 'default' instead of 'left_ptr' if
a named cursor can't be found.

Fixes: #6259
2023-12-08 12:56:29 +04:00
Yaron Shahrabani
cde309d9fa Update Hebrew translation 2023-12-02 22:12:02 +00:00
Yaron Shahrabani
a2e0359578 Update Hebrew translation 2023-12-01 21:04:44 +00:00
Arjan Molenaar
f7e9fd076d macos: Implement delegate method to silence secure-restore message
Fix process injection vulnerability on macOS.

See https://sector7.computest.nl/post/2022-08-process-injection-breaking-all-macos-security-layers-with-a-single-vulnerability/.
2023-11-30 17:47:32 +01:00
Matthias Clasen
459a13e837 Merge branch 'gtk3-wayland-tiled' into 'gtk-3-24'
[gtk3] Support tiled windows from xdg-shell.

See merge request GNOME/gtk!6629
2023-11-29 12:50:31 +00:00
Matthias Clasen
3020890e86 Merge branch 'cursor-size-tweak' into 'gtk-3-24'
[gtk3] Don't fall back directly to 1 for mismatched cursor sizes.

See merge request GNOME/gtk!5481
2023-11-29 12:44:17 +00:00
Emilio Cobos Álvarez
b54b154dc0 [gtk3] Support tiled windows from xdg-shell.
This makes wayland windows tileable in non-mutter compositors.
2023-11-29 05:03:41 +01:00
Matthias Clasen
a074f1fe72 Fix a minor issue in the file portal test
get_data can be called multiple times, so we must not clear
the data the first time we get called.
2023-11-27 19:12:53 -05:00
Matthias Clasen
0bffedf5b8 Merge branch 'wayland-cursor-fix-3-24' into 'gtk-3-24'
wayland: Be more careful when loading cursors

See merge request GNOME/gtk!6623
2023-11-27 21:28:37 +00:00
Matthias Clasen
2b5a6963e4 wayland: Be more careful when loading cursors
Make sure we don't access the cursor_images array out of bounds.

Related: #6234
2023-11-27 14:53:51 -05:00
Matthias Clasen
7e1e11e280 Merge branch 'dialog-close-fix' into 'gtk-3-24'
[gtk3] GtkFileChooserNative: Fix portal close.

See merge request GNOME/gtk!6611
2023-11-25 17:18:27 +00:00
Emilio Cobos Álvarez
307dde7f6c [gtk3] GtkFileChooserNative: Fix portal close.
This makes closing a portal file chooser work.

Fixes the GTK3 bits of #6225.
2023-11-25 03:32:47 +01:00
Matthias Clasen
65b0c289b0 Fix the build 2023-11-19 21:10:05 -05:00
Matthias Clasen
a0277a46d3 Merge branch 'unavailable-gl-functions' into 'gtk-3-24'
gl: Limit glGetTexLevelParameteriv use to supported platforms

See merge request GNOME/gtk!6554
2023-11-19 17:18:06 +00:00
Michał Potomski
673bd65090 gl: Limit glGetTexLevelParameteriv use to supported platforms 2023-11-19 17:18:05 +00:00
Matthias Clasen
88217f2e44 Add missing parentheses
This problem was introduced in f5bf4aeaa6.
2023-11-19 12:17:37 -05:00
Piotr Drąg
ad3972e6b1 Update Polish translation 2023-11-19 15:37:56 +01:00
Piotr Drąg
626892086c Update Polish translation 2023-11-18 17:10:05 +01:00
Sveinn í Felli
ccf7f217f0 Update Icelandic translation 2023-11-17 10:38:44 +00:00
Sveinn í Felli
d00982001d Update Icelandic translation 2023-11-17 10:37:12 +00:00
Vasil Pupkin
dff7f07eb6 Update Belarusian translation 2023-11-14 23:07:14 +00:00
Vasil Pupkin
694c68e5a6 Update Belarusian translation 2023-11-14 22:27:50 +00:00
Sabri Ünal
c47425c62e Update Turkish translation 2023-10-29 11:21:54 +00:00
Ekaterine Papava
f5b67ddac2 Update Georgian translation 2023-10-25 21:27:51 +00:00
Sabri Ünal
2ced0b9179 Update Turkish translation 2023-10-25 13:34:20 +00:00
Sabri Ünal
b5118d2150 Update Turkish translation 2023-10-21 09:16:16 +00:00
Ekaterine Papava
73d5663a8c Update Georgian translation 2023-10-17 22:34:06 +00:00
Ekaterine Papava
21dd4d78d3 Update Georgian translation 2023-10-17 19:18:04 +00:00
Matthias Clasen
be74e8a12a Merge branch 'wayland-entries-for-keyval' into 'gtk-3-24'
wayland: Don't return True if we fail to convert a keyval

See merge request GNOME/gtk!6492
2023-10-17 16:44:48 +00:00
Guido Günther
8143aa1b94 wayland: Don't return True if we fail to convert a keyval
gdk_keymap_get_entries_for_keyval is supposed to return FALSE when no
keys were found. Do so to prevent careless clients (that don't check
n_keys too) from crashing.
2023-10-17 18:22:47 +02:00
Ekaterine Papava
63d70fd3ee Update Georgian translation 2023-10-08 20:41:31 +00:00
Ekaterine Papava
98fa45f633 Update Georgian translation 2023-10-01 11:49:24 +00:00
Ekaterine Papava
2a49c52c9e Update Georgian translation 2023-10-01 11:32:25 +00:00
Jonas Ådahl
89137211a9 Merge branch 'gtk-3-24' into 'gtk-3-24'
GtkTooltip: prevent tooltips from appearing offscreen in edge cases (fixes #2784)

See merge request GNOME/gtk!2649
2023-09-30 15:04:30 +00:00
Kristjan SCHMIDT
d8e44dcabc Update Esperanto translation 2023-09-29 18:39:46 +00:00
Benjamin Otte
a54f50ef20 Merge branch 'gles-swapped-colors' into 'gtk-3-24'
OpenGL/ES: Fix 'R' and 'B' bits inverted on all platforms

See merge request GNOME/gtk!6440
2023-09-28 17:11:05 +00:00
Balló György
261780ac51 OpenGL/ES: Fix 'R' and 'B' bits inverted on all platforms
The color channels are swapped on Linux too, not only on Windows. It can be
reproduced by running the "OpenGL Area" example from gtk3-demo with
GDK_GL=gles, or play a video in totem with GDK_GL=gles.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3032
2023-09-28 18:49:51 +02:00
Kristjan SCHMIDT
796bbee163 Update Esperanto translation 2023-09-27 20:56:31 +00:00
Kristjan SCHMIDT
9e45d0cef6 Update Esperanto translation 2023-09-25 21:22:21 +00:00
Kristjan SCHMIDT
2b6721517c Update Esperanto translation 2023-09-25 19:27:33 +00:00
Kristjan SCHMIDT
3e8c9ebebb Update Esperanto translation 2023-09-25 16:31:27 +00:00
Daniel Mustieles
17eaebebd0 Update Spanish translation 2023-09-21 09:46:22 +00:00
Daniel Mustieles
4376de2bd2 Update Spanish translation 2023-09-21 09:44:42 +00:00
Ekaterine Papava
2e678a9616 Update Georgian translation 2023-09-20 19:51:06 +00:00
Ekaterine Papava
1be882a76f Update Georgian translation 2023-09-20 19:32:25 +00:00
Boyuan Yang
236a6c79ac Update Chinese (China) translation 2023-09-19 01:32:22 +00:00
Matthias Clasen
87c88720be Merge branch 'useless-dpi-settings-notification' into 'gtk-3-24'
gdk/wayland: Don't notify of settings changes on startup.

See merge request GNOME/gtk!6375
2023-09-13 21:31:13 +00:00