summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2024-11-13 17:04:26 +0200
committerMarius Vlad <marius.vlad@collabora.com>2024-11-25 21:09:53 +0200
commitc023bf598d3815f4ebaeab2b8dbe76cc7903405b (patch)
treedb4bc4b0f4f0e4bf9160e1c2346ccf798bbd8afd
parentf2ebad30021414ae4a1c1b67f811bef0d9893993 (diff)
desktop: Remove notification for mapping first time
This no longer has applicability as there's no one to use it (agl-shell-desktop was the only user for it). Bug-AGL: SPEC-4672 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Id907d0670592b54e776267c193859f981a09f44a
-rw-r--r--src/desktop.c22
-rw-r--r--src/ivi-compositor.h4
2 files changed, 0 insertions, 26 deletions
diff --git a/src/desktop.c b/src/desktop.c
index 8709d89..ab53601 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -49,14 +49,6 @@ ivi_layout_destroy_saved_outputs(struct ivi_compositor *ivi)
}
static void
-desktop_advertise_app(struct wl_listener *listener, void *data)
-{
- struct ivi_surface *surface;
-
- surface = wl_container_of(listener, surface, listener_advertise_app);
-}
-
-static void
desktop_ping_timeout(struct weston_desktop_client *dclient, void *userdata)
{
/* not supported */
@@ -203,16 +195,9 @@ desktop_surface_added(struct weston_desktop_surface *dsurface, void *userdata)
surface->dsurface = dsurface;
surface->role = IVI_SURFACE_ROLE_NONE;
surface->mapped = false;
- surface->advertised_on_launch = false;
surface->checked_pending = false;
wl_list_init(&surface->link);
- wl_signal_init(&surface->signal_advertise_app);
-
- surface->listener_advertise_app.notify = desktop_advertise_app;
- wl_signal_add(&surface->signal_advertise_app,
- &surface->listener_advertise_app);
-
weston_desktop_surface_set_user_data(dsurface, surface);
if (ivi->policy && ivi->policy->api.surface_create &&
@@ -293,10 +278,6 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata)
ivi_seat = get_ivi_shell_seat(wseat);
output = ivi_layout_get_output_from_surface(surface);
-
- wl_list_remove(&surface->listener_advertise_app.link);
- surface->listener_advertise_app.notify = NULL;
-
app_id = weston_desktop_surface_get_app_id(dsurface);
/* special corner-case, pending_surfaces which are never activated or
@@ -434,9 +415,6 @@ desktop_committed(struct weston_desktop_surface *dsurface,
shell_send_app_state(ivi, app_id, AGL_SHELL_APP_STATE_STARTED);
}
- if (!surface->advertised_on_launch &&
- !wl_list_empty(&surface->ivi->desktop_clients))
- wl_signal_emit(&surface->signal_advertise_app, surface);
/* this repaint schedule is needed to allow resizing to work with the
* help of the hidden layer:
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index f0fab95..be9943a 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -317,7 +317,6 @@ struct ivi_surface {
int32_t width, height;
} pending;
bool mapped;
- bool advertised_on_launch;
bool checked_pending;
enum {
NORMAL,
@@ -338,9 +337,6 @@ struct ivi_surface {
struct ivi_remote_surface remote;
};
- struct wl_listener listener_advertise_app;
- struct wl_signal signal_advertise_app;
-
struct {
bool is_set;
int32_t x;