… | |
… | |
1430 | && ev.xfocus.mode != NotifyGrab) |
1430 | && ev.xfocus.mode != NotifyGrab) |
1431 | focus_out (); |
1431 | focus_out (); |
1432 | break; |
1432 | break; |
1433 | |
1433 | |
1434 | case ConfigureNotify: |
1434 | case ConfigureNotify: |
1435 | /*fprintf (stderr, "ConfigureNotify for %X, parent is %X, geom is %dx%d%+d%+d, old geom was %dx%d\n", |
|
|
1436 | ev.xconfigure.window, parent[0], ev.xconfigure.width, ev.xconfigure.height, ev.xconfigure.x, ev.xconfigure.y, |
|
|
1437 | szHint.width, szHint.height);*/ |
|
|
1438 | if (ev.xconfigure.window == parent[0]) |
1435 | if (ev.xconfigure.window == parent[0]) |
1439 | { |
1436 | { |
1440 | while (XCheckTypedWindowEvent (dpy, ev.xconfigure.window, ConfigureNotify, &ev)) |
1437 | while (XCheckTypedWindowEvent (dpy, ev.xconfigure.window, ConfigureNotify, &ev)) |
1441 | ; |
1438 | ; |
1442 | |
1439 | |
… | |
… | |
1483 | selection_send (ev.xselectionrequest); |
1480 | selection_send (ev.xselectionrequest); |
1484 | break; |
1481 | break; |
1485 | |
1482 | |
1486 | case MapNotify: |
1483 | case MapNotify: |
1487 | #ifdef HAVE_BG_PIXMAP |
1484 | #ifdef HAVE_BG_PIXMAP |
1488 | /* This is needed spcifically to fix the case of no window manager or a |
1485 | /* This is needed specifically to fix the case of no window manager or a |
1489 | * non-reparenting window manager. In those cases we never get first |
1486 | * non-reparenting window manager. In those cases we never get first |
1490 | * ConfigureNotify. Also that speeds startup under normal WM, by taking |
1487 | * ConfigureNotify. Also that speeds startup under normal WM, by taking |
1491 | * care of multiplicity of ConfigureNotify events arriwing while WM does |
1488 | * care of multiplicity of ConfigureNotify events arriving while WM does |
1492 | * reparenting. |
1489 | * reparenting. |
1493 | * We should not render background immidiately, as there could be several |
1490 | * We should not render background immediately, as there could be several |
1494 | * ConfigureNotify's to follow. Lets take care of all of them in one scoop |
1491 | * ConfigureNotify's to follow. Lets take care of all of them in one scoop |
1495 | * by scheduling background redraw as soon as we can, but giving a short |
1492 | * by scheduling background redraw as soon as we can, but giving a short |
1496 | * bit of time for ConfigureNotifies to arrive. |
1493 | * bit of time for ConfigureNotifies to arrive. |
1497 | * We should render background PRIOR to drawing any text, but AFTER all |
1494 | * We should render background PRIOR to drawing any text, but AFTER all |
1498 | * of ConfigureNotifys for the best results. |
1495 | * of ConfigureNotifys for the best results. |
… | |
… | |
1869 | /* save the xbutton state (for ButtonRelease) */ |
1866 | /* save the xbutton state (for ButtonRelease) */ |
1870 | MEvent.state = ev.state; |
1867 | MEvent.state = ev.state; |
1871 | #ifdef MOUSE_REPORT_DOUBLECLICK |
1868 | #ifdef MOUSE_REPORT_DOUBLECLICK |
1872 | if (ev.button == MEvent.button && clickintime) |
1869 | if (ev.button == MEvent.button && clickintime) |
1873 | { |
1870 | { |
1874 | /* same button, within alloted time */ |
1871 | /* same button, within allowed time */ |
1875 | MEvent.clicks++; |
1872 | MEvent.clicks++; |
1876 | |
1873 | |
1877 | if (MEvent.clicks > 1) |
1874 | if (MEvent.clicks > 1) |
1878 | { |
1875 | { |
1879 | /* only report double clicks */ |
1876 | /* only report double clicks */ |
… | |
… | |
3610 | { 6, PrivMode_relOrigin }, // DECOM |
3607 | { 6, PrivMode_relOrigin }, // DECOM |
3611 | { 7, PrivMode_Autowrap }, // DECAWM |
3608 | { 7, PrivMode_Autowrap }, // DECAWM |
3612 | // 8, auto-repeat keys // DECARM |
3609 | // 8, auto-repeat keys // DECARM |
3613 | { 9, PrivMode_MouseX10 }, |
3610 | { 9, PrivMode_MouseX10 }, |
3614 | // 18 end FF to printer after print screen |
3611 | // 18 end FF to printer after print screen |
3615 | // 19 Print screen prints full screen/scorll region |
3612 | // 19 Print screen prints full screen/scroll region |
3616 | { 25, PrivMode_VisibleCursor }, // cnorm/cvvis/civis |
3613 | { 25, PrivMode_VisibleCursor }, // cnorm/cvvis/civis |
3617 | #ifdef scrollBar_esc |
3614 | #ifdef scrollBar_esc |
3618 | { scrollBar_esc, PrivMode_scrollBar }, |
3615 | { scrollBar_esc, PrivMode_scrollBar }, |
3619 | #endif |
3616 | #endif |
3620 | { 35, PrivMode_ShiftKeys }, // rxvt extension |
3617 | { 35, PrivMode_ShiftKeys }, // rxvt extension |