aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2008-05-26 11:37:42 +0000
committerAndreas Schwab2008-05-26 11:37:42 +0000
commitf8eb1603d22a837bb2554c7b50a1f2311bd1be3e (patch)
treed699dbc12e692d0f7913463649f13d01a2cd4b79 /src
parentdc6cf56878e86c1a6ddee311c68de4e164c704fa (diff)
downloademacs-f8eb1603d22a837bb2554c7b50a1f2311bd1be3e.tar.gz
emacs-f8eb1603d22a837bb2554c7b50a1f2311bd1be3e.zip
(x_set_frame_alpha): Fix type mismatch.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xterm.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a25f6cb615a..b6180e5a224 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-05-26 Andreas Schwab <schwab@suse.de>
2
3 * xterm.c (x_set_frame_alpha): Fix type mismatch.
4
12008-05-26 Jason Rumney <jasonr@gnu.org> 52008-05-26 Jason Rumney <jasonr@gnu.org>
2 6
3 * w32font.c (w32font_text_extents): Zero whole metrics struct first. 7 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
diff --git a/src/xterm.c b/src/xterm.c
index 03f06f33f04..42049c6939e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -469,8 +469,8 @@ x_set_frame_alpha (f)
469 Window win = FRAME_OUTER_WINDOW (f); 469 Window win = FRAME_OUTER_WINDOW (f);
470 double alpha = 1.0; 470 double alpha = 1.0;
471 double alpha_min = 1.0; 471 double alpha_min = 1.0;
472 unsigned int opac; 472 unsigned long opac;
473 473
474 if (FRAME_X_DISPLAY_INFO (f)->root_window != FRAME_X_OUTPUT (f)->parent_desc) 474 if (FRAME_X_DISPLAY_INFO (f)->root_window != FRAME_X_OUTPUT (f)->parent_desc)
475 /* Since the WM decoration lies under the FRAME_OUTER_WINDOW, 475 /* Since the WM decoration lies under the FRAME_OUTER_WINDOW,
476 we must treat the former instead of the latter. */ 476 we must treat the former instead of the latter. */
@@ -491,7 +491,7 @@ x_set_frame_alpha (f)
491 else if (0.0 <= alpha && alpha < alpha_min && alpha_min <= 1.0) 491 else if (0.0 <= alpha && alpha < alpha_min && alpha_min <= 1.0)
492 alpha = alpha_min; 492 alpha = alpha_min;
493 493
494 opac = (unsigned int)(alpha * OPAQUE); 494 opac = alpha * OPAQUE;
495 495
496 /* return unless necessary */ 496 /* return unless necessary */
497 { 497 {
@@ -502,9 +502,9 @@ x_set_frame_alpha (f)
502 502
503 XGetWindowProperty(dpy, win, XInternAtom(dpy, OPACITY, False), 503 XGetWindowProperty(dpy, win, XInternAtom(dpy, OPACITY, False),
504 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, 504 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left,
505 (unsigned char **) &data); 505 &data);
506 if (data != None) 506 if (actual != None)
507 if (*(unsigned int *)data == opac) 507 if (*(unsigned long *)data == opac)
508 { 508 {
509 XFree ((void *) data); 509 XFree ((void *) data);
510 return; 510 return;