summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
95832ed)
Remove some double blank lines.
int32_t v = 0;
xcb_get_property_reply_t *pr = NULL;
int32_t v = 0;
xcb_get_property_reply_t *pr = NULL;
pr = xcb_get_property_reply(conn,
xcb_get_property(conn, 0, win->id, a_swm_iconic,
XCB_ATOM_INTEGER, 0, 1), NULL);
pr = xcb_get_property_reply(conn,
xcb_get_property(conn, 0, win->id, a_swm_iconic,
XCB_ATOM_INTEGER, 0, 1), NULL);
struct ws_win *cur_focus;
struct ws_win_list *wl;
struct ws_win *cur_focus;
struct ws_win_list *wl;
DNPRINTF(SWM_D_WS, "swapwin: id: %d, screen[%d]:%dx%d+%d+%d, ws: %d\n",
args->id, r->s->idx, WIDTH(r), HEIGHT(r), X(r), Y(r), r->ws->idx);
DNPRINTF(SWM_D_WS, "swapwin: id: %d, screen[%d]:%dx%d+%d+%d, ws: %d\n",
args->id, r->s->idx, WIDTH(r), HEIGHT(r), X(r), Y(r), r->ws->idx);
int
floating_toggle_win(struct ws_win *win)
{
int
floating_toggle_win(struct ws_win *win)
{
/* user/key callable function IDs */
enum keyfuncid {
KF_BAR_TOGGLE,
/* user/key callable function IDs */
enum keyfuncid {
KF_BAR_TOGGLE,
{ "layout", setlayout, 0 },
};
{ "layout", setlayout, 0 },
};
int
conf_load(char *filename, int keymapping)
{
int
conf_load(char *filename, int keymapping)
{
/* Select which X events to monitor and set border pixel color. */
wa[0] = win->s->c[SWM_S_COLOR_UNFOCUS].pixel;
wa[1] = XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_PROPERTY_CHANGE |
/* Select which X events to monitor and set border pixel color. */
wa[0] = win->s->c[SWM_S_COLOR_UNFOCUS].pixel;
wa[1] = XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_PROPERTY_CHANGE |
focus_flush();
return;
} else if (e->state == XCB_PROPERTY_NEW_VALUE) {
focus_flush();
return;
} else if (e->state == XCB_PROPERTY_NEW_VALUE) {
+ win->ws->focus_pending = get_focus_prev(win);
unfocus_win(win);
unmap_window(win);
if (win->ws->r) {
unfocus_win(win);
unmap_window(win);
if (win->ws->r) {
- focus_win(get_focus_prev(win));
+ focus_win(win->ws->focus_pending);
+ win->ws->focus_pending = NULL;