# 1.2.0 uses two HAVE_GTK_LAYER_SHELL fields outside its guard, in
# terminal_window_dropdown_finalize: it can't build without layer-shell.
prepare() {
	f=terminal/terminal-window-dropdown.c
	sed -i -e '570i #ifdef HAVE_GTK_LAYER_SHELL' -e '574a #endif' "$f"
	sed -n 570p "$f" | grep -q '^#ifdef HAVE_GTK_LAYER_SHELL$'
	sed -n 571p "$f" | grep -q 'set_monitor_idle_id != 0'
	sed -n 575p "$f" | grep -q 'g_source_remove (dropdown->monitor_removed_idle_id)'
	sed -n 576p "$f" | grep -q '^#endif$'
}
