libwm ===================================================================== A small library for X window manipulation Features ===================================================================== • Depends on [1] libxcb only • Wrappers for all window management operations • Built-in checks for off-screen operations Usage ===================================================================== In order to use the library, you must first include its header file in your source file: #include To link your program against it, compile it as follows: cc pgm.c -lwm -lxcb -o pgm Here is the list of all functions provided bylibwm : wm_init_xcb(); wm_kill_xcb(); wm_is_alive(wid); wm_is_ignored(wid); wm_is_listable(wid, mask); wm_is_mapped(wid); wm_add_atom(name, len); wm_set_atom(wid, atom, type, len, data); wm_get_atom(wid, atom, type, &len); wm_get_atom_name(wid, atom, &len); wm_get_screen(); wm_get_windows(wid, &list); wm_get_focus(); wm_get_attribute(wid, attr); wm_get_cursor(mode, wid, &x, &y); wm_set_border(width, color, wid); wm_set_focus(wid); wm_set_cursor(x, y, mode); wm_set_override(wid, mode); wm_teleport(wid, w, h, x, y); wm_move(wid, mode, x, y); wm_remap(wid, mode); wm_resize(wid, mode, w, h); wm_restack(wid, mode); wm_reg_event(wid, mask); wm_get_monitors(wid, list); wm_get_monitor(index); Their usage is specified in thewm.h header file, as it is quite small for now. Installation ===================================================================== Edit config.mk as needed, then build/install with the following commands: make make install Require [2] libxcb. Development ===================================================================== git clone git://z3bra.org/ [3]libwm.git If you find any bug, please report them or send a patch to [4] dev@z3bra.org. Download ===================================================================== • [5]libwm-1.3.tar.bz2 • [6]libwm-1.2.tar.bz2 • [7]libwm-1.1.tar.bz2 • [8]libwm-1.0.tar.bz2 • [9]LICENSE Link references: [1] - https://xcb.freedesktop.org/ (a) [2] - https://xcb.freedesktop.org/ (a) [3] - gopher://z3bra.org/1/scm/libwm/files.gph (a) [4] - mailto:dev@z3bra.org (a) [5] - gopher://z3bra.org/9/releases/libwm-1.3.tar.bz2 (a) [6] - gopher://z3bra.org/9/releases/libwm-1.2.tar.bz2 (a) [7] - gopher://z3bra.org/9/releases/libwm-1.1.tar.bz2 (a) [8] - gopher://z3bra.org/9/releases/libwm-1.0.tar.bz2 (a) [9] - gopher://z3bra.org/1/scm/libwm/file/LICENSE.gph (a)