This commit is contained in:
renner 2026-11-03 06:47:36 +02:00 committed by GitHub
commit 23c218365a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 128 deletions

View file

@ -1,75 +0,0 @@
From 7193320dde849a06c3cee04f42450efb3c192874 Mon Sep 17 00:00:00 2001
From: cryptbrn <cryptbrn@gmail.com>
Date: Sat, 29 Mar 2025 20:50:16 +0700
Subject: [PATCH] GNOME 48 Support
---
extension.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/extension.js b/extension.js
index d25c83a..e074719 100644
--- a/extension.js
+++ b/extension.js
@@ -138,7 +138,7 @@ export default class SearchLightExt extends Extension {
this.mainContainer._delegate = this;
this.container = new St.BoxLayout({
name: 'searchLightBox',
- vertical: true,
+ orientation: Clutter.Orientation.VERTICAL,
reactive: true,
track_hover: true,
can_focus: true,
@@ -450,7 +450,7 @@ export default class SearchLightExt extends Extension {
this._updateCss();
this._layout();
- Meta.disable_unredirect_for_display(global.display);
+ global.compositor.disable_unredirect();
this.mainContainer.show();
this.container.show();
@@ -504,14 +504,14 @@ export default class SearchLightExt extends Extension {
onComplete: () => {
this._visible = false;
this.mainContainer.hide();
- Meta.enable_unredirect_for_display(global.display);
+ global.compositor.enable_unredirect();
},
});
} else {
this.mainContainer.opacity = 0;
this._visible = false;
this.mainContainer.hide();
- Meta.enable_unredirect_for_display(global.display);
+ global.compositor.enable_unredirect();
}
// this._hidePopups();
}
@@ -981,7 +981,7 @@ export default class SearchLightExt extends Extension {
if (!this._entry) return;
let focus = global.stage.get_key_focus();
let appearFocused =
- this._entry.contains(focus) || this._searchResults.contains(focus);
+ focus && (this._entry.contains(focus) || this._searchResults.contains(focus));
if (!appearFocused) {
// popups are not handled well.. hide immediately
@@ -998,7 +998,7 @@ export default class SearchLightExt extends Extension {
}
// hide window immediately when activated
- if (focus.activate) {
+ if (focus && focus.activate) {
if (!focus._activate) {
focus._activate = focus.activate;
focus.activate = () => {
@@ -1012,7 +1012,7 @@ export default class SearchLightExt extends Extension {
_onKeyPressed(obj, evt) {
if (!this._entry) return;
let focus = global.stage.get_key_focus();
- if (!this._entry.contains(focus)) {
+ if (!focus || !this._entry.contains(focus)) {
if (evt.get_key_symbol() === Clutter.KEY_Escape) {
this.hide();
return Clutter.EVENT_STOP;

View file

@ -1,53 +0,0 @@
%global uuid search-light@icedman.github.com
# renovate: datasource=github-releases depName=icedman/search-light
%global commit e7a351121706343abe7a164b625a55e245c16ab5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global gitrel .git%{shortcommit}
Name: gnome-shell-extension-search-light
Version: 0.0.0
Release: 3%{gitrel}%{?dist}
Summary: Take the apps search out of overview
Group: User Interface/Desktops
License: GPLv3
URL: https://github.com/icedman/search-light
Source0: %{url}/archive/%{commit}.tar.gz
BuildArch: noarch
# Patch Upstream https://github.com/icedman/search-light/pull/116
Patch0: 7193320dde849a06c3cee04f42450efb3c192874.patch
BuildRequires: pkgconfig(glib-2.0)
Requires: gnome-shell >= 3.12
Requires: glib2
BuildRequires: make
%description
This is a Gnome Shell extension that takes the apps search widget out of Overview. Like the macOS spotlight, or Alfred.
%prep
%autosetup -n search-light-%{commit} -N
%if 0%{?fedora} >= 42 || 0%{?rhel} >= 10
%patch -P 0 -p1
%endif
%build
make build
%install
make publish
mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}
unzip -q %{uuid}.zip -d %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/
%files
%doc README.md
%license LICENSE
%{_datadir}/gnome-shell/extensions/%{uuid}/
%changelog
%autochangelog