Index: uspace/lib/ui/include/types/ui/msgdialog.h
===================================================================
--- uspace/lib/ui/include/types/ui/msgdialog.h	(revision 41dcabcdd3a7892618b028c8b2f82d2768500453)
+++ uspace/lib/ui/include/types/ui/msgdialog.h	(revision eff458dc0610e2e236a23436d7688091d3843237)
@@ -58,4 +58,12 @@
 } ui_msg_dialog_choice_t;
 
+/** Message dialog flags */
+typedef enum {
+	/** Topmost window */
+	umdf_topmost = 0x1,
+	/** Place to the center of the screen */
+	umdf_center = 0x2
+} ui_msg_dialog_flags_t;
+
 /** Message dialog parameters */
 typedef struct {
@@ -66,4 +74,6 @@
 	/** The choice that the user is given */
 	ui_msg_dialog_choice_t choice;
+	/** Flags */
+	ui_msg_dialog_flags_t flags;
 } ui_msg_dialog_params_t;
 
Index: uspace/lib/ui/src/msgdialog.c
===================================================================
--- uspace/lib/ui/src/msgdialog.c	(revision 41dcabcdd3a7892618b028c8b2f82d2768500453)
+++ uspace/lib/ui/src/msgdialog.c	(revision eff458dc0610e2e236a23436d7688091d3843237)
@@ -111,4 +111,8 @@
 	ui_wnd_params_init(&wparams);
 	wparams.caption = params->caption;
+	if ((params->flags & umdf_topmost) != 0)
+		wparams.flags |= wndf_topmost;
+	if ((params->flags & umdf_center) != 0)
+		wparams.placement = ui_wnd_place_center;
 
 	/* FIXME: Auto layout */
