From 8ed58a60ffdd8b54a59cdab9c3eaa4465c8bdf47 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 7 Oct 2018 12:19:22 +0200 Subject: Fix Telegram media viewer window placement --- gui/conf/xmonad.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gui/conf/xmonad.hs') diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs index bcdd98c..115af69 100644 --- a/gui/conf/xmonad.hs +++ b/gui/conf/xmonad.hs @@ -93,7 +93,7 @@ scratchpads host = (customFloating $ hideScreenBorder host dropDownLarge) , NS "documentation" "zeal" (className =? "Zeal") (customFloating $ hideScreenBorder host dropDown) - , NS "messaging" "telegram-desktop" (className =? "TelegramDesktop") + , NS "messaging" "telegram-desktop" ((className =? "TelegramDesktop") <&&> (title /=? "Media viewer")) (customFloating $ hideScreenBorder host sideBarRight) ] windowBringerDmenuConfig = def { menuCommand = "rofi" @@ -181,11 +181,13 @@ customEventHook = do customManageHook host = composeOne [ hasRole "GtkFileChooserDialog" -?> doRectFloat dropDown + , isTelegramMediaViewer -?> doFullFloat , isDialog -?> doCenterFloat , transience , pure True -?> insertPosition Below Newer <+> namedScratchpadManageHook (scratchpads host) ] where hasRole x = stringProperty "WM_WINDOW_ROLE" =? x + isTelegramMediaViewer = (className =? "TelegramDesktop") <&&> (title =? "Media viewer") customLogHook = do historyHook -- cgit v1.2.3