X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.h;h=0c523debeabdf8f4490fdbfa4806cdd6f878f4d3;hb=a51d2082bd28baa11e28441bc0fb4016150618df;hp=e1e8d29082057bf52189b83c06c8e439ca53559a;hpb=c4e4760c41f10aae6af19a4363cb247c71edee4b;p=chaz%2Fopenbox diff --git a/openbox/client.h b/openbox/client.h index e1e8d290..0c523deb 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -1,4 +1,4 @@ -/* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*- +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client.h for the Openbox window manager Copyright (c) 2003 Ben Jansens @@ -137,6 +137,11 @@ struct _ObClient */ Rect area; + /*! Position and size of the window prior to being maximized */ + Rect pre_max_area; + /*! Position and size of the window prior to being fullscreened */ + Rect pre_fullscreen_area; + /*! The window's strut The strut defines areas of the screen that are marked off-bounds for window placement. In theory, where this window exists. @@ -245,10 +250,10 @@ struct _ObClient */ guint decorations; - /*! A user option. When this is set to FALSE the client will not ever + /*! A user option. When this is set to TRUE the client will not ever be decorated. */ - gboolean decorate; + gboolean undecorated; /*! A bitmask of values in the ObFunctions enum The values in the variable specify the ways in which the user is allowed @@ -480,6 +485,12 @@ void client_get_type(ObClient *self); ObClientIcon *client_icon(ObClient *self, int w, int h); +/*! Searches a client's direct parents for a focused window. The function does + not check for the passed client, only for *ONE LEVEL* of its parents. + If no focused parentt is found, NULL is returned. +*/ +ObClient *client_search_focus_parent(ObClient *self); + /*! Searches a client's transients for a focused window. The function does not check for the passed client, only for its transients. If no focused transient is found, NULL is returned. @@ -500,6 +511,12 @@ ObClient *client_search_modal_child(ObClient *self); ObClient *client_search_top_transient(ObClient *self); +/*! Search for a parent of a client. This only searches up *ONE LEVEL*, and + returns the searched for parent if it is a parent, or NULL if not. */ +ObClient *client_search_parent(ObClient *self, ObClient *search); + +/*! Search for a transient of a client. The transient is returned if it is one, + NULL is returned if the given search is not a transient of the client. */ ObClient *client_search_transient(ObClient *self, ObClient *search); /*! Return the "closest" client in the given direction */ @@ -515,8 +532,13 @@ int client_directional_edge_search(ObClient *c, ObDirection dir); */ void client_set_layer(ObClient *self, int layer); +/*! Set a client window to have decorations or not */ +void client_set_undecorated(ObClient *self, gboolean undecorated); + guint client_monitor(ObClient *self); void client_update_sm_client_id(ObClient *self); +ObClient* client_under_pointer(); + #endif