Bugfix: Insert windows at correct position/set focus correctly when moving between containers
This commit is contained in:
@ -221,7 +221,10 @@ static void move_current_window(xcb_connection_t *conn, direction_t direction) {
|
||||
|
||||
/* Remove it from the old container and put it into the new one */
|
||||
remove_client_from_container(conn, current_client, container);
|
||||
CIRCLEQ_INSERT_TAIL(&(new->clients), current_client, clients);
|
||||
|
||||
if (new->currently_focused != NULL)
|
||||
CIRCLEQ_INSERT_AFTER(&(new->clients), new->currently_focused, current_client, clients);
|
||||
else CIRCLEQ_INSERT_TAIL(&(new->clients), current_client, clients);
|
||||
SLIST_INSERT_HEAD(&(new->workspace->focus_stack), current_client, focus_clients);
|
||||
|
||||
/* Update data structures */
|
||||
|
@ -589,6 +589,9 @@ int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_n
|
||||
LOG("handle_configure_event for window %08x\n", event->window);
|
||||
LOG("event->type = %d, \n", event->response_type);
|
||||
LOG("event->x = %d, ->y = %d, ->width = %d, ->height = %d\n", event->x, event->y, event->width, event->height);
|
||||
|
||||
/* We ignore this sequence twice because events for child and frame should be ignored */
|
||||
add_ignore_event(event->sequence);
|
||||
add_ignore_event(event->sequence);
|
||||
|
||||
if (event->event == root) {
|
||||
|
Reference in New Issue
Block a user