/* test proggie to show odd xfwm4 behaviour re: GtkDialog windows
 * compile with:
 *   gcc -o xfwm4-dialog-test xfwm4-dialog-test.c `pkg-config gtk+-2.0 --cflags --libs`
 *
 * dialog will start with all buttons - menu, sticky, shade, minimise, maximise,
 * close - but when the dialog loses focus, sticky and minimise will disappear,
 * and the dialog will become sticky across all workspaces.
 */

#include <gtk/gtk.h>

int
main(int argc, char **argv)
{
	GtkWidget *dlg;
	
	gtk_init(&argc, &argv);
	
	dlg = gtk_dialog_new_with_buttons("Test Dialog", NULL, 0,
			GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK,
			GTK_RESPONSE_ACCEPT, NULL);
	/* uncommenting one or both of the following two lines has no effect
	gtk_window_set_type_hint(GTK_WINDOW(dlg), GDK_WINDOW_TYPE_HINT_NORMAL);
	gtk_window_set_modal(GTK_WINDOW(dlg), FALSE);
	*/
	
	gtk_widget_show(dlg);
	gtk_dialog_run(GTK_DIALOG(dlg));
	gtk_widget_destroy(dlg);
	
	return 0;
}

