Index: uspace/lib/display/include/types/display/wndparams.h
===================================================================
--- uspace/lib/display/include/types/display/wndparams.h	(revision c9927c664d54127a7f3eb509f6129ebca2f158f1)
+++ uspace/lib/display/include/types/display/wndparams.h	(revision 9e84d2c5a3c35725eebdbe42c5716609678174c6)
@@ -1,4 +1,4 @@
 /*
- * Copyright (c) 2019 Jiri Svoboda
+ * Copyright (c) 2021 Jiri Svoboda
  * All rights reserved.
  *
@@ -38,4 +38,10 @@
 #include <gfx/coord.h>
 
+/** Window flags */
+typedef enum {
+	/** Popup window (capture events, no focus) */
+	wndf_popup = 0x1
+} display_wnd_flags_t;
+
 /** Parameters for a new window.
  *
@@ -50,4 +56,6 @@
 	/** Minimum size (when being resized) */
 	gfx_coord2_t min_size;
+	/** Flags */
+	display_wnd_flags_t flags;
 } display_wnd_params_t;
 
Index: uspace/lib/ui/include/types/ui/window.h
===================================================================
--- uspace/lib/ui/include/types/ui/window.h	(revision c9927c664d54127a7f3eb509f6129ebca2f158f1)
+++ uspace/lib/ui/include/types/ui/window.h	(revision 9e84d2c5a3c35725eebdbe42c5716609678174c6)
@@ -63,4 +63,10 @@
 } ui_wnd_placement_t;
 
+/** Window flags */
+typedef enum {
+	/** Popup window */
+	ui_wndf_popup = 0x1
+} ui_wnd_flags_t;
+
 /** Window parameters */
 typedef struct {
@@ -73,4 +79,6 @@
 	/** Window placement */
 	ui_wnd_placement_t placement;
+	/** Window flags */
+	ui_wnd_flags_t flags;
 	/** Parent rectangle for popup windows */
 	gfx_rect_t prect;
Index: uspace/lib/ui/include/ui/window.h
===================================================================
--- uspace/lib/ui/include/ui/window.h	(revision c9927c664d54127a7f3eb509f6129ebca2f158f1)
+++ uspace/lib/ui/include/ui/window.h	(revision 9e84d2c5a3c35725eebdbe42c5716609678174c6)
@@ -1,4 +1,4 @@
 /*
- * Copyright (c) 2020 Jiri Svoboda
+ * Copyright (c) 2021 Jiri Svoboda
  * All rights reserved.
  *
Index: uspace/lib/ui/src/popup.c
===================================================================
--- uspace/lib/ui/src/popup.c	(revision c9927c664d54127a7f3eb509f6129ebca2f158f1)
+++ uspace/lib/ui/src/popup.c	(revision 9e84d2c5a3c35725eebdbe42c5716609678174c6)
@@ -94,4 +94,5 @@
 	wparams.style &= ~ui_wds_decorated;
 	wparams.placement = ui_wnd_place_popup;
+	wparams.flags |= ui_wndf_popup;
 
 	/* Compute position of parent rectangle relative to the screen */
Index: uspace/lib/ui/src/window.c
===================================================================
--- uspace/lib/ui/src/window.c	(revision c9927c664d54127a7f3eb509f6129ebca2f158f1)
+++ uspace/lib/ui/src/window.c	(revision 9e84d2c5a3c35725eebdbe42c5716609678174c6)
@@ -188,4 +188,7 @@
 	gfx_rect_dims(&params->rect, &dparams.min_size);
 
+	if ((params->flags & ui_wndf_popup) != 0)
+		dparams.flags |= wndf_popup;
+
 	if (ui->display != NULL) {
 		if (params->placement != ui_wnd_place_default) {
