• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

修订版4b5f28413def46d3ed831b5e2586defd84f75079 (tree)
时间1999-12-13 07:08:19
作者john <john>
Commiterjohn

Log Message

*** empty log message ***

更改概述

差异

--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,6 +5,9 @@
55 * events.c (motion_notify): don't compare the event window with
66 the button-press window; just use the saved context map from
77 the actual button-press event
8+ (button_press): only use the context map if the part is
9+ currently clicked; forcible ungrab the pointer after all button
10+ release events
811
912 * frames.c (frame_part_destroyer): if we unclick a frame part,
1013 ungrab the pointer as well
--- a/src/events.c
+++ b/src/events.c
@@ -259,13 +259,16 @@ button_press (XEvent *ev)
259259 w = fp->win;
260260
261261 if (ev->type == ButtonPress)
262+ {
262263 handle_fp_click (fp, ev);
263-
264- if (fp->clicked)
265264 current_context_map = get_keymap_for_frame_part (fp);
265+ }
266266 }
267267
268- eval_input_event (current_context_map);
268+ /* Only use the context map if the frame part is currently clicked */
269+ eval_input_event ((clicked_frame_part
270+ && clicked_frame_part->clicked)
271+ ? current_context_map : Qnil);
269272
270273 if (fp != 0 && w->id != 0 && ev->type == ButtonRelease)
271274 {
@@ -285,6 +288,8 @@ button_press (XEvent *ev)
285288 button_press_mouse_x = button_press_mouse_y = -1;
286289 button_press_window = 0;
287290 current_context_map = Qnil;
291+ /* The pointer is _always_ ungrabbed after a button-release */
292+ XUngrabPointer (dpy, last_event_time);
288293 }
289294
290295 XAllowEvents (dpy, ev->type == ButtonPress ? SyncPointer : AsyncPointer,