From 66afa1dcebaf8f1562311d1293baf4094f9ac011 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 9 May 2007 22:21:28 +0000 Subject: when a window is fully maxed, make clicking on the titlebar past the edge buttons count as clicking on the buttons --- openbox/frame.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'openbox/frame.h') diff --git a/openbox/frame.h b/openbox/frame.h index 147f59de..ebd8de98 100644 --- a/openbox/frame.h +++ b/openbox/frame.h @@ -136,6 +136,10 @@ struct _ObFrame gint cbwidth_x; /* client border width */ gint cbwidth_y; /* client border width */ + /* the leftmost and rightmost elements in the titlebar */ + ObFrameContext leftmost; + ObFrameContext rightmost; + gboolean max_press; gboolean close_press; gboolean desk_press; @@ -180,7 +184,8 @@ void frame_release_client(ObFrame *self); ObFrameContext frame_context_from_string(const gchar *name); -ObFrameContext frame_context(struct _ObClient *self, Window win); +ObFrameContext frame_context(struct _ObClient *self, Window win, + gint x, gint y); /*! Applies gravity to the client's position to find where the frame should be positioned. -- cgit v1.2.3