emacs -mm (maximized) does not work (#985729)

This commit is contained in:
Petr Hracek 2013-08-09 13:57:56 +02:00
parent 11626df7df
commit e70c486134
2 changed files with 43 additions and 1 deletions

36
emacs-maximized.patch Normal file
View File

@ -0,0 +1,36 @@
diff --git a/src/xselect.c b/src/xselect.c
index b3017c3..4ba4984 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -2659,6 +2659,8 @@ x_send_client_event (Lisp_Object display, Lisp_Object dest, Lisp_Object from,
block_input ();
+ event.xclient.send_event = True;
+ event.xclient.serial = 0;
event.xclient.message_type = message_type;
event.xclient.display = dpyinfo->display;
@@ -2667,18 +2669,19 @@ x_send_client_event (Lisp_Object display, Lisp_Object dest, Lisp_Object from,
event.xclient.window = to_root ? FRAME_OUTER_WINDOW (f) : wdest;
- memset (event.xclient.data.b, 0, sizeof (event.xclient.data.b));
+ memset (event.xclient.data.l, 0, sizeof (event.xclient.data.l));
x_fill_property_data (dpyinfo->display, values, event.xclient.data.b,
event.xclient.format);
/* If event mask is 0 the event is sent to the client that created
the destination window. But if we are sending to the root window,
- there is no such client. Then we set the event mask to 0xffff. The
+ there is no such client. Then we set the event mask to 0xffffff. The
event then goes to clients selecting for events on the root window. */
x_catch_errors (dpyinfo->display);
{
int propagate = to_root ? False : True;
- unsigned mask = to_root ? 0xffff : 0;
+ long mask = to_root ? 0xffffff : 0;
+
XSendEvent (dpyinfo->display, wdest, propagate, mask, &event);
XFlush (dpyinfo->display);
}

View File

@ -3,7 +3,7 @@ Summary: GNU Emacs text editor
Name: emacs Name: emacs
Epoch: 1 Epoch: 1
Version: 24.3 Version: 24.3
Release: 11%{?dist} Release: 12%{?dist}
License: GPLv3+ License: GPLv3+
URL: http://www.gnu.org/software/emacs/ URL: http://www.gnu.org/software/emacs/
Group: Applications/Editors Group: Applications/Editors
@ -27,6 +27,8 @@ Patch11: emacs-bell-dont-work.patch
Patch12: emacs-gtk-warning.patch Patch12: emacs-gtk-warning.patch
# Fix for emacs bug #948838 # Fix for emacs bug #948838
Patch13: emacs-help-update.patch Patch13: emacs-help-update.patch
# Fix for emacs bug #948838
Patch14: emacs-maximized.patch
# Fix for emacs bug #13460. # Fix for emacs bug #13460.
Patch100: emacs-24.3-hunspell.patch Patch100: emacs-24.3-hunspell.patch
# Fix for emacs bug #827033 # Fix for emacs bug #827033
@ -171,6 +173,7 @@ packages that add functionality to Emacs.
%patch11 -p1 -b .bell-dont-work.patch %patch11 -p1 -b .bell-dont-work.patch
%patch12 -p1 -b .gtk-warning.patch %patch12 -p1 -b .gtk-warning.patch
%patch13 -p1 -b .help-update.patch %patch13 -p1 -b .help-update.patch
%patch14 -p1 -b .maximized.patch
%patch100 -p1 -b .hunspell %patch100 -p1 -b .hunspell
%patch101 -p1 -b .hunspell.2 %patch101 -p1 -b .hunspell.2
@ -456,6 +459,9 @@ update-desktop-database &> /dev/null || :
%dir %{_datadir}/emacs/site-lisp/site-start.d %dir %{_datadir}/emacs/site-lisp/site-start.d
%changelog %changelog
* Fri Aug 09 2013 Petr Hracek <phracek@redhat.com> - 1:24.3-12
- emacs -mm (maximized) does not work (#985729)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:24.3-11 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:24.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild