Expose active window positon on move to reducer (#3470)

This commit is contained in:
Philippe Potvin 2019-02-26 18:22:52 -05:00 committed by CHaBou
parent 80bb82122a
commit 1747c57bc3
3 changed files with 7 additions and 5 deletions

View file

@ -229,10 +229,11 @@ export function moveTo(i) {
};
}
export function windowMove() {
export function windowMove(window) {
return dispatch => {
dispatch({
type: UI_WINDOW_MOVE,
window,
effect() {
dispatch(setFontSmoothing());
}

View file

@ -162,8 +162,8 @@ rpc.on('update available', ({releaseName, releaseNotes, releaseUrl, canInstall})
store_.dispatch(updaterActions.updateAvailable(releaseName, releaseNotes, releaseUrl, canInstall));
});
rpc.on('move', () => {
store_.dispatch(uiActions.windowMove());
rpc.on('move', window => {
store_.dispatch(uiActions.windowMove(window));
});
rpc.on('windowGeometry change', () => {