From 1a7a9a7585e9a6ae7e8807719ea8f72d2181398a Mon Sep 17 00:00:00 2001 From: somiaj Date: Sat, 12 Jun 2021 09:53:21 -0600 Subject: [PATCH] Make RightPanel use primary monitor dimensions. RightPanel now uses $[monitor.$[monitor.primary].height] to determine its height. This makes the RightPanel the correct height if on a setup where the view port height is different than the primary monitor. --- default-config/config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/default-config/config b/default-config/config index ed695b3cf..58f72a5ab 100644 --- a/default-config/config +++ b/default-config/config @@ -577,9 +577,9 @@ DestroyModuleConfig FvwmScript:* # # Note - To use the system tray you must have "stalonetray" installed. DestroyModuleConfig RightPanel:* -*RightPanel: Geometry 120x$[vp.height]-0+0 +*RightPanel: Geometry 120x$[monitor.$[monitor.primary].height]-0+0 *RightPanel: Colorset 10 -*RightPanel: Rows $[vp.height] +*RightPanel: Rows $[monitor.$[monitor.primary].height] *RightPanel: Columns 120 *RightPanel: Frame 0 *RightPanel: Font "xft:Sans:Bold:size=10:antialias=True" @@ -598,9 +598,9 @@ DestroyModuleConfig RightPanel:* Test (x stalonetray) *RightPanel: (120x20, Swallow(NoClose,UseOld) \ stalonetray 'Exec exec stalonetray --config \ "$[FVWM_DATADIR]/default-config/.stalonetrayrc"', Frame 0) -Test (x stalonetray) PipeRead 'echo "*RightPanel: (120x$(($[vp.height]-225)), \ +Test (x stalonetray) PipeRead 'echo "*RightPanel: (120x$(($[monitor.$[monitor.primary].height]-225)), \ Top, Swallow FvwmIconMan \'Module FvwmIconMan\', Frame 0)"' -Test (!x stalonetray) PipeRead 'echo "*RightPanel: (120x$(($[vp.height]-205)),\ +Test (!x stalonetray) PipeRead 'echo "*RightPanel: (120x$(($[monitor.$[monitor.primary].height]-205)),\ Top, Swallow FvwmIconMan \'Module FvwmIconMan\', Frame 0)"' *RightPanel: (120x45, Swallow DateTime 'Module FvwmScript FvwmScript-DateTime',\ Frame 0)