Matthias Clasen
3c31f72219
texture: Update docs
...
Document that we support TIFF as well.
2023-01-14 22:48:57 -05:00
Matthias Clasen
fecc80b59c
Fix a compiler warning
...
Clang things that timings can be NULL here,
and I think it might be right.
2023-01-14 00:14:41 -05:00
Matthias Clasen
99f07c7c0a
Fix a compiler warning
...
Clang things that timings can be NULL here,
and I think it might be right.
2023-01-13 12:07:40 -05:00
Matthias Clasen
746d12fc43
Silence a compiler warning
...
Clang was complaining that we never use the
value stored in mime_type. Just don't store it,
we are only interested in the side-effect
(interning the string).
2023-01-13 12:07:40 -05:00
Christian Hergert
958ecf2855
gdk/macos: fix warning about _coreCursorType
2023-01-12 13:22:47 -08:00
Christian Hergert
965c52d369
gdk: fix warning when !HAVE_EGL
2023-01-12 13:22:02 -08:00
Matthias Clasen
46e0fde606
css: Avoid more allocations for tokens
...
Make short string tokens static.
2023-01-12 00:12:09 -05:00
Matthias Clasen
0073bb79a7
Deprecate gdk_display_put_event
...
The documentation already tells you not to
use this function.
Ifdef the remaining users in the X11 backend.
2023-01-09 15:46:25 -05:00
Matthias Clasen
f59b506674
Merge branch 'macos-stable-dnd' into 'main'
...
macos: Drag and drop should not freeze applications
See merge request GNOME/gtk!5291
2023-01-09 11:52:50 +00:00
Matthias Clasen
dd3cdc52f5
Fix code style
2023-01-08 14:41:11 +00:00
Matthias Clasen
5a3156a8b7
gdk: Update docs
...
Update the docs for gdk_display_get_monitor_at_surface.
2023-01-07 21:35:29 -05:00
Matthias Clasen
a4c2f19155
Merge branch 'gdk-display-get-monitor-is-nullable' into 'main'
...
gdkdisplay: Document get_monitor_at_surface can return NULL
Closes #5075
See merge request GNOME/gtk!4917
2023-01-07 20:39:04 +00:00
Benjamin Otte
bf3cf8bb29
glcontext: Avoid gcc warning on non-egl build
2023-01-06 19:46:58 -05:00
Matthias Clasen
44aa6a891a
Drop gdkpopup-wayland-private.h
...
It is empty now.
2023-01-06 17:02:03 -05:00
Matthias Clasen
7a30a21405
waylandsurface: Introduce a few vfuncs
2023-01-06 17:00:45 -05:00
Matthias Clasen
2b3eadcfa4
waylandpopup: Drop unused exports
2023-01-06 16:50:20 -05:00
Matthias Clasen
352443d5a5
waylandtoplevel: Drop unused exports
2023-01-06 16:50:20 -05:00
Matthias Clasen
3574fde770
More cleanups
2023-01-06 16:50:20 -05:00
Matthias Clasen
793689789c
Misc cleanups
...
Detangle compute_size, among other things.
2023-01-06 16:50:19 -05:00
Matthias Clasen
120396fa40
wip: Split off GdkWaylandPopup
...
Like the GdkWaylandToplevel split-off, this needs some
more cleanup.
2023-01-06 16:50:19 -05:00
Matthias Clasen
d61ec38974
wip: Split off GdkWaylandToplevel
...
This still needs some more cleanup.
2023-01-06 16:50:19 -05:00
Matthias Clasen
2a463baed0
wayland: Rearrange the surface code
2023-01-06 16:50:19 -05:00
Matthias Clasen
348acde6bd
wayland: Split public headers
...
Split gdkwaylandsurface.h into itself,
gdkwaylandtoplevel.h and gdkwaylandpopup.h.
This is in preparation for splitting the
types for real.
2023-01-06 13:47:34 -05:00
Matthias Clasen
5ba793842b
wayland: Split display_server sub-structs
...
Move these to GdkWaylandToplevel and GdkWaylandPopup
as appropriate.
2023-01-06 13:47:34 -05:00
Matthias Clasen
149b608bfc
wayland: Move next_layout into popup and toplevel
...
This is where it belongs.
2023-01-06 13:47:34 -05:00
Matthias Clasen
3348ea81f2
wayland: Move pending toplevel state to GdkWaylandToplevel
...
Another toplevel-only thing.
2023-01-06 13:47:34 -05:00
Matthias Clasen
63e69131bd
wayland: Move input_grab_seat to GdkWaylandPopup
...
This is popup-only functionality.
2023-01-06 13:47:34 -05:00
Matthias Clasen
d42a34b0b3
wayland: Move reposition_token to GdkWaylandPopup
...
This is only used for popups, so move it there.
2023-01-06 13:47:34 -05:00
Matthias Clasen
5ee10fc669
wayland: Move shortcuts_inhibitors to GdkWaylandToplevel
...
Another toplevel-only feature.
2023-01-06 13:47:22 -05:00
Matthias Clasen
b0a4917ce4
wayland: Move imported_transient_for to GdkWaylandToplevel
...
Another toplevel-only thing.
2023-01-06 13:47:22 -05:00
Matthias Clasen
47e22d6301
wayland: Move geometry hints to GdkWaylandToplevel
...
Another toplevel-only thing.
2023-01-06 13:47:12 -05:00
Matthias Clasen
b970b60503
wayland: Move title to GdkWaylandToplevel
...
This is a toplevel property.
2023-01-06 13:47:06 -05:00
Matthias Clasen
7406f8165d
wayland: Move drag surfaces to their own file
2023-01-06 13:46:58 -05:00
Matthias Clasen
9435e689c3
wayland: Drop create_dnd_surface
...
It is only used in one place.
2023-01-06 13:46:58 -05:00
Matthias Clasen
ad1af87834
Merge branch 'gtk4-fix-xdg-activation-set-surface' into 'main'
...
gdk/wayland: set requesting surface to xdg-activation
See merge request GNOME/gtk!5293
2023-01-06 14:03:01 +00:00
Matthias Clasen
8349ae2bc4
x11: Make a call NULL-safe
...
Make it safe to call gdk_x11_app_launch_context_get_startup_notify_id
with a NULL info.
2023-01-04 16:37:31 -05:00
Carlos Garnacho
4041ca0f69
gdkdisplay: Deprecate gdk_display_notify_startup_complete()
...
We have various layers where we store the startup ID for a request,
since this API does not have a GdkToplevel that we can refer about
for the Wayland platform, this is the most obvious candidate to
start untangling these various layers.
Deprecate this call, it is already unused in the gtk/ side.
2023-01-03 14:58:33 +01:00
Carlos Garnacho
7fab1b85ad
gdk/x11: Emit "remove" s-n message from gdk_toplevel_set_startup_id
...
In the way towards deprecating gdk_display_notify_startup_complete(),
make gdk_toplevel_set_startup_id() on X11 perform this piece of messaging
itself. It should be harmless that the message is emitted twice, if
callers do still use that API.
2023-01-03 14:58:25 +01:00
Carlos Garnacho
5aeabdb3d4
gdk/wayland: Perform xdg_activation on gdk_toplevel_set_startup_id
...
This call has everything to perform activation as specified by the
xdg_activation protocol, notably a surface to activate as opposed to
gdk_display_notify_startup_complete().
Make activation happen here, so that the surface gets activated when
its gets a startup ID assigned.
2023-01-03 14:57:49 +01:00
Maximiliano Sandoval R
b688f47776
gdk_display_open: Mark arg as nullable
2023-01-02 11:49:06 +01:00
Carlos Garnacho
e7f798dcf5
gdk/surface: Handle clicks outside client surfaces
...
The owner_events=TRUE grab makes GDK on X11 see events happening
outside every client window as received on the grab window.
Additionally check that the pointer is inside the grab window
(i.e. it received GDK_CROSSING_NORMAL crossing events for the
core pointer) in order to handle clicks happening outside client
windows.
These new paths are expected to be a no-op on Wayland, and to
also work for touchscreen input on X11, due to emulated pointer
events.
2022-12-23 16:12:03 +01:00
Ignazio Pillai
8ecb624934
clipboard: improve EOL conversion of plain text
...
Handle the case of clipboard text with CR line endings
2022-12-22 12:55:30 +01:00
Nirbheek Chauhan
e2291259bb
gdk: Fix g_set_str version check
...
The function was added to glib in 2.75.1. This fixes gtk's build with
the glib main branch.
2022-12-18 11:29:10 +05:30
Christopher Davis
3e86bc65f5
gdkprivate: Add compatibility shim for g_set_str()
...
Allows us to make use of this API without depending
on bleeding-edge glib
2022-12-16 10:16:52 -05:00
Matthias Clasen
e5560c1535
Add GDK_DEBUG=no-portals
...
Fixes : #5441
2022-12-14 13:50:20 -05:00
Matthias Clasen
a471a8b57c
Merge branch 'ebassi/gidocgen-update' into 'main'
...
ci: Update the gi-docgen dependencies
See merge request GNOME/gtk!5263
2022-12-14 16:24:48 +00:00
Luca Bacci
48bcae99af
Merge branch 'gdk-win32-fix-native-decoration-resize' into 'main'
...
GdkWin32: Fix resizes with native decorations
Closes #5142 , #5088 , and #5090
See merge request GNOME/gtk!5096
2022-12-14 13:13:14 +00:00
Luca Bacci
0bdf30dfbf
Merge branch 'gdk-win32-modal-handling' into 'main'
...
GdkWin32: Do not use MA_NOACTIVATEANDEAT
Closes #5297 and #5326
See merge request GNOME/gtk!5208
2022-12-14 10:08:42 +00:00
Corey Berla
e8f70be2c1
Merge branch 'wip/otte/for-5422' into 'main'
...
contentserializer: Serialize to file:// if possible
Closes #5422
See merge request GNOME/gtk!5330
2022-12-14 01:56:04 +00:00
Benjamin Otte
ea056d261f
contentserializer: Serialize to file:// if possible
...
Try to get a native file:// URI instead of any other GVFS
scheme, for interoperability with apps only handling file:// URIs.
This is what GTK3 Nautilus and Thunar do, so apps should be tuned
for this behavior.
See also https://bugzilla.xfce.org/show_bug.cgi?id=13845
Fixes : #5422
2022-12-14 02:33:45 +01:00