Keep a sticky window focused if it was the focused window on the source workspace.

fixes #1924
This commit is contained in:
Ingo Bürk
2015-09-17 22:52:56 +02:00
parent d4fb17546c
commit 922afe1919
6 changed files with 40 additions and 19 deletions

View File

@ -1598,7 +1598,7 @@ void cmd_sticky(I3_CMD, char *action) {
/* A window we made sticky might not be on a visible workspace right now, so we need to make
* sure it gets pushed to the front now. */
output_push_sticky_windows();
output_push_sticky_windows(focused);
cmd_output->needs_tree_render = true;
ysuccess(true);