@@ -179,8 +179,7 @@ class BookmarksToolbar extends React.Component {
179
179
// used in renderer
180
180
props . showOnlyFavicon = bookmarkUtil . showOnlyFavicon ( )
181
181
props . showFavicon = bookmarkUtil . showFavicon ( )
182
- props . shouldAllowWindowDrag = windowState . shouldAllowWindowDrag ( state , currentWindow , activeFrame , isFocused ( state ) ) &&
183
- ! isWindows
182
+ props . shouldAllowWindowDrag = ! isWindows && windowState . shouldAllowWindowDrag ( state , currentWindow , activeFrame , isFocused ( state ) )
184
183
props . visibleBookmarks = bookmarkToolbarState . getToolbar ( state , currentWindowId )
185
184
props . hiddenBookmarks = bookmarkToolbarState . getOther ( state , currentWindowId )
186
185
@@ -200,7 +199,8 @@ class BookmarksToolbar extends React.Component {
200
199
showFavicon : this . props . showFavicon ,
201
200
showOnlyFavicon : this . props . showOnlyFavicon ,
202
201
[ css ( styles . bookmarksToolbar ) ] : true ,
203
- [ css ( this . props . shouldAllowWindowDrag && styles . bookmarksToolbar__allowDragging ) ] : true ,
202
+ [ css ( this . props . shouldAllowWindowDrag && styles . bookmarksToolbar_allowDragging ) ] : true ,
203
+ [ css ( ! this . props . shouldAllowWindowDrag && styles . bookmarksToolbar_disallowDragging ) ] : true ,
204
204
[ css ( styles . bookmarksToolbar__showOnlyFavicon ) ] : true
205
205
} ) }
206
206
data-test-id = 'bookmarksToolbar'
@@ -239,9 +239,13 @@ const styles = StyleSheet.create({
239
239
padding : `0 ${ globalStyles . spacing . bookmarksToolbarPadding } ` ,
240
240
margin : `${ globalStyles . spacing . navbarMenubarMargin } 0`
241
241
} ,
242
- bookmarksToolbar__allowDragging : {
242
+ bookmarksToolbar_allowDragging : {
243
243
WebkitAppRegion : 'drag'
244
244
} ,
245
+
246
+ bookmarksToolbar_disallowDragging : {
247
+ WebkitAppRegion : 'no-drag'
248
+ } ,
245
249
bookmarksToolbar__showOnlyFavicon : {
246
250
padding : `0 0 0 ${ globalStyles . spacing . bookmarksToolbarPadding } `
247
251
} ,
0 commit comments