]> code.delx.au - spectrwm/commit
Fix segfault on search_win().
authorReginald Kennedy <rk@rejii.com>
Fri, 13 Jul 2012 22:19:31 +0000 (06:19 +0800)
committerReginald Kennedy <rk@rejii.com>
Fri, 20 Jul 2012 21:59:28 +0000 (05:59 +0800)
commitca6e939864c837a5548e9600975ec0a693231807
tree2fbe5c15dc29af586ef8c7b1abde24e99a966272
parentacb9e292b97dd372eddb99c8ee3b93787bd94796
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.
spectrwm.c