From e6a0beb34bfe3f445a115eb6df9276bb2692f7dd Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 1 Sep 2013 17:37:53 -0400 Subject: Allow FillToEdge to grow when all its edges are blocked. This change points out how useless the return value from client_find_resize_directional() was, so it also removes that. When all edges are blocked, the FillToEdge action will try to grow all four edges agin without blocking any of them on their current edge. This more closely matches the behaviour of the GrowToEdge action. --- openbox/client.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index a753b123..11a01400 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -496,14 +496,11 @@ typedef enum { CLIENT_RESIZE_SHRINK, } ObClientDirectionalResizeType; -/*! Moves the client area passed in to grow/shrink the given edge. - @return TRUE if any change was made to the client area. -*/ -gboolean client_find_resize_directional( - ObClient *self, - ObDirection side, - ObClientDirectionalResizeType resize_type, - gint *x, gint *y, gint *w, gint *h); +/*! Moves the client area passed in to grow/shrink the given edge. */ +void client_find_resize_directional(ObClient *self, + ObDirection side, + ObClientDirectionalResizeType resize_type, + gint *x, gint *y, gint *w, gint *h); /*! Fullscreen's or unfullscreen's the client window @param fs true if the window should be made fullscreen; false if it should -- cgit v1.2.3