add to teh focus order before the call to change_state, since this can remove/add to the focus order, and then we're in there twice
This commit is contained in:
parent
2aa5cd3574
commit
5cac540f56
1 changed files with 4 additions and 3 deletions
|
@ -269,6 +269,10 @@ void client_manage(Window window)
|
||||||
|
|
||||||
sn_app_started(self->class);
|
sn_app_started(self->class);
|
||||||
|
|
||||||
|
/* update the focus lists, do this before the call to change_state or
|
||||||
|
it can end up in the list twice! */
|
||||||
|
focus_order_add_new(self);
|
||||||
|
|
||||||
client_change_state(self);
|
client_change_state(self);
|
||||||
|
|
||||||
/* remove the client's border (and adjust re gravity) */
|
/* remove the client's border (and adjust re gravity) */
|
||||||
|
@ -287,9 +291,6 @@ void client_manage(Window window)
|
||||||
|
|
||||||
client_apply_startup_state(self);
|
client_apply_startup_state(self);
|
||||||
|
|
||||||
/* update the focus lists */
|
|
||||||
focus_order_add_new(self);
|
|
||||||
|
|
||||||
stacking_add(CLIENT_AS_WINDOW(self));
|
stacking_add(CLIENT_AS_WINDOW(self));
|
||||||
client_restore_session_stacking(self);
|
client_restore_session_stacking(self);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue