diff options
| author | Jan D | 2010-11-13 19:59:28 +0100 |
|---|---|---|
| committer | Jan D | 2010-11-13 19:59:28 +0100 |
| commit | 933e29ff5e9d63ae6976cc998980042fbea09b26 (patch) | |
| tree | be0b2316d739a21bc38eafbf6fb40cd66925eb01 /src | |
| parent | a048073e243c62bae2727e70913ec54133ae8746 (diff) | |
| download | emacs-933e29ff5e9d63ae6976cc998980042fbea09b26.tar.gz emacs-933e29ff5e9d63ae6976cc998980042fbea09b26.zip | |
Fix Atoms and Lisp_Object mixup and related bugs.
* src/xselect.c (x_send_client_event): Move CHECK_STRING ...
(Fx_send_client_event): to here.
* src/xterm.c (set_wm_state): Don't put Atom in cons, call
make_fixnum_or_float on them first.
(x_term_init): Initialize Xatom_net_supporting_wm_check and
Xatom_net_supported correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/xselect.c | 6 | ||||
| -rw-r--r-- | src/xterm.c | 7 |
3 files changed, 18 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b821d17e29c..66266110fc6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2010-11-13 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xterm.c (set_wm_state): Don't put Atom in cons, call | ||
| 4 | make_fixnum_or_float on them first. | ||
| 5 | (x_term_init): Initialize Xatom_net_supporting_wm_check and | ||
| 6 | Xatom_net_supported correctly. | ||
| 7 | |||
| 8 | * xselect.c (x_send_client_event): Move CHECK_STRING ... | ||
| 9 | (Fx_send_client_event): to here. | ||
| 10 | |||
| 1 | 2010-11-13 Martin Rudalics <rudalics@gmx.at> | 11 | 2010-11-13 Martin Rudalics <rudalics@gmx.at> |
| 2 | 12 | ||
| 3 | * window.c (Fwindow_use_time): New function. | 13 | * window.c (Fwindow_use_time): New function. |
diff --git a/src/xselect.c b/src/xselect.c index b566b90898f..ea64d9c3f36 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -2528,8 +2528,11 @@ are ignored. */) | |||
| 2528 | { | 2528 | { |
| 2529 | struct x_display_info *dpyinfo = check_x_display_info (display); | 2529 | struct x_display_info *dpyinfo = check_x_display_info (display); |
| 2530 | 2530 | ||
| 2531 | CHECK_STRING (message_type); | ||
| 2531 | x_send_client_event(display, dest, from, | 2532 | x_send_client_event(display, dest, from, |
| 2532 | XInternAtom (dpyinfo->display, SDATA (message_type), False), | 2533 | XInternAtom (dpyinfo->display, |
| 2534 | SDATA (message_type), | ||
| 2535 | False), | ||
| 2533 | format, values); | 2536 | format, values); |
| 2534 | 2537 | ||
| 2535 | return Qnil; | 2538 | return Qnil; |
| @@ -2546,7 +2549,6 @@ x_send_client_event (Lisp_Object display, Lisp_Object dest, Lisp_Object from, At | |||
| 2546 | struct frame *f = check_x_frame (from); | 2549 | struct frame *f = check_x_frame (from); |
| 2547 | int to_root; | 2550 | int to_root; |
| 2548 | 2551 | ||
| 2549 | CHECK_STRING (message_type); | ||
| 2550 | CHECK_NUMBER (format); | 2552 | CHECK_NUMBER (format); |
| 2551 | CHECK_CONS (values); | 2553 | CHECK_CONS (values); |
| 2552 | 2554 | ||
diff --git a/src/xterm.c b/src/xterm.c index f8b7b2a630c..277c32df6ee 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8380,8 +8380,9 @@ set_wm_state (Lisp_Object frame, int add, Atom atom, Atom value) | |||
| 8380 | Fcons | 8380 | Fcons |
| 8381 | (make_number (add ? 1 : 0), | 8381 | (make_number (add ? 1 : 0), |
| 8382 | Fcons | 8382 | Fcons |
| 8383 | (atom, | 8383 | (make_fixnum_or_float (atom), |
| 8384 | value != 0 ? value : Qnil))); | 8384 | value != 0 |
| 8385 | ? make_fixnum_or_float (value) : Qnil))); | ||
| 8385 | } | 8386 | } |
| 8386 | 8387 | ||
| 8387 | void | 8388 | void |
| @@ -10247,7 +10248,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 10247 | { "_NET_WM_ICON_NAME", &dpyinfo->Xatom_net_wm_icon_name }, | 10248 | { "_NET_WM_ICON_NAME", &dpyinfo->Xatom_net_wm_icon_name }, |
| 10248 | { "_NET_WM_NAME", &dpyinfo->Xatom_net_wm_name }, | 10249 | { "_NET_WM_NAME", &dpyinfo->Xatom_net_wm_name }, |
| 10249 | { "_NET_SUPPORTED", &dpyinfo->Xatom_net_supported }, | 10250 | { "_NET_SUPPORTED", &dpyinfo->Xatom_net_supported }, |
| 10250 | { "_NET_SUPPORTING_WM_CHECK", &dpyinfo->Xatom_net_supported }, | 10251 | { "_NET_SUPPORTING_WM_CHECK", &dpyinfo->Xatom_net_supporting_wm_check }, |
| 10251 | { "_NET_WM_WINDOW_OPACITY", &dpyinfo->Xatom_net_wm_window_opacity }, | 10252 | { "_NET_WM_WINDOW_OPACITY", &dpyinfo->Xatom_net_wm_window_opacity }, |
| 10252 | { "_NET_ACTIVE_WINDOW", &dpyinfo->Xatom_net_active_window }, | 10253 | { "_NET_ACTIVE_WINDOW", &dpyinfo->Xatom_net_active_window }, |
| 10253 | { "_NET_FRAME_EXTENTS", &dpyinfo->Xatom_net_frame_extents }, | 10254 | { "_NET_FRAME_EXTENTS", &dpyinfo->Xatom_net_frame_extents }, |