Index: uspace/lib/ui/include/types/ui/msgdialog.h
===================================================================
--- uspace/lib/ui/include/types/ui/msgdialog.h	(revision 8279aab04ec4921ce66c9162c2c0a3e0ba480230)
+++ uspace/lib/ui/include/types/ui/msgdialog.h	(revision 4ef27ebf98a0656e09889b7d00efdec03343f1aa)
@@ -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 8279aab04ec4921ce66c9162c2c0a3e0ba480230)
+++ uspace/lib/ui/src/msgdialog.c	(revision 4ef27ebf98a0656e09889b7d00efdec03343f1aa)
@@ -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 */
