mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
Select the target desktop in non-i3_mode
Fixes https://github.com/DaveDavenport/rofi/issues/28 This is merged from the original upstream at: https://github.com/seanpringle/simpleswitcher/blob/master/simpleswitcher.c (including the TODO)
This commit is contained in:
parent
ea8c9923d5
commit
1834e25ef3
1 changed files with 6 additions and 0 deletions
|
@ -1245,6 +1245,12 @@ SwitcherMode run_switcher_window ( char **input )
|
|||
} else
|
||||
#endif
|
||||
{
|
||||
// Change to the desktop of the selected window/client.
|
||||
// TODO: get rid of strtol
|
||||
window_send_message(root, root, netatoms[_NET_CURRENT_DESKTOP], strtol(list[selected_line], NULL, 10)-1,
|
||||
SubstructureNotifyMask | SubstructureRedirectMask, time);
|
||||
XSync(display, False);
|
||||
|
||||
window_send_message( root, ids->array[selected_line], netatoms[_NET_ACTIVE_WINDOW], 2, // 2 = pager
|
||||
SubstructureNotifyMask | SubstructureRedirectMask, time );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue