From dfa945f4cd32a6e0fa7811b2d9676d3ddc84214a Mon Sep 17 00:00:00 2001 From: tadam Date: Sat, 2 Apr 2011 19:18:16 +0000 Subject: [PATCH] CMD_EwwmhBaseStruts: Use EWMH_UpdateWorkArea() and not separate function calls Don't assume the work of EWMH_UpdateWorkArea() will only ever call two function calls by itself in the future; hence, centralise the call to doing that to the correct containing function. --- ChangeLog | 8 ++++++++ fvwm/ewmh_conf.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 910d62d5a..54792395b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-04-02 Thomas Adam + *fvwm/ewmh_conf.c (CMD_EwmhBaseStruts): + Use EWMH_UpdateWorkArea() and not separate function calls + + Don't assume the work of EWMH_UpdateWorkArea() will only ever call two + function calls by itself in the future; hence, centralise the call to + doing that to the correct containing function. + 2011-02-05 Thomas Adam * acinclude.m4: Fix DSO linker error (ld) with missing "-lfontconfig" for fontconfig diff --git a/fvwm/ewmh_conf.c b/fvwm/ewmh_conf.c index 9e547d28a..111dcd633 100644 --- a/fvwm/ewmh_conf.c +++ b/fvwm/ewmh_conf.c @@ -154,8 +154,8 @@ void CMD_EwmhBaseStruts(F_CMD_ARGS) ewmhc.BaseStrut.right = val[1]; ewmhc.BaseStrut.top = val[2]; ewmhc.BaseStrut.bottom = val[3]; - ewmh_ComputeAndSetWorkArea(); - ewmh_HandleDynamicWorkArea(); + + EWMH_UpdateWorkArea(); } } /* -- 2.11.4.GIT