File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ export const createWindowController = ({
157157 launcherWindow . on ( "closed" , ( ) => {
158158 launcherWindow = null ;
159159 } ) ;
160+ launcherWindow . on ( "blur" , handleLauncherBlur ) ;
160161
161162 launcherWindow . webContents . on ( "did-finish-load" , ( ) => {
162163 launcherWindow ?. webContents . send (
@@ -252,6 +253,18 @@ export const createWindowController = ({
252253 isRingVisible = false ;
253254 } ;
254255
256+ /**
257+ * Request the launcher to close when it loses focus.
258+ */
259+ const handleLauncherBlur = ( ) => {
260+ if ( ! isRingVisible ) {
261+ return ;
262+ }
263+
264+ isRingAnimating = true ;
265+ requestRingClose ( ) ;
266+ } ;
267+
255268 /**
256269 * Toggle the ring visibility.
257270 */
Original file line number Diff line number Diff line change 11{
22 "name" : " round-drop" ,
33 "private" : true ,
4- "version" : " 1.6.0 " ,
4+ "version" : " 1.6.2 " ,
55 "author" : {
66 "name" : " nekobato" ,
77 "email" : " nekobato@gmail.com" ,
You can’t perform that action at this time.
0 commit comments