src: Don't attempt to split background role window
[src/agl-compositor.git] / src / shell.c
index 13c03f0..a44dddf 100644 (file)
@@ -1897,7 +1897,7 @@ shell_ivi_surf_count_split_surfaces(struct ivi_compositor *ivi)
 static
 void shell_set_app_split(struct wl_client *client, struct wl_resource *res,
                         const char *app_id, uint32_t orientation, int32_t width,
-                        struct wl_resource *output_res)
+                        int32_t sticky, struct wl_resource *output_res)
 {
        struct ivi_surface *surf;
        struct ivi_compositor *ivi = wl_resource_get_user_data(res);
@@ -1921,7 +1921,7 @@ void shell_set_app_split(struct wl_client *client, struct wl_resource *res,
                return;
        }
 
-       if (output->previous_active) {
+       if (output->previous_active && output->background != output->previous_active) {
                struct weston_view *ev = output->previous_active->view;
 
                if (!weston_view_is_mapped(ev))