diff --git a/etc/config b/etc/config
index 67bcb147..19cb8c48 100644
--- a/etc/config
+++ b/etc/config
@@ -52,7 +52,7 @@ bindsym Mod1+Return exec i3-sensible-terminal
 bindsym Mod1+Shift+q kill
 
 # start dmenu (a program launcher)
-bindsym Mod1+d exec dmenu_run
+bindsym Mod1+d exec --no-startup-id dmenu_run
 # A more modern dmenu replacement is rofi:
 # bindsym Mod1+d exec rofi -modi drun,run -show drun
 # There also is i3-dmenu-desktop which only displays applications shipping a
diff --git a/etc/config.keycodes b/etc/config.keycodes
index 35468bf0..aa79901b 100644
--- a/etc/config.keycodes
+++ b/etc/config.keycodes
@@ -46,7 +46,7 @@ bindcode $mod+36 exec i3-sensible-terminal
 bindcode $mod+Shift+24 kill
 
 # start dmenu (a program launcher)
-bindcode $mod+40 exec dmenu_run
+bindcode $mod+40 exec --no-startup-id dmenu_run
 # A more modern dmenu replacement is rofi:
 # bindcode $mod+40 exec rofi -modi drun,run -show drun
 # There also is i3-dmenu-desktop which only displays applications shipping a