comparison src/event-Xt.c @ 100:4be1180a9e89 r20-1b2

Import from CVS: tag r20-1b2
author cvs
date Mon, 13 Aug 2007 09:15:11 +0200
parents 6a378aca36af
children a145efe76779
comparison
equal deleted inserted replaced
99:2d83cbd90d8d 100:4be1180a9e89
52 #include <Xm/Xm.h> 52 #include <Xm/Xm.h>
53 #endif 53 #endif
54 #include "lstream.h" 54 #include "lstream.h"
55 #include "mule-coding.h" 55 #include "mule-coding.h"
56 #endif 56 #endif
57
58 #ifdef WINDOWSNT
59 /* Hmm, under unix we want X modifiers, under NT we want X modifiers if
60 we are running X and Windows modifiers otherwise.
61 gak. This is a kludge until we support multiple native GUIs!
62 */
63 #undef MOD_ALT
64 #undef MOD_CONTROL
65 #undef MOD_SHIFT
66 #endif
67
68 #include <events-mod.h>
57 69
58 static void enqueue_Xt_dispatch_event (Lisp_Object event); 70 static void enqueue_Xt_dispatch_event (Lisp_Object event);
59 71
60 static struct event_stream *Xt_event_stream; 72 static struct event_stream *Xt_event_stream;
61 73
1317 handle_client_message (f, event); 1329 handle_client_message (f, event);
1318 break; 1330 break;
1319 1331
1320 case VisibilityNotify: /* window visiblity has changed */ 1332 case VisibilityNotify: /* window visiblity has changed */
1321 if (event->xvisibility.window == XtWindow (FRAME_X_SHELL_WIDGET (f))) 1333 if (event->xvisibility.window == XtWindow (FRAME_X_SHELL_WIDGET (f)))
1322 FRAME_X_TOTALLY_VISIBLE_P (f) = 1334 #if 0 /* This causes all kinds of strange behavior I don't like. -sb */
1323 (event->xvisibility.state == VisibilityUnobscured); 1335 {
1336 /* Note that the fvwm pager only sends VisibilityNotify when
1337 changing pages. Is this all we need to do ? JV */
1338 FRAME_VISIBLE_P (f) =
1339 ( event->xvisibility.state != VisibilityFullyObscured);
1340 FRAME_X_TOTALLY_VISIBLE_P (f) =
1341 (event->xvisibility.state == VisibilityUnobscured);
1342 }
1343 #else
1344 FRAME_X_TOTALLY_VISIBLE_P (f) =
1345 (event->xvisibility.state == VisibilityUnobscured);
1346 #endif
1324 break; 1347 break;
1325 1348
1326 case ConfigureNotify: 1349 case ConfigureNotify:
1327 #ifdef HAVE_XIM 1350 #ifdef HAVE_XIM
1328 XIM_SetGeometry (f); 1351 XIM_SetGeometry (f);