summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-04-02 22:18:58 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-04-02 22:18:58 -0400
commit32e568600f8793356d069f49d3239d24c060e083 (patch)
treea1a7e902a951b1085a158f19293b0b1da128c6c4
parent1659daa21f5da3e7f10f3fa485390b29bc5ea2be (diff)
shell: Break up a few long lines
-rw-r--r--src/shell.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shell.c b/src/shell.c
index feb388f..76ffed7 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1932,6 +1932,7 @@ switcher_next(struct switcher *switcher)
struct weston_compositor *compositor = switcher->compositor;
struct weston_surface *surface;
struct weston_surface *first = NULL, *prev = NULL, *next = NULL;
+ struct shell_surface *shsurf;
wl_list_for_each(surface, &compositor->surface_list, link) {
switch (get_shell_surface_type(surface)) {
@@ -1971,8 +1972,9 @@ switcher_next(struct switcher *switcher)
switcher->current = next;
next->alpha = 255;
- if (get_shell_surface_type(switcher->current) == SHELL_SURFACE_FULLSCREEN)
- get_shell_surface(switcher->current)->fullscreen.black_surface->alpha = 255;
+ shsurf = get_shell_surface(switcher->current);
+ if (shsurf && shsurf->type ==SHELL_SURFACE_FULLSCREEN)
+ shsurf->fullscreen.black_surface->alpha = 255;
}
static void