Skip to content

Commit

Permalink
Make RightPanel use primary monitor dimensions.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
somiaj authored and ThomasAdam committed Jun 12, 2021
1 parent af4e952 commit 1a7a9a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions default-config/config
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 1a7a9a7

Please sign in to comment.