Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package gnome-shell-extensions for
openSUSE:Factory checked in at 2022-07-09 16:59:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-shell-extensions (Old)
and /work/SRC/openSUSE:Factory/.gnome-shell-extensions.new.1523 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnome-shell-extensions"
Sat Jul 9 16:59:25 2022 rev:126 rq:987359 version:42.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/gnome-shell-extensions/gnome-shell-extensions.changes
2022-06-01 17:34:10.562706348 +0200
+++
/work/SRC/openSUSE:Factory/.gnome-shell-extensions.new.1523/gnome-shell-extensions.changes
2022-07-09 16:59:38.676490851 +0200
@@ -1,0 +2,7 @@
+Wed Jul 6 12:23:18 UTC 2022 - Dominique Leuenberger <[email protected]>
+
+- Update to version 42.3:
+ + screenshot-window-sizer: Fix reported sizes on wayland.
+ + window-list: Improve touch support.
+
+-------------------------------------------------------------------
Old:
----
gnome-shell-extensions-42.2.tar.xz
New:
----
gnome-shell-extensions-42.3.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gnome-shell-extensions.spec ++++++
--- /var/tmp/diff_new_pack.tm9Epm/_old 2022-07-09 16:59:39.576492204 +0200
+++ /var/tmp/diff_new_pack.tm9Epm/_new 2022-07-09 16:59:39.580492210 +0200
@@ -19,7 +19,7 @@
%global __requires_exclude typelib\\(Meta\\)
Name: gnome-shell-extensions
-Version: 42.2
+Version: 42.3
Release: 0
Summary: A collection of extensions for GNOME Shell
License: GPL-2.0-or-later
++++++ gnome-shell-extensions-42.2.tar.xz -> gnome-shell-extensions-42.3.tar.xz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/gnome-shell-extensions-42.2/NEWS
new/gnome-shell-extensions-42.3/NEWS
--- old/gnome-shell-extensions-42.2/NEWS 2022-05-28 19:47:10.394566800
+0200
+++ new/gnome-shell-extensions-42.3/NEWS 2022-07-03 15:14:28.068847200
+0200
@@ -1,3 +1,11 @@
+42.3
+====
+* screenshot-window-sizer: Fix reported sizes on wayland [Florian; !232]
+* window-list: Improve touch support [Florian; !233]
+
+Contributors:
+ Florian M??llner
+
42.2
====
* native-window-placement: Adjust to gnome-shell 42 changes [Florian; !229]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/gnome-shell-extensions-42.2/extensions/screenshot-window-sizer/extension.js
new/gnome-shell-extensions-42.3/extensions/screenshot-window-sizer/extension.js
---
old/gnome-shell-extensions-42.2/extensions/screenshot-window-sizer/extension.js
2022-05-28 19:47:10.397566800 +0200
+++
new/gnome-shell-extensions-42.3/extensions/screenshot-window-sizer/extension.js
2022-07-03 15:14:28.072847400 +0200
@@ -101,10 +101,6 @@
for (let i = 0; i < scaledSizes.length; i++) {
let [width, height] = scaledSizes[i];
- // ignore sizes bigger than the workArea
- if (width > workArea.width || height > workArea.height)
- continue;
-
// get the best initial window size
let error = Math.abs(width - outerRect.width) + Math.abs(height -
outerRect.height);
if (nearestIndex === undefined || error < nearestError) {
@@ -125,8 +121,18 @@
if (newY + newHeight > workArea.y + workArea.height)
newY = Math.max(workArea.y + workArea.height - newHeight);
+ const id = window.connect('size-changed', () => {
+ window.disconnect(id);
+ _notifySizeChange(window);
+ });
window.move_resize_frame(true, newX, newY, newWidth, newHeight);
+}
+/**
+ * @param {Meta.Window} window - the window whose size changed
+ */
+function _notifySizeChange(window) {
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
let newOuterRect = window.get_frame_rect();
let message = '%d??%d'.format(
newOuterRect.width / scaleFactor,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/gnome-shell-extensions-42.2/extensions/window-list/extension.js
new/gnome-shell-extensions-42.3/extensions/window-list/extension.js
--- old/gnome-shell-extensions-42.2/extensions/window-list/extension.js
2022-05-28 19:47:10.398567000 +0200
+++ new/gnome-shell-extensions-42.3/extensions/window-list/extension.js
2022-07-03 15:14:28.072847400 +0200
@@ -246,6 +246,48 @@
this._updateVisibility();
}
+ _setLongPressTimeout() {
+ if (this._longPressTimeoutId)
+ return;
+
+ const { longPressDuration } = Clutter.Settings.get_default();
+ this._longPressTimeoutId =
+ GLib.timeout_add(GLib.PRIORITY_DEFAULT, longPressDuration, () => {
+ delete this._longPressTimeoutId;
+
+ if (this._canOpenPopupMenu() && !this._contextMenu.isOpen)
+ this._openMenu(this._contextMenu);
+ return GLib.SOURCE_REMOVE;
+ });
+ }
+
+ _removeLongPressTimeout() {
+ if (!this._longPressTimeoutId)
+ return;
+ GLib.source_remove(this._longPressTimeoutId);
+ delete this._longPressTimeoutId;
+ }
+
+ vfunc_button_press_event(buttonEvent) {
+ if (buttonEvent.button === 1)
+ this._setLongPressTimeout();
+ return super.vfunc_button_press_event(buttonEvent);
+ }
+
+ vfunc_button_release_event(buttonEvent) {
+ this._removeLongPressTimeout();
+
+ return super.vfunc_button_release_event(buttonEvent);
+ }
+
+ vfunc_touch_event(touchEvent) {
+ if (touchEvent.type === Clutter.EventType.TOUCH_BEGIN)
+ this._setLongPressTimeout();
+ else if (touchEvent.type === Clutter.EventType.TOUCH_END)
+ this._removeLongPressTimeout();
+ return super.vfunc_touch_event(touchEvent);
+ }
+
activate() {
if (this.active)
return;
@@ -391,7 +433,7 @@
return;
}
- if (button === 1)
+ if (!button || button === 1)
this._minimizeOrActivateWindow(this.metaWindow);
else
this._openMenu(this._contextMenu);
@@ -637,7 +679,7 @@
if (contextMenuWasOpen)
this._contextMenu.close();
- if (button === 1) {
+ if (!button || button === 1) {
if (menuWasOpen)
return;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/gnome-shell-extensions-42.2/meson.build
new/gnome-shell-extensions-42.3/meson.build
--- old/gnome-shell-extensions-42.2/meson.build 2022-05-28 19:47:10.399567000
+0200
+++ new/gnome-shell-extensions-42.3/meson.build 2022-07-03 15:14:28.074847200
+0200
@@ -1,5 +1,5 @@
project('gnome-shell-extensions',
- version: '42.2',
+ version: '42.3',
meson_version: '>= 0.53.0',
license: 'GPL2+'
)