Dominique Leuenberger
dce2ca8f61
- Update gs-sle-classic-ext.patch to version 3.26.1 OBS-URL: https://build.opensuse.org/request/show/532921 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=338
102 lines
3.6 KiB
Diff
102 lines
3.6 KiB
Diff
Index: gnome-shell-3.26.1/js/js-resources.gresource.xml
|
|
===================================================================
|
|
--- gnome-shell-3.26.1.orig/js/js-resources.gresource.xml
|
|
+++ gnome-shell-3.26.1/js/js-resources.gresource.xml
|
|
@@ -109,6 +109,7 @@
|
|
<file>ui/workspaceThumbnail.js</file>
|
|
<file>ui/workspacesView.js</file>
|
|
<file>ui/xdndHandler.js</file>
|
|
+ <file>ui/SLEClassicExt.js</file>
|
|
|
|
<file>ui/components/__init__.js</file>
|
|
<file>ui/components/autorunManager.js</file>
|
|
Index: gnome-shell-3.26.1/js/ui/layout.js
|
|
===================================================================
|
|
--- gnome-shell-3.26.1.orig/js/ui/layout.js
|
|
+++ gnome-shell-3.26.1/js/ui/layout.js
|
|
@@ -25,6 +25,8 @@ var BACKGROUND_FADE_ANIMATION_TIME = 1.0
|
|
var HOT_CORNER_PRESSURE_THRESHOLD = 100; // pixels
|
|
var HOT_CORNER_PRESSURE_TIMEOUT = 1000; // ms
|
|
|
|
+const SLEClassicExt = imports.ui.SLEClassicExt;
|
|
+
|
|
function isPopupMetaWindow(actor) {
|
|
switch(actor.meta_window.get_window_type()) {
|
|
case Meta.WindowType.DROPDOWN_MENU:
|
|
@@ -474,7 +476,7 @@ var LayoutManager = new Lang.Class({
|
|
if (!this.primaryMonitor)
|
|
return;
|
|
|
|
- this.panelBox.set_position(this.primaryMonitor.x, this.primaryMonitor.y);
|
|
+ SLEClassicExt.setMainPanelPosition(this.panelBox, this.primaryMonitor);
|
|
this.panelBox.set_size(this.primaryMonitor.width, -1);
|
|
|
|
this.keyboardIndex = this.primaryIndex;
|
|
Index: gnome-shell-3.26.1/js/ui/main.js
|
|
===================================================================
|
|
--- gnome-shell-3.26.1.orig/js/ui/main.js
|
|
+++ gnome-shell-3.26.1/js/ui/main.js
|
|
@@ -45,6 +45,8 @@ const Magnifier = imports.ui.magnifier;
|
|
const XdndHandler = imports.ui.xdndHandler;
|
|
const Util = imports.misc.util;
|
|
|
|
+const SLEClassicExt = imports.ui.SLEClassicExt;
|
|
+
|
|
const A11Y_SCHEMA = 'org.gnome.desktop.a11y.keyboard';
|
|
const STICKY_KEYS_ENABLE = 'stickykeys-enable';
|
|
const GNOMESHELL_STARTED_MESSAGE_ID = 'f3ea493c22934e26811cd62abe8e203a';
|
|
@@ -131,6 +133,8 @@ function start() {
|
|
shellMountOpDBusService = new ShellMountOperation.GnomeShellMountOpHandler();
|
|
|
|
_sessionUpdated();
|
|
+
|
|
+ SLEClassicExt.init();
|
|
}
|
|
|
|
function _initializeUI() {
|
|
Index: gnome-shell-3.26.1/js/ui/panel.js
|
|
===================================================================
|
|
--- gnome-shell-3.26.1.orig/js/ui/panel.js
|
|
+++ gnome-shell-3.26.1/js/ui/panel.js
|
|
@@ -25,6 +25,8 @@ const RemoteMenu = imports.ui.remoteMenu
|
|
const Main = imports.ui.main;
|
|
const Tweener = imports.ui.tweener;
|
|
|
|
+const SLEClassicExt = imports.ui.SLEClassicExt
|
|
+
|
|
var PANEL_ICON_SIZE = 16;
|
|
var APP_MENU_ICON_MARGIN = 0;
|
|
|
|
@@ -855,7 +857,9 @@ var Panel = new Lang.Class({
|
|
alloc.natural_size = -1;
|
|
},
|
|
|
|
- _allocate: function(actor, box, flags) {
|
|
+ _allocate: SLEClassicExt._allocate,
|
|
+
|
|
+ _allocateOrigin: function(actor, box, flags) {
|
|
let allocWidth = box.x2 - box.x1;
|
|
let allocHeight = box.y2 - box.y1;
|
|
|
|
Index: gnome-shell-3.26.1/js/ui/sessionMode.js
|
|
===================================================================
|
|
--- gnome-shell-3.26.1.orig/js/ui/sessionMode.js
|
|
+++ gnome-shell-3.26.1/js/ui/sessionMode.js
|
|
@@ -13,6 +13,8 @@ const Config = imports.misc.config;
|
|
|
|
const DEFAULT_MODE = 'restrictive';
|
|
|
|
+const SLEClassicExt = imports.ui.SLEClassicExt;
|
|
+
|
|
const _modes = {
|
|
'restrictive': {
|
|
parentMode: null,
|
|
@@ -118,6 +120,7 @@ function _loadMode(file, info) {
|
|
try {
|
|
[success, fileContent, tag] = file.load_contents(null);
|
|
newMode = JSON.parse(fileContent);
|
|
+ newMode = SLEClassicExt.convertClassic2SLE(newMode);
|
|
} catch(e) {
|
|
return;
|
|
}
|