We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2019-01-05 14:18:37 +0200 |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786:
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is sets the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156:
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml. If anybody wants to create a full openrepos patch package — they're welcome.
2 | No.2 Revision |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786:
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is sets set the areas dragging down from which triggers the closing gesture.
So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156:
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml. If anybody wants to create a full openrepos patch package — they're welcome.
3 | No.3 Revision |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786:
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156:
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml. If anybody wants to create a full openrepos patch package — they're welcome.
4 | No.4 Revision |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786:
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156:
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml. If anybody wants to create a full openrepos or patchmanager patch package — they're welcome.
5 | No.5 Revision |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786:
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156:
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml. compositor.qml (it uploaded as .gz but it's actually .tar.gz). If anybody wants to create a full openrepos or patchmanager patch package — they're welcome.
6 | retagged |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786:
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156:
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml (it uploaded as .gz but it's actually .tar.gz). If anybody wants to create a full openrepos or patchmanager patch package — they're welcome.
7 | retagged |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786:
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156:
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml (it uploaded as .gz but it's actually .tar.gz). If anybody wants to create a full openrepos or patchmanager patch package — they're welcome.
8 | No.8 Revision |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786:786
(885
for 3.0.1.11 - Sipoonkorpi):
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156:1156 (1157
for Sipoonkorpi):
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml (it uploaded as .gz but it's actually .tar.gz). If anybody wants to create a full openrepos or patchmanager patch package — they're welcome.
9 | No.9 Revision |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786
(885
for 3.0.1.11 - Sipoonkorpi):
topAcceptMargin: largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156 (
for Sipoonkorpi):11571257
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml (it uploaded as .gz but it's actually .tar.gz). If anybody wants to create a full openrepos or patchmanager patch package — they're welcome.
10 | No.10 Revision |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 786
(
for 8858963.0.1.11 - Sipoonkorpi3.1.0)::
topAcceptMargin: largeScreen Math.max(QtQuick.Screen.pixelDensity * 10, (largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2: Theme.itemSizeMedium
2 : Theme.itemSizeMedium))
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1156 (
for 12571279Sipoonkorpi3.1.0)::
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml (it uploaded as .gz but it's actually .tar.gz). If anybody wants to create a full openrepos or patchmanager patch package — they're welcome.
11 | No.11 Revision |
As the title suggests, after a little digging around I figured out a way to bring back the MeeGo-style closing gesture — swipe from any place of the top edge when there is an application on the foreground closes said application — to the Sailfish 3.
The Top Menu is still there unchanged and can be accessed by any other way (top to bottom swipe on the home screen, notifications area or lockscreen or just a tap on the status bar).
Since I'm too lazy to create openrepos package, I will just post the instructions here. All you need to do is edit /usr/share/lipstick-jolla-home-qt5/compositor.qml
The first line we're interested in is line 896
for 3.1.0::
update for 3.2 line number is 905
topAcceptMargin: Math.max(QtQuick.Screen.pixelDensity * 10, (largeScreen ? (SS.Screen.width - topMenuLayer.exposedArea.width) / 2 : Theme.itemSizeMedium))
What it does is set the areas dragging down from which triggers the closing gesture. So, as quick and dirty solution — just make it equal to the screen width.
topAcceptMargin: SS.Screen.width
And another line is 1279
for 3.1.0::
update for 3.2: line 1290
|| appLayerItem.active
If you scroll a bit higher you'll see that it is a single item in the list of possible variants for opening the top menu. Since we don't need it to open when trying to close the running app, that line can be just deleted.
And that's it.
Here are the diff file and the modified compositor.qml (it uploaded as .gz but it's actually .tar.gz). If anybody wants to create a full openrepos or patchmanager patch package — they're welcome.