Code Review
/
src
/
agl-compositor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add gitreview file for Lucky Lamprey branch
[src/agl-compositor.git]
/
src
/
shell.c
diff --git
a/src/shell.c
b/src/shell.c
index
fb15dfc
..
9e7693e
100644
(file)
--- a/
src/shell.c
+++ b/
src/shell.c
@@
-54,6
+54,7
@@
agl_shell_desktop_advertise_application_id(struct ivi_compositor *ivi,
struct ivi_surface *surface)
{
struct desktop_client *dclient;
struct ivi_surface *surface)
{
struct desktop_client *dclient;
+ static bool display_adv = false;
if (surface->advertised_on_launch)
return;
if (surface->advertised_on_launch)
return;
@@
-63,7
+64,10
@@
agl_shell_desktop_advertise_application_id(struct ivi_compositor *ivi,
const char *app_id =
weston_desktop_surface_get_app_id(surface->dsurface);
if (app_id == NULL) {
const char *app_id =
weston_desktop_surface_get_app_id(surface->dsurface);
if (app_id == NULL) {
- weston_log("WARNING app_is is null, unable to advertise\n");
+ if (!display_adv) {
+ weston_log("WARNING app_is is null, unable to advertise\n");
+ display_adv = true;
+ }
return;
}
agl_shell_desktop_send_application(dclient->resource, app_id);
return;
}
agl_shell_desktop_send_application(dclient->resource, app_id);
@@
-107,6
+111,7
@@
ivi_set_desktop_surface_fullscreen(struct ivi_surface *surface)
agl_shell_desktop_advertise_application_id(ivi, surface);
}
agl_shell_desktop_advertise_application_id(ivi, surface);
}
+#ifdef HAVE_WALTHAM
void
ivi_destroy_waltham_destroy(struct ivi_surface *surface)
{
void
ivi_destroy_waltham_destroy(struct ivi_surface *surface)
{
@@
-177,6
+182,17
@@
ivi_output_notify_waltham_plugin(struct ivi_surface *surface)
api->surface_push_to_remote(weston_surface, app_id, trans_remote, NULL);
}
api->surface_push_to_remote(weston_surface, app_id, trans_remote, NULL);
}
+#else
+void
+ivi_destroy_waltham_destroy(struct ivi_surface *surface)
+{
+}
+static void
+ivi_output_notify_waltham_plugin(struct ivi_surface *surface)
+{
+}
+#endif
+
static void
ivi_set_desktop_surface_remote(struct ivi_surface *surface)
{
static void
ivi_set_desktop_surface_remote(struct ivi_surface *surface)
{
@@
-695,7
+711,7
@@
remove_black_surface(struct ivi_output *output)
weston_layer_entry_remove(&view->layer_link);
weston_view_update_transform(view);
weston_layer_entry_remove(&view->layer_link);
weston_view_update_transform(view);
- weston_
output_damage(output->output
);
+ weston_
view_damage_below(view
);
}
void
}
void
@@
-722,7
+738,7
@@
insert_black_surface(struct ivi_output *output)
view->surface->is_mapped = true;
weston_view_update_transform(view);
view->surface->is_mapped = true;
weston_view_update_transform(view);
- weston_
output_damage(output->output
);
+ weston_
view_damage_below(view
);
}
static void
}
static void
@@
-746,7
+762,9
@@
shell_ready(struct wl_client *client, struct wl_resource *shell_res)
wl_list_for_each_safe(surface, tmp, &ivi->pending_surfaces, link) {
wl_list_remove(&surface->link);
wl_list_for_each_safe(surface, tmp, &ivi->pending_surfaces, link) {
wl_list_remove(&surface->link);
+ wl_list_init(&surface->link);
ivi_check_pending_desktop_surface(surface);
ivi_check_pending_desktop_surface(surface);
+ surface->checked_pending = true;
}
}
}
}
@@
-786,6
+804,7
@@
shell_set_background(struct wl_client *client,
return;
}
return;
}
+ surface->checked_pending = true;
surface->role = IVI_SURFACE_ROLE_BACKGROUND;
surface->bg.output = output;
wl_list_remove(&surface->link);
surface->role = IVI_SURFACE_ROLE_BACKGROUND;
surface->bg.output = output;
wl_list_remove(&surface->link);
@@
-858,6
+877,7
@@
shell_set_panel(struct wl_client *client,
return;
}
return;
}
+ surface->checked_pending = true;
surface->role = IVI_SURFACE_ROLE_PANEL;
surface->panel.output = output;
surface->panel.edge = edge;
surface->role = IVI_SURFACE_ROLE_PANEL;
surface->panel.output = output;
surface->panel.edge = edge;