Skip to content

Rename window to surface

Alexander Larsson requested to merge alexl/gtk:rename-window-to-surface into master

This renames GdkWindow to GdkSurface, and changes a bunch of related types and interfaces. In particular it is now event->surface and widget->surface.

This has several advantages.

First of all it avoids the namespace conflicts with GtkWindow, minimizing confusion (and allowing the merger of gdk and gtk).

Secondly it is a better name for the new place that GdkWindow has in gtk4 where we want to drop things like subwindows and other complexities of the code.

Third, it matches what many systems call this, including wayland, which is imho going to be the main gtk+ backend going forward.

Merge request reports