From 525f7d874bcb18975bfef4db976677e770212756 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 26 Jun 2018 20:41:12 +0200 Subject: Drop down GTK3 file chooser dialog Default floating placement was too large for screen. --- gui/conf/xmonad.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs index 634b9cf..620696a 100644 --- a/gui/conf/xmonad.hs +++ b/gui/conf/xmonad.hs @@ -130,9 +130,12 @@ customEventHook = do fullscreenEventHook customManageHook = composeOne - [ transience - , isDialog -?> doCenterFloat + [ hasRole "GtkFileChooserDialog" -?> doRectFloat dropDown + , isDialog -?> doCenterFloat + , transience , pure True -?> insertPosition Below Newer <+> namedScratchpadManageHook scratchpads ] + where + hasRole x = stringProperty "WM_WINDOW_ROLE" =? x customLogHook = do historyHook -- cgit v1.2.3