@@ -14,6 +14,7 @@ import * as focus from 'focus';
14
14
15
15
interface AppWidgets {
16
16
fullscreen_launcher : any ,
17
+ stacking_with_mouse : any ,
17
18
inner_gap : any ,
18
19
mouse_cursor_follows_active_window : any ,
19
20
outer_gap : any ,
@@ -97,7 +98,13 @@ function settings_dialog_new(): Gtk.Container {
97
98
app . fullscreen_launcher . connect ( 'state-set' , ( _widget : any , state : boolean ) => {
98
99
ext . set_fullscreen_launcher ( state )
99
100
Settings . sync ( )
100
- } )
101
+ } ) ;
102
+
103
+ app . stacking_with_mouse . set_active ( ext . stacking_with_mouse ( ) )
104
+ app . stacking_with_mouse . connect ( 'state-set' , ( _widget : any , state : boolean ) => {
105
+ ext . set_stacking_with_mouse ( state )
106
+ Settings . sync ( )
107
+ } ) ;
101
108
102
109
return grid ;
103
110
}
@@ -143,26 +150,32 @@ function settings_dialog_view(): [AppWidgets, Gtk.Container] {
143
150
xalign : 0.0
144
151
} )
145
152
146
- const [ inner_gap , outer_gap ] = gaps_section ( grid , 8 ) ;
153
+ const stacking_with_mouse = new Gtk . Label ( {
154
+ label : "Allow stacking with mouse" ,
155
+ xalign : 0.0
156
+ } )
157
+
158
+ const [ inner_gap , outer_gap ] = gaps_section ( grid , 9 ) ;
147
159
148
160
const settings = {
149
161
inner_gap,
150
162
outer_gap,
151
163
fullscreen_launcher : new Gtk . Switch ( { halign : Gtk . Align . END } ) ,
164
+ stacking_with_mouse : new Gtk . Switch ( { halign : Gtk . Align . END } ) ,
152
165
smart_gaps : new Gtk . Switch ( { halign : Gtk . Align . END } ) ,
153
166
snap_to_grid : new Gtk . Switch ( { halign : Gtk . Align . END } ) ,
154
167
window_titles : new Gtk . Switch ( { halign : Gtk . Align . END } ) ,
155
168
show_skip_taskbar : new Gtk . Switch ( { halign : Gtk . Align . END } ) ,
156
169
mouse_cursor_follows_active_window : new Gtk . Switch ( { halign : Gtk . Align . END } ) ,
157
170
mouse_cursor_focus_position : build_combo (
158
171
grid ,
159
- 6 ,
172
+ 7 ,
160
173
focus . FocusPosition ,
161
174
'Mouse Cursor Focus Position' ,
162
175
) ,
163
176
log_level : build_combo (
164
177
grid ,
165
- 7 ,
178
+ 8 ,
166
179
log . LOG_LEVELS ,
167
180
'Log Level' ,
168
181
)
@@ -180,11 +193,14 @@ function settings_dialog_view(): [AppWidgets, Gtk.Container] {
180
193
grid . attach ( fullscreen_launcher_label , 0 , 3 , 1 , 1 )
181
194
grid . attach ( settings . fullscreen_launcher , 1 , 3 , 1 , 1 )
182
195
183
- grid . attach ( show_skip_taskbar_label , 0 , 4 , 1 , 1 )
184
- grid . attach ( settings . show_skip_taskbar , 1 , 4 , 1 , 1 )
196
+ grid . attach ( stacking_with_mouse , 0 , 4 , 1 , 1 )
197
+ grid . attach ( settings . stacking_with_mouse , 1 , 4 , 1 , 1 )
198
+
199
+ grid . attach ( show_skip_taskbar_label , 0 , 5 , 1 , 1 )
200
+ grid . attach ( settings . show_skip_taskbar , 1 , 5 , 1 , 1 )
185
201
186
- grid . attach ( mouse_cursor_follows_active_window_label , 0 , 5 , 1 , 1 )
187
- grid . attach ( settings . mouse_cursor_follows_active_window , 1 , 5 , 1 , 1 )
202
+ grid . attach ( mouse_cursor_follows_active_window_label , 0 , 6 , 1 , 1 )
203
+ grid . attach ( settings . mouse_cursor_follows_active_window , 1 , 6 , 1 , 1 )
188
204
189
205
return [ settings , grid ]
190
206
}
0 commit comments