include/manage.h File Reference

#include "data.h"
Include dependency graph for manage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void manage_existing_windows (xcb_window_t root)
 Go through all existing windows (if the window manager is restarted) and manage them.
void restore_geometry ()
 Restores the geometry of each window by reparenting it to the root window at the position of its frame.
void manage_window (xcb_window_t window, xcb_get_window_attributes_cookie_t cookie, bool needs_to_be_mapped)
 Do some sanity checks and then reparent the window.

Function Documentation

void manage_existing_windows ( xcb_window_t  root  ) 

Go through all existing windows (if the window manager is restarted) and manage them.

Definition at line 18 of file manage.c.

References conn, manage_window(), and smalloc().

Referenced by main().

Here is the call graph for this function:

void manage_window ( xcb_window_t  window,
xcb_get_window_attributes_cookie_t  cookie,
bool  needs_to_be_mapped 
)
void restore_geometry (  ) 

Restores the geometry of each window by reparenting it to the root window at the position of its frame.

This is to be called *only* before exiting/restarting i3 because of evil side-effects which are to be expected when continuing to run i3.

Definition at line 52 of file manage.c.

References all_cons, Con::border_width, conn, DLOG, Rect::height, Window::id, Con::rect, root, TAILQ_FOREACH, Rect::width, Con::window, Con::window_rect, Rect::x, xcb_set_window_rect(), and Rect::y.

Referenced by i3_restart().

Here is the call graph for this function:


Generated on 7 Feb 2013 for i3 by  doxygen 1.6.1