summaryrefslogtreecommitdiff
path: root/gdk/broadway
Commit message (Collapse)AuthorAgeFilesLines
* selection: Remove #ifdef WAYLANDBenjamin Otte2017-11-153-0/+24
| | | | | | | Instead, turn the functions into backend API: gdk_broadway_display_add_selection_targets() gdk_broadway_display_clear_selection_targets() Remove the old per-backend functions, too.
* broadway: Drop the root windowMatthias Clasen2017-11-065-76/+7
| | | | | We already have a list of toplevels, so we don't need the root window for this.
* Drop gdk_display_get_root_windowMatthias Clasen2017-11-051-9/+0
| | | | This is no longer used.
* broadway: Stop using gdk_display_get_root_windowMatthias Clasen2017-11-052-3/+7
| | | | We can just use the field in the display.
* broadway: Stop using gdk_display_get_toplevel_windowsMatthias Clasen2017-11-051-1/+1
| | | | | We already keep a list of all toplevels in the broadway display struct. Just use it.
* gdk: Cursors are created genericallyBenjamin Otte2017-11-042-26/+0
| | | | There are no longer subclasses for cursors now.
* gdk: Make cursors instantiableBenjamin Otte2017-11-041-47/+10
| | | | | | This way, backends can instantiate GdkCursor objects directly. Do that for broadway to test that it indeed works.
* cursor: Turn new_from_surface() into new_from_texture()Benjamin Otte2017-11-043-9/+12
| | | | | Also turn all the arguments into read-only properties on the GdkCursor object.
* broadway: Don't crash on startupBenjamin Otte2017-11-041-1/+1
|
* gdk: Remove ability to download a cursorBenjamin Otte2017-11-041-26/+0
|
* gdk: Add gdk_cursor_get_name()Benjamin Otte2017-11-041-0/+1
| | | | Also add the GdkCursor::name property.
* gdk: Get rid of GdkCursorTypeBenjamin Otte2017-11-041-2/+0
| | | | | Now that we no longer have API that uses cursor types, don't keep them around.
* gdk: Remove GdkWindow.set_device_cursor() vfuncBenjamin Otte2017-11-022-31/+0
| | | | | That one calls through to GdkDevice.set_window_cursor(), so let's just use that one.
* Drop foreign window checks in BroadwayMatthias Clasen2017-11-011-27/+18
| | | | | The broadway backen never creates foreign windows, so no need to check for this type of window.
* Remove an unused functionMatthias Clasen2017-11-011-16/+0
|
* Some forgotten cleanupsMatthias Clasen2017-11-011-2/+0
|
* t Remove gdk_cursor_new_for_displayMatthias Clasen2017-11-011-1/+0
| | | | | | The preferred api to create cursors is by name, and the GdkCursorType enumeration can directly trace its ancestry to the horrible X cursor font. So lets stop using it.
* Fix a compiler warning.Matthias Clasen2017-11-011-1/+1
|
* broadway: No more screenMatthias Clasen2017-11-0111-251/+50
| | | | | This gets rid of the GdkBroadwayScreen object and all remnants of GdkScreen in the broadway backend.
* Resolving undefined reference to gdk_get_default_root_windowAndrew Crerar2017-11-011-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=789777
* broadway: Fix fallout from screen changesBenjamin Otte2017-11-015-12/+1
|
* Drop gdk_screen_get_root_windowMatthias Clasen2017-10-311-1/+0
| | | | This function is no longer used.
* Port to gdk_display_get_root_windowMatthias Clasen2017-10-312-4/+2
| | | | This is the replacement for the GdkScreen api of the same name.
* Use gdk_display_get_toplevel_windowsMatthias Clasen2017-10-311-1/+3
| | | | This replaces the GdkScreen api of the same name.
* Add gdk_display_get_toplevel_windowsMatthias Clasen2017-10-311-0/+9
| | | | | | This is replacing the corresponding GdkScreen api, which is going away. To implement this, we need to add a get_root_window vfunc to GdkDisplay.
* Drop gdk_window_get_screenMatthias Clasen2017-10-311-1/+0
| | | | | This includes removing the GdkScreen argument from the create_window_impl display vfunc.
* Drop GdkScreen from GdkDevice apisMatthias Clasen2017-10-311-2/+0
| | | | | Returning the screen does not add anything here and GdkScreen is going away.
* dnd: Drop GdkScreen from apisMatthias Clasen2017-10-311-1/+0
| | | | | | | | Drop the screen argument from gdk_dnd_find_window_for_screen and rename the function to gdk_dnd_find_window. The screen argument does not add anything here since the drag context is already tied to the display. Update all backends, and update all callers.
* broadway: Don't set the GdkScreen get_setting vfuncMatthias Clasen2017-10-301-9/+0
| | | | We are not using it anymore.
* broadway: Implement the GdkDisplay get_setting vfuncMatthias Clasen2017-10-301-0/+9
| | | | This is just a trivial implementation.
* GtkWindow/GdkWindow: Finish converting icons to surfacesAlexander Larsson2017-10-231-1/+1
| | | | There were some parts left, for instance gdk_window_set_icon_list.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+5
| | | | | | | | | | | | | | | | | | | This patch makes that work using 1 of 2 options: 1. Add all missing enums to the switch statement or 2. Cast the switch argument to a uint to avoid having to do that (mostly for GdkEventType). I even found a bug while doing that: clearing a GtkImage with a surface did not notify thae surface property. The reason for enabling this flag even though it is tedious at times is that it is very useful when adding values to an enum, because it makes GTK immediately warn about all the switch statements where this enum is relevant. And I expect changes to enums to be frequent during the GTK4 development cycle.
* build: Don't turn off critical warningsBenjamin Otte2017-10-062-7/+7
| | | | | | | | -Wint-conversion is important because it checks casts from ints to pointers. -Wdiscarded-qualifiers is important to catch cases where we don't strings when we should.
* broadway: Build fixesEmmanuele Bassi2017-08-152-3/+3
| | | | | The Broadway backend does not build after commit c409fca7 dropped some occurrences of the root window from GDK.
* Drop Autotools buildEmmanuele Bassi2017-08-141-107/+0
| | | | | We are officially switching to Meson as the default build system for GTK+.
* Allow passing a NULL window to gdk_device_query_stateMatthias Clasen2017-08-111-8/+11
| | | | | | | Interpret NULL as "root window" here - we only have one screen nowadays, so there is no choice involved, and this will let us avoid dealing with the root window in the fontend code.
* Drop root windows from some internal apisMatthias Clasen2017-08-111-9/+1
| | | | | _gdk_device_query_state was needlessly shuffling root windows around.
* meson: Remove G_LOG_USE_STRUCTURED from target C flagsEmmanuele Bassi2017-05-031-2/+1
| | | | | The G_LOG_USE_STRUCTURED symbol is defined in the project flags, so we don't need to add it again in the per-target flags.
* build: Define G_LOG_USE_STRUCTURED in GDKEmmanuele Bassi2017-05-031-1/+1
| | | | We want to use the new structured logging support in GLib.
* build: Add common flags to GDK backendsEmmanuele Bassi2017-05-031-1/+6
| | | | | | The common compiler and linker flags control, among other things, the default visibility of symbols; without them, we leak symbols that ought to be private.
* meson: gdk: fix static library namesTim-Philipp Müller2017-05-031-1/+1
| | | | Fix double lib prefix in filenames (liblibgdk-xyz.a)
* meson: gdk: build individual backends as static libsTim-Philipp Müller2017-05-031-0/+63
| | | | | | | This is how it's done in the autotools build. Also avoids problems with multiple source files having the same name (gdkeventsource.c). Also move broadway backend code into broadway subdir.
* gdk: Remove testing functionsBenjamin Otte2017-01-084-83/+0
| | | | They were unused and unimplemented.
* Visual Studio builds: Drop the Broadway projectsChun-wei Fan2016-12-301-21/+0
| | | | | | | | | | | Since the status of the GDK broadway backend is more or less unsupported, drop the projects that build gtk4-broadwayd and gdk-broadway, and update the projects to not to refer to them. However, keep the Broadway configs for now as we will later transform them to become configs for Vulkan, so bascially besides "installation" parts and output settings, they will do the same as their Release|Debug counterparts with no support for Broadway.
* gdk: Drop gdk_window_reparentwip/alexl/simplify-gdkwindowAlexander Larsson2016-12-161-10/+0
| | | | | | We're not currently using this, and dropping it allows us to loose a bunch of code which leads us towards the goal of having GdkWindow only for toplevels (and reparenting makes not sense for toplevels).
* gdk: Drop support for native (and thus foreign) subwindowsAlexander Larsson2016-12-161-27/+0
| | | | | | We can't really support these on e.g. wayland anyway, and we're trying to get rid of subwindow at totally in the long term, so lets drop this. It allows us to drop a lot of complexity.
* gdk: Make GdkDrawingContext not per-backendBenjamin Otte2016-11-304-95/+0
| | | | | No backend is using it, and we can put the backend-specific drawing code into GdkGLContext.
* API: Remove gdk_window_process_all_updates()Benjamin Otte2016-11-233-14/+0
| | | | It's completely unused since we have a frame clock.
* build: Complete renaming of broadwayd to gtk4-broadwaydChun-wei Fan2016-11-211-2/+2
| | | | | The parts where the Visual Studio projects are generated must also be updated so that 'make dist' will work properly.
* gdk: Make each backend have a custom GdkDrawingContext subclassBenjamin Otte2016-11-204-0/+95
|