include/ewmh.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ewmh_update_current_desktop ()
 Updates _NET_CURRENT_DESKTOP with the current desktop number.
void ewmh_update_active_window (xcb_window_t window)
 Updates _NET_ACTIVE_WINDOW with the currently focused window.
void ewmh_update_workarea ()
 Updates the workarea for each desktop.

Function Documentation

void ewmh_update_active_window ( xcb_window_t  window  ) 

Updates _NET_ACTIVE_WINDOW with the currently focused window.

EWMH: The window ID of the currently active window or None if no window has the focus.

Definition at line 45 of file ewmh.c.

References _NET_ACTIVE_WINDOW, atoms, global_conn, and root.

Referenced by reparent_window(), and set_focus().

void ewmh_update_current_desktop (  ) 

Updates _NET_CURRENT_DESKTOP with the current desktop number.

EWMH: The index of the current desktop. This is always an integer between 0 and _NET_NUMBER_OF_DESKTOPS - 1.

Definition at line 31 of file ewmh.c.

References _NET_CURRENT_DESKTOP, atoms, c_ws, global_conn, Workspace::num, and root.

Referenced by set_focus().

void ewmh_update_workarea (  ) 

Updates the workarea for each desktop.

EWMH: Contains a geometry for each desktop. These geometries specify an area that is completely contained within the viewport. Work area SHOULD be used by desktop applications to place desktop icons appropriately.

Definition at line 58 of file ewmh.c.

References _NET_WORKAREA, atoms, DLOG, global_conn, Rect::height, num_workspaces, Workspace::rect, root, smalloc(), TAILQ_FOREACH, Rect::width, workspaces, Rect::x, and Rect::y.

Referenced by randr_query_outputs(), workspace_assign_to(), and workspace_get().

Here is the call graph for this function:


Generated on 16 Apr 2010 for i3 by  doxygen 1.6.1