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
02c3706c
Commit
02c3706c
authored
Feb 11, 2011
by
Jan Djärv
Browse files
* xterm.c (x_set_frame_alpha): Access data before it is free:d.
Make sure we don't do x_catch_errors twice.
parent
e0e36cac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/ChangeLog
src/ChangeLog
+5
-0
src/xterm.c
src/xterm.c
+2
-3
No files found.
src/ChangeLog
View file @
02c3706c
2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
* xterm.c (x_set_frame_alpha): Access data before it is free:d.
Make sure we don't do x_catch_errors twice.
2011-02-10 Glenn Morris <rgm@gnu.org>
* Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
src/xterm.c
View file @
02c3706c
...
...
@@ -488,17 +488,16 @@ x_set_frame_alpha (struct frame *f)
if (rc == Success && actual != None)
{
unsigned long value = *(unsigned long *)data;
XFree ((void *) data);
if (
*(unsigned long *)data
== opac)
if (
value
== opac)
{
x_uncatch_errors ();
return;
}
}
x_uncatch_errors ();
}
x_catch_errors (dpy);
XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity,
XA_CARDINAL, 32, PropModeReplace,
(unsigned char *) &opac, 1L);
...
...
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