JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
spectrwm.git
12 years agoAdd xcb_flush to wkill().
Reginald Kennedy [Sun, 15 Jul 2012 00:39:21 +0000 (08:39 +0800)]
Add xcb_flush to wkill().

12 years agoFix move() and resize() for mouse input.
Reginald Kennedy [Sat, 14 Jul 2012 23:44:41 +0000 (07:44 +0800)]
Fix move() and resize() for mouse input.

Remove useless visibilitynotify().

12 years agooops, this should compare to type and not response_type.
David Hill [Sat, 14 Jul 2012 22:48:37 +0000 (18:48 -0400)]
oops, this should compare to type and not response_type.
Fixes full screen.

12 years agoprint the atom type instead of the response type.
David Hill [Sat, 14 Jul 2012 22:43:31 +0000 (18:43 -0400)]
print the atom type instead of the response type.

12 years agoif 0 the select() code in the event loop.
David Hill [Sat, 14 Jul 2012 21:53:41 +0000 (17:53 -0400)]
if 0 the select() code in the event loop.
I have no idea the purpose of it.

12 years agoRedraw bar on exposure.
Reginald Kennedy [Sat, 14 Jul 2012 21:34:25 +0000 (05:34 +0800)]
Redraw bar on exposure.

12 years agoxcb_flush before polling for events
David Hill [Sat, 14 Jul 2012 21:26:45 +0000 (17:26 -0400)]
xcb_flush before polling for events

12 years agoMake DPRINTF and DNPRINTF obey 80 col while improving readability.
Reginald Kennedy [Sat, 14 Jul 2012 20:35:15 +0000 (04:35 +0800)]
Make DPRINTF and DNPRINTF obey 80 col while improving readability.

Debug time is now seconds since start.

12 years agoadd a timestamp to debugging messages
David Hill [Sat, 14 Jul 2012 20:17:37 +0000 (16:17 -0400)]
add a timestamp to debugging messages

rename time variable to timestamp

12 years agoRemove the larger hammer in focus_win(), at least temporarily.
Reginald Kennedy [Sat, 14 Jul 2012 19:48:10 +0000 (03:48 +0800)]
Remove the larger hammer in focus_win(), at least temporarily.

Add the rest of the X event types to event_handle(), commented out.

Remove an unused global variable.

12 years agono point in setting state on an already destroyed window.
David Hill [Sat, 14 Jul 2012 15:39:05 +0000 (11:39 -0400)]
no point in setting state on an already destroyed window.
it just produces an error.

ok lordreg

12 years agoIn event_error(), show the name of the request that caused the error.
Reginald Kennedy [Sat, 14 Jul 2012 15:26:50 +0000 (23:26 +0800)]
In event_error(), show the name of the request that caused the error.

12 years agoUse xcb_event_get_error_label() instead of doing the work manually.
Reginald Kennedy [Sat, 14 Jul 2012 15:03:05 +0000 (23:03 +0800)]
Use xcb_event_get_error_label() instead of doing the work manually.

12 years agoRemove redundant geteventname() since there is xcb_event_get_label().
Reginald Kennedy [Sat, 14 Jul 2012 14:56:40 +0000 (22:56 +0800)]
Remove redundant geteventname() since there is xcb_event_get_label().

12 years agoAdd Error event type to debug output.
Reginald Kennedy [Sat, 14 Jul 2012 14:49:24 +0000 (22:49 +0800)]
Add Error event type to debug output.

Add event_type value to debug output.

12 years agoRemove redundant defines for XCB error macros.
Reginald Kennedy [Sat, 14 Jul 2012 13:52:05 +0000 (21:52 +0800)]
Remove redundant defines for XCB error macros.
The XCB_EVENT_ERROR_BAD_* macros were simply removed without new ones
being added.

12 years agoFix XCB error macros to use current naming.
Reginald Kennedy [Sat, 14 Jul 2012 10:38:22 +0000 (18:38 +0800)]
Fix XCB error macros to use current naming.

Add -lxcb-xtest to Linux Makefile.

Indentation of multi-line statements should be 4 spaces.

Remove EOL whitespace.

12 years agoinitial event error handling
David Hill [Sat, 14 Jul 2012 06:54:32 +0000 (02:54 -0400)]
initial event error handling

12 years agoremove some xcb_flush calls
David Hill [Sat, 14 Jul 2012 06:26:22 +0000 (02:26 -0400)]
remove some xcb_flush calls

12 years agoreplace XTestFakeButtonEvent with xcb
David Hill [Fri, 13 Jul 2012 23:59:26 +0000 (19:59 -0400)]
replace XTestFakeButtonEvent with xcb

12 years agoFix 'double keypress' issue.
Reginald Kennedy [Fri, 13 Jul 2012 23:49:54 +0000 (07:49 +0800)]
Fix 'double keypress' issue.

12 years agoConvert geteventname() to XCB.
Reginald Kennedy [Fri, 13 Jul 2012 23:44:45 +0000 (07:44 +0800)]
Convert geteventname() to XCB.

Add basic debug output of events in the main event loop.

12 years agoFix linux Makefile.
Reginald Kennedy [Fri, 13 Jul 2012 23:32:05 +0000 (07:32 +0800)]
Fix linux Makefile.

Some whitespace.

12 years agoGet rid of a bunch of leftover Xlib events.
David Hill [Fri, 13 Jul 2012 23:22:10 +0000 (19:22 -0400)]
Get rid of a bunch of leftover Xlib events.

12 years agoFix segfault on search_win().
Reginald Kennedy [Fri, 13 Jul 2012 22:19:31 +0000 (06:19 +0800)]
Fix segfault on search_win().
get_screen(sw->idx) was attempting to get xcb screen info from the
window index #s which would mean attempting to get a screen #2, 3, 4,
etc depending on # of windows on the screen.

Fix issue with search_win not creating windows.
The solution was to use XCB_COPY_FROM_PARENT instead of
screen->root_depth and screen->root_visual.  Turns out we dont need to
query screen information in most cases.  Seems that we still need
screen->root_depth in xcb_create_pixmap().

Clean up a few multi-line statements; openbsd styling manual dictates
that 4 spaces be used for indentation when breaking a statement to
multiple lines.

Cleanup some end of line spaces/tabs.

12 years agoinitial stab at events. ugly.
David Hill [Fri, 13 Jul 2012 20:57:32 +0000 (16:57 -0400)]
initial stab at events.  ugly.

12 years agoconvert an #if 0'd XGetWMNormalHints to XCB
David Hill [Fri, 13 Jul 2012 18:15:09 +0000 (14:15 -0400)]
convert an #if 0'd XGetWMNormalHints to XCB

12 years agoFix bar_print() so that the background of the text matches the bar color.
Reginald Kennedy [Fri, 13 Jul 2012 18:08:09 +0000 (02:08 +0800)]
Fix bar_print() so that the background of the text matches the bar color.

12 years agomissed xcb_icccm_get_wm_protocols_reply_wipe define to compile on older xcb-utils
David Hill [Fri, 13 Jul 2012 18:04:34 +0000 (14:04 -0400)]
missed xcb_icccm_get_wm_protocols_reply_wipe define to compile on older xcb-utils

12 years agoConvert XGrabKey and Keycode to XCB
David Hill [Fri, 13 Jul 2012 18:03:24 +0000 (14:03 -0400)]
Convert XGrabKey and Keycode to XCB

12 years agoFix XCB ICCCM functions to use the icccm prefix.
Reginald Kennedy [Fri, 13 Jul 2012 17:53:31 +0000 (01:53 +0800)]
Fix XCB ICCCM functions to use the icccm prefix.

Use get_atom_from_string() instead of xcb_atom_get_fast*() since it was
removed from XCB.

Fix configurerequest debug printf to use the new array.

12 years agomake syms a global so we don't allocate and free it constantly
David Hill [Fri, 13 Jul 2012 17:45:35 +0000 (13:45 -0400)]
make syms a global so we don't allocate and free it constantly

12 years agoconvert a XConfigureWindow to XCB.
David Hill [Fri, 13 Jul 2012 17:36:57 +0000 (13:36 -0400)]
convert a XConfigureWindow to XCB.

Also, only set the actual masks from the event handler.

12 years agoxcb_disconnect into restart
David Hill [Fri, 13 Jul 2012 03:04:41 +0000 (23:04 -0400)]
xcb_disconnect into restart

12 years agoremove a debug statement that snuck in
David Hill [Fri, 13 Jul 2012 02:49:52 +0000 (22:49 -0400)]
remove a debug statement that snuck in

12 years agoxcb_flush in restart
David Hill [Fri, 13 Jul 2012 02:48:44 +0000 (22:48 -0400)]
xcb_flush in restart

12 years agoXCloseDisplay no longer needed
David Hill [Fri, 13 Jul 2012 02:47:04 +0000 (22:47 -0400)]
XCloseDisplay no longer needed

12 years agoconvert updatenumlockmask to XCB
David Hill [Fri, 13 Jul 2012 02:40:07 +0000 (22:40 -0400)]
convert updatenumlockmask to XCB

12 years agoswitch one remaining XUnmapWindow to xcb. Change a few Xlib defines to XCB
David Hill [Fri, 13 Jul 2012 01:56:33 +0000 (21:56 -0400)]
switch one remaining XUnmapWindow to xcb.  Change a few Xlib defines to XCB

12 years agoconvert a XGetWindowAttributes to XCB
David Hill [Fri, 13 Jul 2012 01:24:07 +0000 (21:24 -0400)]
convert a XGetWindowAttributes to XCB

12 years agomove drain_enter_notify back to Xlib events til we are ready to do everything
David Hill [Fri, 13 Jul 2012 01:21:19 +0000 (21:21 -0400)]
move drain_enter_notify back to Xlib events til we are ready to do everything

12 years agoturn debugging back off
David Hill [Fri, 13 Jul 2012 01:20:21 +0000 (21:20 -0400)]
turn debugging back off

12 years agoConvert XGetWMNormalHints to XCB. Also fix a bug masking to the wrong value (I think)
David Hill [Thu, 12 Jul 2012 21:28:15 +0000 (17:28 -0400)]
Convert XGetWMNormalHints to XCB.  Also fix a bug masking to the wrong value (I think)

12 years agomake SWM_DEBUG compile again
David Hill [Thu, 12 Jul 2012 21:19:22 +0000 (17:19 -0400)]
make SWM_DEBUG compile again

12 years agocheck to see if there is actual data to use before proceeding
David Hill [Thu, 12 Jul 2012 21:14:47 +0000 (17:14 -0400)]
check to see if there is actual data to use before proceeding

12 years agofix to actually check there is data to copy.
David Hill [Thu, 12 Jul 2012 21:11:48 +0000 (17:11 -0400)]
fix to actually check there is data to copy.

12 years agoXGetClassHint converted to XCB
David Hill [Thu, 12 Jul 2012 19:58:01 +0000 (15:58 -0400)]
XGetClassHint converted to XCB

12 years agoreplace XGetWindowAttributes with xcb window geometry
David Hill [Thu, 12 Jul 2012 19:47:20 +0000 (15:47 -0400)]
replace XGetWindowAttributes with xcb window geometry

12 years agoconvert XGetAtomName to xcb
David Hill [Thu, 12 Jul 2012 18:51:01 +0000 (14:51 -0400)]
convert XGetAtomName to xcb

12 years agofix use after free
David Hill [Thu, 12 Jul 2012 18:45:47 +0000 (14:45 -0400)]
fix use after free

12 years agocleanup get_iconic function
David Hill [Thu, 12 Jul 2012 18:30:52 +0000 (14:30 -0400)]
cleanup get_iconic function

12 years agoconvert a XGetWindowProperty to xcb
David Hill [Thu, 12 Jul 2012 18:23:07 +0000 (14:23 -0400)]
convert a XGetWindowProperty to xcb

12 years agofix crash in get_win_name.
David Hill [Thu, 12 Jul 2012 17:28:49 +0000 (13:28 -0400)]
fix crash in get_win_name.

Only wipe the reply if the reply was successful.

12 years agosupport rgb:rr/gg/bb colors
David Hill [Thu, 12 Jul 2012 16:46:15 +0000 (12:46 -0400)]
support rgb:rr/gg/bb colors

12 years agoXGetTransientForHint to XCB
David Hill [Wed, 11 Jul 2012 05:54:43 +0000 (01:54 -0400)]
XGetTransientForHint to XCB

12 years agoXGetWMProtocols to XCB
David Hill [Wed, 11 Jul 2012 05:47:04 +0000 (01:47 -0400)]
XGetWMProtocols to XCB

12 years agoconvert another XGetWindowAttributes to xcb
David Hill [Wed, 11 Jul 2012 05:19:08 +0000 (01:19 -0400)]
convert another XGetWindowAttributes to xcb

12 years agoXGetWMHints to xcb
David Hill [Wed, 11 Jul 2012 04:07:55 +0000 (00:07 -0400)]
XGetWMHints to xcb

12 years agomissed a XCreateFontCursor. Also convert XDefineCursor to XCB
David Hill [Wed, 11 Jul 2012 03:54:58 +0000 (23:54 -0400)]
missed a XCreateFontCursor.  Also convert XDefineCursor to XCB

12 years agoconvert XCreateFontCursor to XCB
David Hill [Wed, 11 Jul 2012 03:37:02 +0000 (23:37 -0400)]
convert XCreateFontCursor to XCB

12 years agoconvert XGrabCursor to XCB
David Hill [Wed, 11 Jul 2012 03:16:32 +0000 (23:16 -0400)]
convert XGrabCursor to XCB

12 years agoXQueryPointer to XCB
David Hill [Tue, 10 Jul 2012 22:16:35 +0000 (18:16 -0400)]
XQueryPointer to XCB

12 years agoXCreateSimpleWindow and XCreatePixmap -> XCB
David Hill [Tue, 10 Jul 2012 20:32:41 +0000 (16:32 -0400)]
XCreateSimpleWindow and XCreatePixmap -> XCB

12 years agoXCreateGC, XFreeGC, XFillRectangle, DRAWSTRING replaced with XCB
David Hill [Tue, 10 Jul 2012 20:06:05 +0000 (16:06 -0400)]
XCreateGC, XFreeGC, XFillRectangle, DRAWSTRING replaced with XCB

12 years agomore readable loop. also fixes minor memleak
David Hill [Tue, 10 Jul 2012 18:52:19 +0000 (14:52 -0400)]
more readable loop.  also fixes minor memleak

12 years agobetter allocation
David Hill [Tue, 10 Jul 2012 18:42:07 +0000 (14:42 -0400)]
better allocation

12 years agoremove useless cast
David Hill [Tue, 10 Jul 2012 18:27:16 +0000 (14:27 -0400)]
remove useless cast

12 years agoremove no longer used get_property function
David Hill [Tue, 10 Jul 2012 17:23:14 +0000 (13:23 -0400)]
remove no longer used get_property function

12 years agoconvert get_wm_name to xcb
David Hill [Tue, 10 Jul 2012 17:22:30 +0000 (13:22 -0400)]
convert get_wm_name to xcb

12 years agoreplace DefaultWidth, DefaultHeight, and DefaultDepth
David Hill [Tue, 10 Jul 2012 16:50:37 +0000 (12:50 -0400)]
replace DefaultWidth, DefaultHeight, and DefaultDepth
with a local function that uses XCB

12 years agofix propagate and window ID swapage.
David Hill [Mon, 9 Jul 2012 21:52:30 +0000 (17:52 -0400)]
fix propagate and window ID swapage.

12 years agomissing xcb_icccm_get_wm_hints_reply #define for __OpenBSD__
David Hill [Mon, 9 Jul 2012 21:51:37 +0000 (17:51 -0400)]
missing xcb_icccm_get_wm_hints_reply #define for __OpenBSD__

12 years agoswitch to xcb_get_screen_resources_current*
David Hill [Mon, 9 Jul 2012 21:50:56 +0000 (17:50 -0400)]
switch to xcb_get_screen_resources_current*

12 years agoUpdate code to compile against XCB util-wm >= 0.3.8
Reginald Kennedy [Sat, 7 Jul 2012 11:18:08 +0000 (19:18 +0800)]
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

12 years agoFix dumpwins().
Reginald Kennedy [Sat, 7 Jul 2012 10:05:47 +0000 (18:05 +0800)]
Fix dumpwins().

12 years agoreplace XSync calls with a home grown function
David Hill [Fri, 6 Jul 2012 21:21:46 +0000 (17:21 -0400)]
replace XSync calls with a home grown function

12 years agoconvert config_win and fake_keypress to XCB
David Hill [Fri, 6 Jul 2012 21:09:25 +0000 (17:09 -0400)]
convert config_win and fake_keypress to XCB

12 years agouse XCB_RANDR_SCREEN_CHANGE_NOTIFY
David Hill [Fri, 6 Jul 2012 20:36:48 +0000 (16:36 -0400)]
use XCB_RANDR_SCREEN_CHANGE_NOTIFY

12 years agoconvert dumpwins() to XCB
David Hill [Fri, 6 Jul 2012 20:31:40 +0000 (16:31 -0400)]
convert dumpwins() to XCB

12 years agogo back to using XPending() for now.
David Hill [Fri, 6 Jul 2012 20:07:47 +0000 (16:07 -0400)]
go back to using XPending() for now.
call xcb_flush() after raising windows.

12 years agoreplace xrandr setup with XCB
David Hill [Fri, 6 Jul 2012 20:02:07 +0000 (16:02 -0400)]
replace xrandr setup with XCB

12 years agoconvert a XSelectInput to XCB
David Hill [Fri, 6 Jul 2012 06:48:23 +0000 (02:48 -0400)]
convert a XSelectInput to XCB

12 years agoconvert bar_urgent to XCB
David Hill [Fri, 6 Jul 2012 06:32:58 +0000 (02:32 -0400)]
convert bar_urgent to XCB

12 years agoRevert "convert a XGetWindowAttributes"
David Hill [Fri, 6 Jul 2012 06:17:09 +0000 (02:17 -0400)]
Revert "convert a XGetWindowAttributes"

This reverts commit 4f87451a3ee933bae873789020054ba95d9626f4.

It is not doing what it is supposed to do :)

12 years agoconvert a XGetWindowAttributes
David Hill [Fri, 6 Jul 2012 04:22:58 +0000 (00:22 -0400)]
convert a XGetWindowAttributes

12 years agoconvert XWarpPointer to XCB
David Hill [Fri, 6 Jul 2012 04:15:16 +0000 (00:15 -0400)]
convert XWarpPointer to XCB

12 years agoconvert XSetWindowBorder()'s and unmanage_window() to XCB
David Hill [Fri, 6 Jul 2012 03:53:04 +0000 (23:53 -0400)]
convert XSetWindowBorder()'s and unmanage_window() to XCB

12 years agoconvert root_to_region to XCB
David Hill [Fri, 6 Jul 2012 03:29:47 +0000 (23:29 -0400)]
convert root_to_region to XCB

12 years agoconvert send_to_ws() and client_msg() to XCB
David Hill [Fri, 6 Jul 2012 03:09:41 +0000 (23:09 -0400)]
convert send_to_ws() and client_msg() to XCB

12 years agoconvert XMapRaised to XCB
David Hill [Fri, 6 Jul 2012 02:04:43 +0000 (22:04 -0400)]
convert XMapRaised to XCB

12 years agoconvert XKillClient to xcb
David Hill [Fri, 6 Jul 2012 01:50:32 +0000 (21:50 -0400)]
convert XKillClient to xcb

12 years agoconvert a lot more code over to xcb.
David Hill [Fri, 6 Jul 2012 01:05:13 +0000 (21:05 -0400)]
convert a lot more code over to xcb.

12 years agocreate function get_atom_from_string() and initial XCB RANDR support
David Hill [Thu, 5 Jul 2012 17:44:05 +0000 (13:44 -0400)]
create function get_atom_from_string() and initial XCB RANDR support

12 years agoconvert ewmh_autoquirk to XCB
David Hill [Wed, 4 Jul 2012 21:41:08 +0000 (17:41 -0400)]
convert ewmh_autoquirk to XCB

12 years agoconvert teardown_ewmh to XCB
David Hill [Wed, 4 Jul 2012 21:34:46 +0000 (17:34 -0400)]
convert teardown_ewmh to XCB

12 years agoconvert ewmh_get_win_state to XCB
David Hill [Wed, 4 Jul 2012 21:21:25 +0000 (17:21 -0400)]
convert ewmh_get_win_state to XCB

12 years agoconvert set_win_state() and getstate() to XCB.
David Hill [Wed, 4 Jul 2012 21:03:09 +0000 (17:03 -0400)]
convert set_win_state() and getstate() to XCB.
convert a XUngrabKey to XCB

12 years agooops - don't xcb_disconnect() on restart.
David Hill [Wed, 4 Jul 2012 06:15:17 +0000 (02:15 -0400)]
oops - don't xcb_disconnect() on restart.

12 years agoconvert bar_refresh() to XCB
David Hill [Wed, 4 Jul 2012 06:14:18 +0000 (02:14 -0400)]
convert bar_refresh() to XCB

12 years agoconvert name_to_color to XCB
David Hill [Wed, 4 Jul 2012 06:08:50 +0000 (02:08 -0400)]
convert name_to_color to XCB

note:  XCB doesn't not support RGB:/RR/GG/BB syntax.