aboutsummaryrefslogtreecommitdiffstats
path: root/lwlib
diff options
context:
space:
mode:
authorKaroly Lorentey2006-05-24 09:13:31 +0000
committerKaroly Lorentey2006-05-24 09:13:31 +0000
commit40a1b46245c1a8786324f5a06d6cb8d4bd9d5b74 (patch)
treef45020695e190f511f4faf4dd3ed144059f298c0 /lwlib
parentdbe9f5ba9648890dc34f4836a49fde766b21ce74 (diff)
parent4ea5193b9cc5c577127ca6c89ecfaad819398d3b (diff)
downloademacs-40a1b46245c1a8786324f5a06d6cb8d4bd9d5b74.tar.gz
emacs-40a1b46245c1a8786324f5a06d6cb8d4bd9d5b74.zip
Merged from emacs@sv.gnu.org
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-289 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-290 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-291 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-292 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-293 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-567
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/ChangeLog10
-rw-r--r--lwlib/xlwmenu.c26
2 files changed, 17 insertions, 19 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index 0bd79a323c7..0a8480b7724 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,3 +1,13 @@
12006-05-23 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * xlwmenu.c: Include xterm.h if emacs instead of declaring functions
4 used.
5 (string_width): Declare as static.
6 (Start, pop_up_menu): Set is_hint to 0 before calling
7 handle_motion_event.
8 (pop_up_menu): Return value and parameters for x_catch_errors and
9 x_uncatch_errors changed.
10
12005-09-27 Dan Nicolaescu <dann@ics.uci.edu> 112005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
2 12
3 * xlwmenu.c (find_next_selectable): 13 * xlwmenu.c (find_next_selectable):
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index 7b35f0ce62a..1a0dcf7d0b3 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -53,21 +53,8 @@ extern int gray_bitmap_width;
53extern int gray_bitmap_height; 53extern int gray_bitmap_height;
54extern char *gray_bitmap_bits; 54extern char *gray_bitmap_bits;
55 55
56/* Defined in xterm.c. */ 56#include "xterm.h"
57extern int x_alloc_nearest_color_for_widget __P ((Widget, Colormap, XColor*)); 57
58extern int x_alloc_lighter_color_for_widget __P ((Widget, Display*, Colormap,
59 unsigned long *,
60 double, int));
61extern int x_catch_errors __P ((Display*));
62extern void x_uncatch_errors P_ ((Display *, int));
63extern int x_had_errors_p __P ((Display*));
64extern void x_clear_errors __P ((Display*));
65extern unsigned long x_copy_dpy_color __P ((Display *, Colormap,
66 unsigned long));
67
68/* Defined in xfaces.c. */
69extern void x_free_dpy_colors __P ((Display *, Screen *, Colormap,
70 unsigned long *pixels, int npixels));
71#else /* not emacs */ 58#else /* not emacs */
72 59
73#include <X11/bitmaps/gray> 60#include <X11/bitmaps/gray>
@@ -352,7 +339,7 @@ make_old_stack_space (mw, n)
352} 339}
353 340
354 /* Size code */ 341 /* Size code */
355int 342static int
356string_width (mw, s) 343string_width (mw, s)
357 XlwMenuWidget mw; 344 XlwMenuWidget mw;
358 char *s; 345 char *s;
@@ -2098,6 +2085,7 @@ Start (w, ev, params, num_params)
2098 mw->menu.windows [0].y = ev->xmotion.y_root - ev->xmotion.y; 2085 mw->menu.windows [0].y = ev->xmotion.y_root - ev->xmotion.y;
2099 2086
2100 /* handles the down like a move, slots are compatible */ 2087 /* handles the down like a move, slots are compatible */
2088 ev->xmotion.is_hint = 0;
2101 handle_motion_event (mw, &ev->xmotion); 2089 handle_motion_event (mw, &ev->xmotion);
2102 } 2090 }
2103} 2091}
@@ -2435,7 +2423,6 @@ pop_up_menu (mw, event)
2435 int borderwidth = mw->menu.shadow_thickness; 2423 int borderwidth = mw->menu.shadow_thickness;
2436 Screen* screen = XtScreen (mw); 2424 Screen* screen = XtScreen (mw);
2437 Display *display = XtDisplay (mw); 2425 Display *display = XtDisplay (mw);
2438 int count;
2439 2426
2440 next_release_must_exit = 0; 2427 next_release_must_exit = 0;
2441 2428
@@ -2482,7 +2469,7 @@ pop_up_menu (mw, event)
2482 } 2469 }
2483 2470
2484#ifdef emacs 2471#ifdef emacs
2485 count = x_catch_errors (display); 2472 x_catch_errors (display);
2486#endif 2473#endif
2487 if (XtGrabPointer ((Widget)mw, False, 2474 if (XtGrabPointer ((Widget)mw, False,
2488 (PointerMotionMask 2475 (PointerMotionMask
@@ -2510,9 +2497,10 @@ pop_up_menu (mw, event)
2510 pointer_grabbed = 0; 2497 pointer_grabbed = 0;
2511 XtUngrabPointer ((Widget)mw, event->time); 2498 XtUngrabPointer ((Widget)mw, event->time);
2512 } 2499 }
2513 x_uncatch_errors (display, count); 2500 x_uncatch_errors ();
2514#endif 2501#endif
2515 2502
2503 ((XMotionEvent*)event)->is_hint = 0;
2516 handle_motion_event (mw, (XMotionEvent*)event); 2504 handle_motion_event (mw, (XMotionEvent*)event);
2517} 2505}
2518 2506