Commit graph

98 commits

Author SHA1 Message Date
David Hill
9928c4547f convert XCreateFontCursor to XCB 2012-07-21 05:58:32 +08:00
David Hill
d8971cd3d6 convert XGrabCursor to XCB 2012-07-21 05:58:32 +08:00
David Hill
7d1350c820 XQueryPointer to XCB 2012-07-21 05:58:32 +08:00
David Hill
2be758c051 XCreateSimpleWindow and XCreatePixmap -> XCB 2012-07-21 05:58:32 +08:00
David Hill
20ecf7c8bb XCreateGC, XFreeGC, XFillRectangle, DRAWSTRING replaced with XCB 2012-07-21 05:58:32 +08:00
David Hill
1b767e68ed more readable loop. also fixes minor memleak 2012-07-21 05:58:32 +08:00
David Hill
b78adefb65 better allocation 2012-07-21 05:58:32 +08:00
David Hill
e4a5f55983 remove useless cast 2012-07-21 05:58:31 +08:00
David Hill
dd37445ab8 remove no longer used get_property function 2012-07-21 05:58:31 +08:00
David Hill
e0ef82c3d1 convert get_wm_name to xcb 2012-07-21 05:58:31 +08:00
David Hill
fdefc1887c replace DefaultWidth, DefaultHeight, and DefaultDepth
with a local function that uses XCB
2012-07-21 05:58:31 +08:00
David Hill
75353df79e fix propagate and window ID swapage. 2012-07-21 05:58:31 +08:00
David Hill
c6884e7ede missing xcb_icccm_get_wm_hints_reply #define for __OpenBSD__ 2012-07-21 05:58:31 +08:00
David Hill
4523933281 switch to xcb_get_screen_resources_current* 2012-07-21 05:58:31 +08:00
Reginald Kennedy
90f1696b7a Update code to compile against XCB util-wm >= 0.3.8
XCB ICCCM public functions, types and macros are now prefixed.
A temporary fix has been added for OpenBSD.  Needs improvement.

Resolve a variable naming conflict.

Set num_screens in unmap_all.

In workaround(), utf8_string should be netwmname, not netwmcheck.

Initialize some uninitialized pointers.

Update debug printf format to reflect new xcb variable types.

Vacuum up whitespace.

Add XCB libs to linux Makefile
2012-07-21 05:58:31 +08:00
Reginald Kennedy
8ed4457ecc Fix dumpwins(). 2012-07-21 05:58:31 +08:00
David Hill
cff561c10b replace XSync calls with a home grown function 2012-07-21 05:58:31 +08:00
David Hill
7552391bb7 convert config_win and fake_keypress to XCB 2012-07-21 05:58:31 +08:00
David Hill
38fa20eb4b use XCB_RANDR_SCREEN_CHANGE_NOTIFY 2012-07-21 05:58:31 +08:00
David Hill
a261181f03 convert dumpwins() to XCB 2012-07-21 05:58:31 +08:00
David Hill
77a91a26d1 go back to using XPending() for now.
call xcb_flush() after raising windows.
2012-07-21 05:58:31 +08:00
David Hill
7b36e544be replace xrandr setup with XCB 2012-07-21 05:58:31 +08:00
David Hill
bef91830c7 convert a XSelectInput to XCB 2012-07-21 05:58:31 +08:00
David Hill
619a0bfe95 convert bar_urgent to XCB 2012-07-21 05:58:31 +08:00
David Hill
b3f747ce96 Revert "convert a XGetWindowAttributes"
This reverts commit 4f87451a3ee933bae873789020054ba95d9626f4.

It is not doing what it is supposed to do :)
2012-07-21 05:58:31 +08:00
David Hill
ee9d31bb5d convert a XGetWindowAttributes 2012-07-21 05:58:31 +08:00
David Hill
c6485fbba4 convert XWarpPointer to XCB 2012-07-21 05:58:31 +08:00
David Hill
f8a013da2a convert XSetWindowBorder()'s and unmanage_window() to XCB 2012-07-21 05:58:31 +08:00
David Hill
305d315fd5 convert root_to_region to XCB 2012-07-21 05:58:31 +08:00
David Hill
54d1d17447 convert send_to_ws() and client_msg() to XCB 2012-07-21 05:58:30 +08:00
David Hill
94ece03a60 convert XMapRaised to XCB 2012-07-21 05:58:30 +08:00
David Hill
1b5d8e8818 convert XKillClient to xcb 2012-07-21 05:58:30 +08:00
David Hill
1594c28e74 convert a lot more code over to xcb. 2012-07-21 05:58:30 +08:00
David Hill
0d87fa21e2 create function get_atom_from_string() and initial XCB RANDR support 2012-07-21 05:58:30 +08:00
David Hill
b086f741a6 convert ewmh_autoquirk to XCB 2012-07-21 05:58:30 +08:00
David Hill
e33b66766f convert teardown_ewmh to XCB 2012-07-21 05:58:30 +08:00
David Hill
0ac5177d7b convert ewmh_get_win_state to XCB 2012-07-21 05:58:30 +08:00
David Hill
e4fe23a921 convert set_win_state() and getstate() to XCB.
convert a XUngrabKey to XCB
2012-07-21 05:58:30 +08:00
David Hill
e18f7c05ed oops - don't xcb_disconnect() on restart. 2012-07-21 05:58:30 +08:00
David Hill
0943667cdc convert bar_refresh() to XCB 2012-07-21 05:58:30 +08:00
David Hill
2594aa6939 convert name_to_color to XCB
note:  XCB doesn't not support RGB:/RR/GG/BB syntax.
2012-07-21 05:58:30 +08:00
David Hill
46139e4404 convert update_window() to XCB 2012-07-21 05:58:30 +08:00
David Hill
dbbf2709df convert ewmh_update_win_state() to XCB 2012-07-21 05:58:30 +08:00
David Hill
e3447e3952 replace ScreenCount() calls with XCB calls. 2012-07-21 05:58:30 +08:00
David Hill
2f1cecab3f Change some 'Window' types to xcb_window_t's. 2012-07-21 05:58:30 +08:00
David Hill
f2da41ebd0 convert grabbuttons() and partial unfocus_win to XCB 2012-07-21 05:58:30 +08:00
David Hill
64eabd5641 make ewmh_update_actions() use XCB. Also convert ewmh_hint
structure to XCB.
2012-07-21 05:58:30 +08:00
David Hill
ff9fc42a00 convert window_get_pid and partially custom_region to xcb 2012-07-21 05:58:30 +08:00
David Hill
f049b883c1 make get_iconic use xcb 2012-07-21 05:58:30 +08:00
David Hill
4b08cf2e01 make update_iconic() use xcb 2012-07-21 05:58:30 +08:00