gnome-shell/gs-sle-classic-ext.patch
Bjørn Lie d4505593a2 Accepting request 513774 from home:xiaoguang_wang:branches:SLE-classic-3-24-3
- Update sle-classic patches to version 3.24.3:
  + Update aboutMenu.js
  + Update endSession-dialog-update-time-label-every-sec.patch
  + Update gnome-shell-1007468-lock-screen-SUSE-logo-missing.patch
  + Update gnome-shell-864872-unlock-by-mouse-motion.patch
  + Update gnome-shell-878951-hide-list-with-no-user.patch
  + Update gnome-shell-domain.patch
  + Update gnome-shell-gdm-login-applet.patch
  + Update gnome-shell-lock-bg-on-primary.patch
  + Update
    gnome-shell-login-fix-session-button-can-be-clicked.patch
  + Update gnome-shell-screen-disappear.patch
  + Update gs-fate318433-prevent-same-account-multi-logins.patch
  + Update gs-sle-classic-ext.patch

OBS-URL: https://build.opensuse.org/request/show/513774
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=315
2017-08-05 12:05:52 +00:00

102 lines
3.7 KiB
Diff

Index: gnome-shell-3.24.2/js/js-resources.gresource.xml
===================================================================
--- gnome-shell-3.24.2.orig/js/js-resources.gresource.xml
+++ gnome-shell-3.24.2/js/js-resources.gresource.xml
@@ -108,6 +108,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.24.2/js/ui/layout.js
===================================================================
--- gnome-shell-3.24.2.orig/js/ui/layout.js
+++ gnome-shell-3.24.2/js/ui/layout.js
@@ -25,6 +25,8 @@ const BACKGROUND_FADE_ANIMATION_TIME = 1
const HOT_CORNER_PRESSURE_THRESHOLD = 100; // pixels
const 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:
@@ -458,7 +460,7 @@ const LayoutManager = new Lang.Class({
this.screenShieldGroup.set_position(0, 0);
this.screenShieldGroup.set_size(global.screen_width, global.screen_height);
- 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.24.2/js/ui/main.js
===================================================================
--- gnome-shell-3.24.2.orig/js/ui/main.js
+++ gnome-shell-3.24.2/js/ui/main.js
@@ -46,6 +46,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';
@@ -132,6 +134,8 @@ function start() {
shellMountOpDBusService = new ShellMountOperation.GnomeShellMountOpHandler();
_sessionUpdated();
+
+ SLEClassicExt.init();
}
function _initializeUI() {
Index: gnome-shell-3.24.2/js/ui/panel.js
===================================================================
--- gnome-shell-3.24.2.orig/js/ui/panel.js
+++ gnome-shell-3.24.2/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;
+
const PANEL_ICON_SIZE = 16;
const APP_MENU_ICON_MARGIN = 0;
@@ -826,7 +828,9 @@ const 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.24.2/js/ui/sessionMode.js
===================================================================
--- gnome-shell-3.24.2.orig/js/ui/sessionMode.js
+++ gnome-shell-3.24.2/js/ui/sessionMode.js
@@ -14,6 +14,8 @@ const Config = imports.misc.config;
const DEFAULT_MODE = 'restrictive';
+const SLEClassicExt = imports.ui.SLEClassicExt;
+
const _modes = {
'restrictive': {
parentMode: null,
@@ -119,6 +121,7 @@ function _loadMode(file, info) {
try {
[success, fileContent, tag] = file.load_contents(null);
newMode = JSON.parse(fileContent);
+ newMode = SLEClassicExt.convertClassic2SLE(newMode);
} catch(e) {
return;
}