aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/st.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/st.c b/src/st.c
index 93b56c3..c8327e3 100644
--- a/src/st.c
+++ b/src/st.c
@@ -3618,8 +3618,10 @@ wldrawcursor(void)
void
wlsettitle(char *title)
{
- //xdg_surface_set_title(wl.xdgsurface, title);
- zxdg_toplevel_v6_set_title(wl.xdgtoplevel, title);
+ if(wl.xdgsurface)
+ xdg_surface_set_title(wl.xdgsurface, title);
+ else
+ zxdg_toplevel_v6_set_title(wl.xdgtoplevel, title);
}
void