2009-05-16 11:32:36 -04:00
|
|
|
|
/*
|
|
|
|
|
* vim:ts=8:expandtab
|
|
|
|
|
*
|
|
|
|
|
* i3 - an improved dynamic tiling window manager
|
|
|
|
|
*
|
|
|
|
|
* (c) 2009 Michael Stapelberg and contributors
|
|
|
|
|
*
|
|
|
|
|
* See file LICENSE for license information.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#include <xcb/xcb.h>
|
|
|
|
|
|
|
|
|
|
#include "data.h"
|
|
|
|
|
|
|
|
|
|
#ifndef _CLIENT_H
|
|
|
|
|
#define _CLIENT_H
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Removes the given client from the container, either because it will be inserted into another
|
|
|
|
|
* one or because it was unmapped
|
|
|
|
|
*
|
|
|
|
|
*/
|
2009-05-30 05:35:32 -04:00
|
|
|
|
void client_remove_from_container(xcb_connection_t *conn, Client *client, Container *container, bool remove_from_focusstack);
|
2009-05-16 11:32:36 -04:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Warps the pointer into the given client (in the middle of it, to be specific), therefore
|
|
|
|
|
* selecting it
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
void client_warp_pointer_into(xcb_connection_t *conn, Client *client);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Kills the given window using WM_DELETE_WINDOW or xcb_kill_window
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
void client_kill(xcb_connection_t *conn, Client *window);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Checks if the given window class and title match the given client
|
|
|
|
|
* Window title is passed as "normal" string and as UCS-2 converted string for
|
|
|
|
|
* matching _NET_WM_NAME capable clients as well as those using legacy hints.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
bool client_matches_class_name(Client *client, char *to_class, char *to_title,
|
|
|
|
|
char *to_title_ucs, int to_title_ucs_len);
|
|
|
|
|
|
2009-05-26 10:49:57 -04:00
|
|
|
|
/**
|
|
|
|
|
* Toggles fullscreen mode for the given client. It updates the data structures and
|
|
|
|
|
* reconfigures (= resizes/moves) the client and its frame to the full size of the
|
|
|
|
|
* screen. When leaving fullscreen, re-rendering the layout is forced.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
void client_toggle_fullscreen(xcb_connection_t *conn, Client *client);
|
|
|
|
|
|
2009-06-19 17:18:43 -04:00
|
|
|
|
/**
|
|
|
|
|
* Sets the position of the given client in the X stack to the highest (tiling layer is always
|
|
|
|
|
* on the same position, so this doesn’t matter) below the first floating client, so that
|
|
|
|
|
* floating windows are always on top.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
void client_set_below_floating(xcb_connection_t *conn, Client *client);
|
|
|
|
|
|
2009-06-21 10:14:15 -04:00
|
|
|
|
/**
|
|
|
|
|
* Returns true if the client is floating. Makes the code more beatiful, as floating
|
|
|
|
|
* is not simply a boolean, but also saves whether the user selected the current state
|
|
|
|
|
* or whether it was automatically set.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
bool client_is_floating(Client *client);
|
|
|
|
|
|
2009-05-16 11:32:36 -04:00
|
|
|
|
#endif
|