@@ -29,6 +29,7 @@ FocusScope {
2929 property alias inverted: panel.inverted
3030 property Item blurSource: null
3131 property int topPanelHeight: 0
32+ property bool drawerEnabled: true
3233
3334 property int panelWidth: units.gu(10)
3435 property int dragAreaWidth: units.gu(1)
@@ -146,6 +147,10 @@ FocusScope {
146147 }
147148
148149 function openDrawer(focusInputField) {
150+ if (!drawerEnabled) {
151+ return;
152+ }
153+
149154 panel.shortcutHintsShown = false;
150155 superPressTimer.stop();
151156 superLongPressTimer.stop();
@@ -456,7 +461,11 @@ FocusScope {
456461 root.switchToNextState("visibleTemporary");
457462 }
458463 }
459− onPassed: { root.switchToNextState("drawer"); }
464+ onPassed: {
465+ if (root.drawerEnabled) {
466+ root.switchToNextState("drawer");
467+ }
468+ }
460469
461470 material: Component {
462471 Item {
@@ -492,7 +501,7 @@ FocusScope {
492501 panel.x = -panel.width + Math.min(Math.max(0, distance), panel.width);
493502 }
494503
495− if (dragging && launcher.state != "drawer") {
504+ if (root.drawerEnabled && dragging && launcher.state != "drawer") {
496505 var drawerHintDistance = panel.width + units.gu(1)
497506 if (distance < drawerHintDistance) {
498507 drawer.x = -drawer.width + Math.min(Math.max(0, distance), drawer.width);
@@ -508,7 +517,7 @@ FocusScope {
508517 onDraggingChanged: {
509518 if (!dragging) {
510519 if (distance > panel.width / 2) {
511− if (distance > panel.width * 3) {
520+ if (root.drawerEnabled && distance > panel.width * 3) {
512521 root.switchToNextState("drawer")
513522 root.focus = true;
514523 } else {