File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,7 @@ export class Keybindings {
15
15
constructor ( ext : Ext ) {
16
16
this . ext = ext ;
17
17
this . global = {
18
- "activate-launcher" : ( ) => {
19
- // Do not allow opening the launcher twice
20
- // Ignore when a fullscreen window is active
21
- if ( ext . window_search . opened || ext . focus_window ( ) ?. meta . is_fullscreen ( ) ) {
22
- return
23
- }
24
-
25
- ext . tiler . exit ( ext ) ;
26
- ext . window_search . open ( ext ) ;
27
- } ,
18
+ "activate-launcher" : ( ) => ext . window_search . open ( ext ) ,
28
19
"tile-enter" : ( ) => ext . tiler . enter ( ext )
29
20
} ;
30
21
Original file line number Diff line number Diff line change @@ -295,6 +295,8 @@ export class Launcher extends search.Search {
295
295
}
296
296
297
297
open ( ext : Ext ) {
298
+ ext . tiler . exit ( ext ) ;
299
+
298
300
// Do not allow opening twice
299
301
// Do not activate if the focused window is fullscreen
300
302
if ( this . opened || ext . focus_window ( ) ?. meta . is_fullscreen ( ) ) {
@@ -315,6 +317,13 @@ export class Launcher extends search.Search {
315
317
316
318
super . _open ( global . get_current_time ( ) , false )
317
319
320
+ if ( ! this . dialog . visible ) {
321
+ this . clear ( )
322
+ this . cancel ( )
323
+ this . close ( )
324
+ return
325
+ }
326
+
318
327
this . dialog . dialogLayout . x = ( mon_width / 2 ) - ( this . dialog . dialogLayout . width / 2 )
319
328
320
329
let height = mon_work_area . height >= 900 ? mon_work_area . height / 2 : mon_work_area . height / 3.5
You can’t perform that action at this time.
0 commit comments