mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Remove unused blur/focus (#947)
This commit is contained in:
parent
6d91ab48d6
commit
265024cb45
1 changed files with 2 additions and 13 deletions
|
|
@ -101,21 +101,10 @@ export const userExitSession = createExitAction(SESSION_USER_EXIT);
|
|||
export const ptyExitSession = createExitAction(SESSION_PTY_EXIT);
|
||||
|
||||
export function setActiveSession(uid) {
|
||||
return (dispatch, getState) => {
|
||||
const state = getState();
|
||||
const prevUid = state.sessions.activeUid;
|
||||
return dispatch => {
|
||||
dispatch({
|
||||
type: SESSION_SET_ACTIVE,
|
||||
uid,
|
||||
effect() {
|
||||
// This goes away when we are able to poll
|
||||
// for the title ourseleves, instead of relying
|
||||
// on Session and focus/blur to subscribe
|
||||
if (prevUid) {
|
||||
rpc.emit('blur', {uid: prevUid});
|
||||
}
|
||||
rpc.emit('focus', {uid});
|
||||
}
|
||||
uid
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue