xdg-shell-v6: rename toplevel and popup fields in wlr_xdg_surface_v6 for consistency

This commit is contained in:
emersion 2018-03-13 22:09:44 +01:00
parent 657e5c8c0d
commit 149209b72e
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 92 additions and 93 deletions

View file

@ -92,10 +92,9 @@ struct wlr_xdg_surface_v6 {
struct wl_list link; // wlr_xdg_client_v6::surfaces
enum wlr_xdg_surface_v6_role role;
// TODO: the _state prefix should be dropped
union {
struct wlr_xdg_toplevel_v6 *toplevel_state;
struct wlr_xdg_popup_v6 *popup_state;
struct wlr_xdg_toplevel_v6 *toplevel;
struct wlr_xdg_popup_v6 *popup;
};
struct wl_list popups; // wlr_xdg_popup_v6::link