Japanese translation of message catalog for Sawfish Window-Manager
Revisión | 349e60e488264020aec1fe4c2d1db1ac762b55c8 (tree) |
---|---|
Tiempo | 2010-11-17 20:56:11 |
Autor | Michal Maruska <mmaruska@gmai...> |
Commiter | Michal Maruska |
when Unmaping client windows at start, avoid the events
@@ -1609,7 +1609,8 @@ manage_windows (void) | ||
1609 | 1609 | int revert_to; |
1610 | 1610 | |
1611 | 1611 | Fgrab_server (); |
1612 | - | |
1612 | + /* avoid Unmap events */ | |
1613 | + XSelectInput (dpy, root_window, ROOT_EVENTS & ~SubstructureNotifyMask); | |
1613 | 1614 | XGetInputFocus (dpy, &focus, &revert_to); |
1614 | 1615 | if (focus == PointerRoot) |
1615 | 1616 | { |
@@ -1639,9 +1640,9 @@ manage_windows (void) | ||
1639 | 1640 | fake.xmaprequest.window = children[i]; |
1640 | 1641 | /* Make sure the window is initially unmapped. We expect to |
1641 | 1642 | get map-notify events when we later remap it.. #67601 */ |
1642 | - XUnmapWindow (dpy, children[i]); | |
1643 | + // XUnmapWindow (dpy, children[i]); | |
1643 | 1644 | map_request (&fake); |
1644 | - w = find_window_by_id (children[i]); | |
1645 | + // w = find_window_by_id (children[i]); | |
1645 | 1646 | } |
1646 | 1647 | } |
1647 | 1648 | initialising = FALSE; |
@@ -1657,6 +1658,7 @@ manage_windows (void) | ||
1657 | 1658 | focus_on_window (w); |
1658 | 1659 | } |
1659 | 1660 | |
1661 | + XSelectInput (dpy, root_window, ROOT_EVENTS); | |
1660 | 1662 | Fungrab_server (); |
1661 | 1663 | Fcall_hook (Qafter_initialization_hook, Qnil, Qnil); |
1662 | 1664 | } |