diff --git a/swindow.h b/swindow.h index 74e3e678e..316e5e268 100644 --- a/swindow.h +++ b/swindow.h @@ -88,7 +88,8 @@ static inline void simplewindow_opacity_set(simple_window_t *sw, double opacity) { sw->opacity = opacity; - window_opacity_set(sw->window, opacity); + if(sw->window != XCB_NONE) + window_opacity_set(sw->window, opacity); } /** Get a simplewindow's opacity.