emacs starts in a very small window (#1332451)

Resolves: #1332451
This commit is contained in:
Jan Synacek 2016-05-03 12:32:36 +02:00
parent 27d3963a4b
commit 4ec8c3b4b6
2 changed files with 37 additions and 1 deletions

30
emacs-small-window.patch Normal file
View File

@ -0,0 +1,30 @@
From afc9e6542aa6f2d0d7986db3d8c2cb654e107443 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@penguin.cs.ucla.edu>
Date: Fri, 1 Apr 2016 16:55:21 -0700
Subject: [PATCH] Fix resize incompatibility with GTK+ master
Problem reported by Matthias Clasen (Bug#23144).
* src/xterm.c (handle_one_xevent) [USE_GTK]:
Do not call xg_frame_resized.
---
src/xterm.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index ba9bf50..7108207 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7895,10 +7895,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
/* Force a redisplay sooner or later to update the
frame titles in case this is the second frame. */
record_asynch_buffer_change ();
-
-#ifdef USE_GTK
- xg_frame_resized (f, -1, -1);
-#endif
}
goto OTHER;
--
2.7.4

View File

@ -5,7 +5,7 @@ Summary: GNU Emacs text editor
Name: emacs Name: emacs
Epoch: 1 Epoch: 1
Version: 25.0.93 Version: 25.0.93
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv3+ and CC0-1.0 License: GPLv3+ and CC0-1.0
URL: http://www.gnu.org/software/emacs/ URL: http://www.gnu.org/software/emacs/
Group: Applications/Editors Group: Applications/Editors
@ -25,6 +25,8 @@ Patch1: emacs-spellchecker.patch
# Fix for default PDF viewer bug #971162 # Fix for default PDF viewer bug #971162
Patch2: emacs-pdf-default.patch Patch2: emacs-pdf-default.patch
Patch3: emacs-system-crypto-policies.patch Patch3: emacs-system-crypto-policies.patch
# http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=afc9e6542aa6f2d0d7986db3d8c2cb654e107443
Patch4: emacs-small-window.patch
BuildRequires: atk-devel BuildRequires: atk-devel
BuildRequires: cairo-devel BuildRequires: cairo-devel
@ -167,6 +169,7 @@ packages that add functionality to Emacs.
%patch1 -p1 -b .spellchecker %patch1 -p1 -b .spellchecker
%patch2 -p1 -b .pdf-default.patch %patch2 -p1 -b .pdf-default.patch
%patch3 -p1 -b .system-crypto-policies %patch3 -p1 -b .system-crypto-policies
%patch4 -p1 -b .small-window
autoconf autoconf
# We prefer our emacs.desktop file # We prefer our emacs.desktop file
@ -429,6 +432,9 @@ update-desktop-database &> /dev/null || :
%dir %{_datadir}/emacs/site-lisp/site-start.d %dir %{_datadir}/emacs/site-lisp/site-start.d
%changelog %changelog
* Tue May 3 2016 Jan Synáček <jsynacek@redhat.com> - 1:25.0.93-2
- emacs starts in a very small window (#1332451)
* Mon Apr 25 2016 Jan Synáček <jsynacek@redhat.com> - 1:25.0.93 * Mon Apr 25 2016 Jan Synáček <jsynacek@redhat.com> - 1:25.0.93
- update to 25.0.93 and enable webkit support - update to 25.0.93 and enable webkit support