• 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

修订版349e60e488264020aec1fe4c2d1db1ac762b55c8 (tree)
时间2010-11-17 20:56:11
作者Michal Maruska <mmaruska@gmai...>
CommiterMichal Maruska

Log Message

when Unmaping client windows at start, avoid the events

更改概述

差异

--- a/src/windows.c
+++ b/src/windows.c
@@ -1609,7 +1609,8 @@ manage_windows (void)
16091609 int revert_to;
16101610
16111611 Fgrab_server ();
1612-
1612+ /* avoid Unmap events */
1613+ XSelectInput (dpy, root_window, ROOT_EVENTS & ~SubstructureNotifyMask);
16131614 XGetInputFocus (dpy, &focus, &revert_to);
16141615 if (focus == PointerRoot)
16151616 {
@@ -1639,9 +1640,9 @@ manage_windows (void)
16391640 fake.xmaprequest.window = children[i];
16401641 /* Make sure the window is initially unmapped. We expect to
16411642 get map-notify events when we later remap it.. #67601 */
1642- XUnmapWindow (dpy, children[i]);
1643+ // XUnmapWindow (dpy, children[i]);
16431644 map_request (&fake);
1644- w = find_window_by_id (children[i]);
1645+ // w = find_window_by_id (children[i]);
16451646 }
16461647 }
16471648 initialising = FALSE;
@@ -1657,6 +1658,7 @@ manage_windows (void)
16571658 focus_on_window (w);
16581659 }
16591660
1661+ XSelectInput (dpy, root_window, ROOT_EVENTS);
16601662 Fungrab_server ();
16611663 Fcall_hook (Qafter_initialization_hook, Qnil, Qnil);
16621664 }