Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d925a426
Commit
d925a426
authored
Jun 22, 2008
by
Stefan Monnier
Browse files
(x_set_frame_alpha): Add x_catch_errors for bug#437.
parent
b4945b95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
src/ChangeLog
src/ChangeLog
+5
-0
src/xterm.c
src/xterm.c
+12
-6
No files found.
src/ChangeLog
View file @
d925a426
2008-06-21 Seiji Zenitani <zenitani@mac.com>
Ryo Yoshitake <ryo@shiftmode.net>
* xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
* Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
...
...
src/xterm.c
View file @
d925a426
...
...
@@ -497,26 +497,32 @@ x_set_frame_alpha (f)
{
unsigned char *data;
Atom actual;
int format;
int
rc,
format;
unsigned long n, left;
XGetWindowProperty(dpy, win, XInternAtom(dpy, OPACITY, False),
0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left,
&data);
if (actual != None)
x_catch_errors (dpy);
rc = XGetWindowProperty(dpy, win, XInternAtom(dpy, OPACITY, False),
0L, 1L, False, XA_CARDINAL,
&actual, &format, &n, &left,
&data);
if (rc == Success && actual != None)
if (*(unsigned long *)data == opac)
{
XFree ((void *) data);
x_uncatch_errors ();
return;
}
else
XFree ((void *) data);
x_uncatch_errors ();
}
x_catch_errors (dpy);
XChangeProperty (dpy, win, XInternAtom (dpy, OPACITY, False),
XA_CARDINAL, 32, PropModeReplace,
(unsigned char *) &opac, 1L);
XSync (dpy, False
);
x_uncatch_errors (
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment