Commit 02c3706c authored by Jan Djärv's avatar Jan Djärv

* 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
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> 2011-02-10 Glenn Morris <rgm@gnu.org>
* Makefile.in (really-lwlib): Depend on globals.h, for parallel builds. * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
...@@ -488,17 +488,16 @@ x_set_frame_alpha (struct frame *f) ...@@ -488,17 +488,16 @@ x_set_frame_alpha (struct frame *f)
if (rc == Success && actual != None) if (rc == Success && actual != None)
{ {
unsigned long value = *(unsigned long *)data;
XFree ((void *) data); XFree ((void *) data);
if (*(unsigned long *)data == opac) if (value == opac)
{ {
x_uncatch_errors (); x_uncatch_errors ();
return; return;
} }
} }
x_uncatch_errors ();
} }
x_catch_errors (dpy);
XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity, XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity,
XA_CARDINAL, 32, PropModeReplace, XA_CARDINAL, 32, PropModeReplace,
(unsigned char *) &opac, 1L); (unsigned char *) &opac, 1L);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment