~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to menus.c

  • Committer: Matthew Fuller
  • Date: 2016-09-03 04:29:20 UTC
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: fullermd@over-yonder.net-20160903042920-4m0rvevk8z1dejcs
Bust functions related to iconifying/deiconifying windows out of
menus.c (the obvious place) and into their own file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
#include <string.h>
75
75
#include <strings.h>
76
76
 
77
 
#include <X11/extensions/shape.h>
78
 
 
79
77
#include "ctwm_atoms.h"
80
78
#include "menus.h"
81
79
#include "resize.h"
93
91
#include "image.h"
94
92
#include "functions.h"
95
93
#include "screen.h"
 
94
#include "win_iconify.h"
96
95
#include "workspace_manager.h"
97
96
#include "workspace_utils.h"
98
97
#ifdef SOUNDS
133
132
 
134
133
static void Paint3DEntry(MenuRoot *mr, MenuItem *mi, bool exposure);
135
134
static void PaintNormalEntry(MenuRoot *mr, MenuItem *mi, bool exposure);
136
 
static void MosaicFade(TwmWindow *tmp_win, Window blanket);
137
135
static void DestroyMenu(MenuRoot *menu);
138
 
static void ZoomInWindow(TwmWindow *tmp_win, Window blanket);
139
 
static void ZoomOutWindow(TwmWindow *tmp_win, Window blanket);
140
 
static void FadeWindow(TwmWindow *tmp_win, Window blanket);
141
 
static void SweepWindow(TwmWindow *tmp_win, Window blanket);
142
 
static void waitamoment(float timeout);
143
136
static void TryToPush_be(TwmWindow *tmp_win, int x, int y, PushDirection dir);
144
137
 
145
138
 
1766
1759
        }
1767
1760
}
1768
1761
 
1769
 
static void ReMapOne(TwmWindow *t, TwmWindow *leader)
1770
 
{
1771
 
        if(t->icon_on) {
1772
 
                Zoom(t->icon->w, t->frame);
1773
 
        }
1774
 
        else if(leader->icon) {
1775
 
                Zoom(leader->icon->w, t->frame);
1776
 
        }
1777
 
 
1778
 
        if(!t->squeezed) {
1779
 
                XMapWindow(dpy, t->w);
1780
 
        }
1781
 
        t->mapped = true;
1782
 
        if(False && Scr->Root != Scr->CaptiveRoot) {        /* XXX dubious test */
1783
 
                ReparentWindow(dpy, t, WinWin, Scr->Root, t->frame_x, t->frame_y);
1784
 
        }
1785
 
        if(!Scr->NoRaiseDeicon) {
1786
 
                OtpRaise(t, WinWin);
1787
 
        }
1788
 
        XMapWindow(dpy, t->frame);
1789
 
        SetMapStateProp(t, NormalState);
1790
 
 
1791
 
        if(t->icon && t->icon->w) {
1792
 
                XUnmapWindow(dpy, t->icon->w);
1793
 
                IconDown(t);
1794
 
                if(Scr->ShrinkIconTitles) {
1795
 
                        t->icon->title_shrunk = true;
1796
 
                }
1797
 
        }
1798
 
        if(t->iconmanagerlist) {
1799
 
                WList *wl;
1800
 
 
1801
 
                for(wl = t->iconmanagerlist; wl != NULL; wl = wl->nextv) {
1802
 
                        XUnmapWindow(dpy, wl->icon);
1803
 
                }
1804
 
        }
1805
 
        t->isicon = false;
1806
 
        t->icon_on = false;
1807
 
        WMapDeIconify(t);
1808
 
}
1809
 
 
1810
 
static void ReMapTransients(TwmWindow *tmp_win)
1811
 
{
1812
 
        TwmWindow *t;
1813
 
 
1814
 
        /* find t such that it is a transient or group member window */
1815
 
        for(t = Scr->FirstWindow; t != NULL; t = t->next) {
1816
 
                if(t != tmp_win &&
1817
 
                                ((t->istransient && t->transientfor == tmp_win->w) ||
1818
 
                                 (t->group == tmp_win->w && t->isicon))) {
1819
 
                        ReMapOne(t, tmp_win);
1820
 
                }
1821
 
        }
1822
 
}
1823
 
 
1824
 
void DeIconify(TwmWindow *tmp_win)
1825
 
{
1826
 
        TwmWindow *t = tmp_win;
1827
 
        bool isicon = false;
1828
 
 
1829
 
        /* de-iconify the main window */
1830
 
        if(Scr->WindowMask) {
1831
 
                XRaiseWindow(dpy, Scr->WindowMask);
1832
 
        }
1833
 
        if(tmp_win->isicon) {
1834
 
                isicon = true;
1835
 
                if(tmp_win->icon_on && tmp_win->icon && tmp_win->icon->w) {
1836
 
                        Zoom(tmp_win->icon->w, tmp_win->frame);
1837
 
                }
1838
 
                else if(tmp_win->group != (Window) 0) {
1839
 
                        t = GetTwmWindow(tmp_win->group);
1840
 
                        if(t && t->icon_on && t->icon && t->icon->w) {
1841
 
                                Zoom(t->icon->w, tmp_win->frame);
1842
 
                        }
1843
 
                }
1844
 
        }
1845
 
 
1846
 
        ReMapOne(tmp_win, t);
1847
 
 
1848
 
        if(isicon &&
1849
 
                        (Scr->WarpCursor ||
1850
 
                         LookInList(Scr->WarpCursorL, tmp_win->full_name, &tmp_win->class))) {
1851
 
                WarpToWindow(tmp_win, false);
1852
 
        }
1853
 
 
1854
 
        /* now de-iconify any window group transients */
1855
 
        ReMapTransients(tmp_win);
1856
 
 
1857
 
        if(! Scr->WindowMask && Scr->DeIconifyFunction.func != 0) {
1858
 
                char *action;
1859
 
                XEvent event;
1860
 
 
1861
 
                action = Scr->DeIconifyFunction.item ?
1862
 
                         Scr->DeIconifyFunction.item->action : NULL;
1863
 
                ExecuteFunction(Scr->DeIconifyFunction.func, action,
1864
 
                                (Window) 0, tmp_win, &event, C_ROOT, false);
1865
 
        }
1866
 
        XSync(dpy, 0);
1867
 
}
1868
 
 
1869
 
static void
1870
 
UnmapTransients(TwmWindow *tmp_win, bool iconify, long eventMask)
1871
 
{
1872
 
        TwmWindow *t;
1873
 
 
1874
 
        for(t = Scr->FirstWindow; t != NULL; t = t->next) {
1875
 
                if(t != tmp_win &&
1876
 
                                ((t->istransient && t->transientfor == tmp_win->w) ||
1877
 
                                 t->group == tmp_win->w)) {
1878
 
                        if(iconify) {
1879
 
                                if(t->icon_on) {
1880
 
                                        Zoom(t->icon->w, tmp_win->icon->w);
1881
 
                                }
1882
 
                                else if(tmp_win->icon) {
1883
 
                                        Zoom(t->frame, tmp_win->icon->w);
1884
 
                                }
1885
 
                        }
1886
 
 
1887
 
                        /*
1888
 
                         * Prevent the receipt of an UnmapNotify, since that would
1889
 
                         * cause a transition to the Withdrawn state.
1890
 
                         */
1891
 
                        t->mapped = false;
1892
 
 
1893
 
                        /*
1894
 
                         * Note that here, we're setting masks relative to what we
1895
 
                         * were passed, which is that of the window these are
1896
 
                         * transient for, rather than relative to these windows'
1897
 
                         * current masks.  I believe in practice it's the same thing,
1898
 
                         * and it saves getting attributes on each for masking.
1899
 
                         * Still, a little odd...
1900
 
                         */
1901
 
                        mask_out_event_mask(t->w, StructureNotifyMask, eventMask);
1902
 
                        XUnmapWindow(dpy, t->w);
1903
 
                        XUnmapWindow(dpy, t->frame);
1904
 
                        restore_mask(t->w, eventMask);
1905
 
 
1906
 
                        if(t->icon && t->icon->w) {
1907
 
                                XUnmapWindow(dpy, t->icon->w);
1908
 
                        }
1909
 
                        SetMapStateProp(t, IconicState);
1910
 
                        if(t == Scr->Focus) {
1911
 
                                SetFocus(NULL, LastTimestamp());
1912
 
                                if(! Scr->ClickToFocus) {
1913
 
                                        Scr->FocusRoot = true;
1914
 
                                }
1915
 
                        }
1916
 
                        if(t->iconmanagerlist) {
1917
 
                                XMapWindow(dpy, t->iconmanagerlist->icon);
1918
 
                        }
1919
 
                        t->isicon = true;
1920
 
                        t->icon_on = false;
1921
 
                        WMapIconify(t);
1922
 
                }
1923
 
        }
1924
 
}
1925
 
 
1926
 
void Iconify(TwmWindow *tmp_win, int def_x, int def_y)
1927
 
{
1928
 
        TwmWindow *t;
1929
 
        bool iconify;
1930
 
        long eventMask;
1931
 
        WList *wl;
1932
 
        Window leader = (Window) - 1;
1933
 
        Window blanket = (Window) - 1;
1934
 
 
1935
 
        iconify = (!tmp_win->iconify_by_unmapping);
1936
 
        t = NULL;
1937
 
        if(tmp_win->istransient) {
1938
 
                leader = tmp_win->transientfor;
1939
 
                t = GetTwmWindow(leader);
1940
 
        }
1941
 
        else if((leader = tmp_win->group) != 0 && leader != tmp_win->w) {
1942
 
                t = GetTwmWindow(leader);
1943
 
        }
1944
 
        if(t && t->icon_on) {
1945
 
                iconify = false;
1946
 
        }
1947
 
        if(iconify) {
1948
 
                if(!tmp_win->icon || !tmp_win->icon->w) {
1949
 
                        CreateIconWindow(tmp_win, def_x, def_y);
1950
 
                }
1951
 
                else {
1952
 
                        IconUp(tmp_win);
1953
 
                }
1954
 
                if(visible(tmp_win)) {
1955
 
                        if(Scr->WindowMask) {
1956
 
                                OtpRaise(tmp_win, IconWin);
1957
 
                                XMapWindow(dpy, tmp_win->icon->w);
1958
 
                        }
1959
 
                        else {
1960
 
                                OtpRaise(tmp_win, IconWin);
1961
 
                                XMapWindow(dpy, tmp_win->icon->w);
1962
 
                        }
1963
 
                }
1964
 
        }
1965
 
        if(tmp_win->iconmanagerlist) {
1966
 
                for(wl = tmp_win->iconmanagerlist; wl != NULL; wl = wl->nextv) {
1967
 
                        XMapWindow(dpy, wl->icon);
1968
 
                }
1969
 
        }
1970
 
 
1971
 
        /* Don't mask anything yet, just get the current for various uses */
1972
 
        eventMask = mask_out_event(tmp_win->w, 0);
1973
 
 
1974
 
        /* iconify transients and window group first */
1975
 
        UnmapTransients(tmp_win, iconify, eventMask);
1976
 
 
1977
 
        if(iconify) {
1978
 
                Zoom(tmp_win->frame, tmp_win->icon->w);
1979
 
        }
1980
 
 
1981
 
        /*
1982
 
         * Prevent the receipt of an UnmapNotify, since that would
1983
 
         * cause a transition to the Withdrawn state.
1984
 
         */
1985
 
        tmp_win->mapped = false;
1986
 
 
1987
 
        if((Scr->IconifyStyle != ICONIFY_NORMAL) && !Scr->WindowMask) {
1988
 
                XWindowAttributes winattrs;
1989
 
                XSetWindowAttributes attr;
1990
 
 
1991
 
                XGetWindowAttributes(dpy, tmp_win->frame, &winattrs);
1992
 
                attr.backing_store = NotUseful;
1993
 
                attr.save_under    = False;
1994
 
                blanket = XCreateWindow(dpy, Scr->Root, winattrs.x, winattrs.y,
1995
 
                                        winattrs.width, winattrs.height, 0,
1996
 
                                        CopyFromParent, CopyFromParent,
1997
 
                                        CopyFromParent, CWBackingStore | CWSaveUnder, &attr);
1998
 
                XMapWindow(dpy, blanket);
1999
 
        }
2000
 
 
2001
 
        mask_out_event_mask(tmp_win->w, StructureNotifyMask, eventMask);
2002
 
        XUnmapWindow(dpy, tmp_win->w);
2003
 
        XUnmapWindow(dpy, tmp_win->frame);
2004
 
        restore_mask(tmp_win->w, eventMask);
2005
 
 
2006
 
        SetMapStateProp(tmp_win, IconicState);
2007
 
 
2008
 
        if((Scr->IconifyStyle != ICONIFY_NORMAL) && !Scr->WindowMask) {
2009
 
                switch(Scr->IconifyStyle) {
2010
 
                        case ICONIFY_MOSAIC:
2011
 
                                MosaicFade(tmp_win, blanket);
2012
 
                                break;
2013
 
                        case ICONIFY_ZOOMIN:
2014
 
                                ZoomInWindow(tmp_win, blanket);
2015
 
                                break;
2016
 
                        case ICONIFY_ZOOMOUT:
2017
 
                                ZoomOutWindow(tmp_win, blanket);
2018
 
                                break;
2019
 
                        case ICONIFY_FADE:
2020
 
                                FadeWindow(tmp_win, blanket);
2021
 
                                break;
2022
 
                        case ICONIFY_SWEEP:
2023
 
                                SweepWindow(tmp_win, blanket);
2024
 
                                break;
2025
 
                        case ICONIFY_NORMAL:
2026
 
                                /* Placate insufficiently smart clang warning */
2027
 
                                break;
2028
 
                }
2029
 
                XDestroyWindow(dpy, blanket);
2030
 
        }
2031
 
        if(tmp_win == Scr->Focus) {
2032
 
                SetFocus(NULL, LastTimestamp());
2033
 
                if(! Scr->ClickToFocus) {
2034
 
                        Scr->FocusRoot = true;
2035
 
                }
2036
 
        }
2037
 
        tmp_win->isicon = true;
2038
 
        tmp_win->icon_on = iconify;
2039
 
        WMapIconify(tmp_win);
2040
 
        if(! Scr->WindowMask && Scr->IconifyFunction.func != 0) {
2041
 
                char *action;
2042
 
                XEvent event;
2043
 
 
2044
 
                action = Scr->IconifyFunction.item ? Scr->IconifyFunction.item->action : NULL;
2045
 
                ExecuteFunction(Scr->IconifyFunction.func, action,
2046
 
                                (Window) 0, tmp_win, &event, C_ROOT, false);
2047
 
        }
2048
 
        XSync(dpy, 0);
2049
 
}
2050
1762
 
2051
1763
void AutoSqueeze(TwmWindow *tmp_win)
2052
1764
{
2574
2286
                           Scr->SizeFont.ascent + SIZE_VINDENT , str, 13);
2575
2287
}
2576
2288
 
2577
 
static void MosaicFade(TwmWindow *tmp_win, Window blanket)
2578
 
{
2579
 
        int         srect;
2580
 
        int         i, j, nrects;
2581
 
        Pixmap      mask;
2582
 
        GC          gc;
2583
 
        XGCValues   gcv;
2584
 
        XRectangle *rectangles;
2585
 
        int  width = tmp_win->frame_width;
2586
 
        int height = tmp_win->frame_height;
2587
 
 
2588
 
        srect = (width < height) ? (width / 20) : (height / 20);
2589
 
        mask  = XCreatePixmap(dpy, blanket, width, height, 1);
2590
 
 
2591
 
        gcv.foreground = 1;
2592
 
        gc = XCreateGC(dpy, mask, GCForeground, &gcv);
2593
 
        XFillRectangle(dpy, mask, gc, 0, 0, width, height);
2594
 
        gcv.function = GXclear;
2595
 
        XChangeGC(dpy, gc, GCFunction, &gcv);
2596
 
 
2597
 
        nrects = ((width * height) / (srect * srect)) / 10;
2598
 
        rectangles = calloc(nrects, sizeof(XRectangle));
2599
 
        for(j = 0; j < nrects; j++) {
2600
 
                rectangles [j].width  = srect;
2601
 
                rectangles [j].height = srect;
2602
 
        }
2603
 
        for(i = 0; i < 10; i++) {
2604
 
                for(j = 0; j < nrects; j++) {
2605
 
                        rectangles [j].x = ((lrand48() %  width) / srect) * srect;
2606
 
                        rectangles [j].y = ((lrand48() % height) / srect) * srect;
2607
 
                }
2608
 
                XFillRectangles(dpy, mask, gc, rectangles, nrects);
2609
 
                XShapeCombineMask(dpy, blanket, ShapeBounding, 0, 0, mask, ShapeSet);
2610
 
                XFlush(dpy);
2611
 
                waitamoment(0.020);
2612
 
        }
2613
 
        XFreePixmap(dpy, mask);
2614
 
        XFreeGC(dpy, gc);
2615
 
        free(rectangles);
2616
 
}
2617
 
 
2618
 
static void ZoomInWindow(TwmWindow *tmp_win, Window blanket)
2619
 
{
2620
 
        Pixmap        mask;
2621
 
        GC            gc, gcn;
2622
 
        XGCValues     gcv;
2623
 
 
2624
 
        int i, nsteps = 20;
2625
 
        int w = tmp_win->frame_width;
2626
 
        int h = tmp_win->frame_height;
2627
 
        int step = (MAX(w, h)) / (2.0 * nsteps);
2628
 
 
2629
 
        mask = XCreatePixmap(dpy, blanket, w, h, 1);
2630
 
        gcv.foreground = 1;
2631
 
        gc  = XCreateGC(dpy, mask, GCForeground, &gcv);
2632
 
        gcv.function = GXclear;
2633
 
        gcn = XCreateGC(dpy, mask, GCForeground | GCFunction, &gcv);
2634
 
 
2635
 
        for(i = 0; i < nsteps; i++) {
2636
 
                XFillRectangle(dpy, mask, gcn, 0, 0, w, h);
2637
 
                XFillArc(dpy, mask, gc, (w / 2) - ((nsteps - i) * step),
2638
 
                         (h / 2) - ((nsteps - i) * step),
2639
 
                         2 * (nsteps - i) * step,
2640
 
                         2 * (nsteps - i) * step,
2641
 
                         0, 360 * 64);
2642
 
                XShapeCombineMask(dpy, blanket, ShapeBounding, 0, 0, mask, ShapeSet);
2643
 
                XFlush(dpy);
2644
 
                waitamoment(0.020);
2645
 
        }
2646
 
}
2647
 
 
2648
 
static void ZoomOutWindow(TwmWindow *tmp_win, Window blanket)
2649
 
{
2650
 
        Pixmap        mask;
2651
 
        GC            gc;
2652
 
        XGCValues     gcv;
2653
 
 
2654
 
        int i, nsteps = 20;
2655
 
        int w = tmp_win->frame_width;
2656
 
        int h = tmp_win->frame_height;
2657
 
        int step = (MAX(w, h)) / (2.0 * nsteps);
2658
 
 
2659
 
        mask  = XCreatePixmap(dpy, blanket, w, h, 1);
2660
 
        gcv.foreground = 1;
2661
 
        gc = XCreateGC(dpy, mask, GCForeground, &gcv);
2662
 
        XFillRectangle(dpy, mask, gc, 0, 0, w, h);
2663
 
        gcv.function = GXclear;
2664
 
        XChangeGC(dpy, gc, GCFunction, &gcv);
2665
 
 
2666
 
        for(i = 0; i < nsteps; i++) {
2667
 
                XFillArc(dpy, mask, gc, (w / 2) - (i * step),
2668
 
                         (h / 2) - (i * step),
2669
 
                         2 * i * step,
2670
 
                         2 * i * step,
2671
 
                         0, 360 * 64);
2672
 
                XShapeCombineMask(dpy, blanket, ShapeBounding, 0, 0, mask, ShapeSet);
2673
 
                XFlush(dpy);
2674
 
                waitamoment(0.020);
2675
 
        }
2676
 
}
2677
 
 
2678
 
void FadeWindow(TwmWindow *tmp_win, Window blanket)
2679
 
{
2680
 
        Pixmap        mask, stipple;
2681
 
        GC            gc;
2682
 
        XGCValues     gcv;
2683
 
        static unsigned char stipple_bits[] = { 0x0F, 0x0F,
2684
 
                                                0xF0, 0xF0,
2685
 
                                                0x0F, 0x0F,
2686
 
                                                0xF0, 0xF0,
2687
 
                                                0x0F, 0x0F,
2688
 
                                                0xF0, 0xF0,
2689
 
                                                0x0F, 0x0F,
2690
 
                                                0xF0, 0xF0,
2691
 
                                              };
2692
 
        int w = tmp_win->frame_width;
2693
 
        int h = tmp_win->frame_height;
2694
 
 
2695
 
        stipple = XCreateBitmapFromData(dpy, blanket, (char *)stipple_bits, 8, 8);
2696
 
        mask    = XCreatePixmap(dpy, blanket, w, h, 1);
2697
 
        gcv.background = 0;
2698
 
        gcv.foreground = 1;
2699
 
        gcv.stipple    = stipple;
2700
 
        gcv.fill_style = FillOpaqueStippled;
2701
 
        gc = XCreateGC(dpy, mask, GCBackground | GCForeground | GCFillStyle | GCStipple,
2702
 
                       &gcv);
2703
 
        XFillRectangle(dpy, mask, gc, 0, 0, w, h);
2704
 
 
2705
 
        XShapeCombineMask(dpy, blanket, ShapeBounding, 0, 0, mask, ShapeSet);
2706
 
        XFlush(dpy);
2707
 
        waitamoment(0.10);
2708
 
        XFreePixmap(dpy, stipple);
2709
 
        XFlush(dpy);
2710
 
}
2711
 
 
2712
 
static void SweepWindow(TwmWindow *tmp_win, Window blanket)
2713
 
{
2714
 
        float step = 0.0;
2715
 
        int i, nsteps = 20;
2716
 
        int dir = 0, dist = tmp_win->frame_x, dist1;
2717
 
 
2718
 
        dist1 = tmp_win->frame_y;
2719
 
        if(dist1 < dist) {
2720
 
                dir = 1;
2721
 
                dist = dist1;
2722
 
        }
2723
 
        dist1 = tmp_win->vs->w - (tmp_win->frame_x + tmp_win->frame_width);
2724
 
        if(dist1 < dist) {
2725
 
                dir = 2;
2726
 
                dist = dist1;
2727
 
        }
2728
 
        dist1 = tmp_win->vs->h - (tmp_win->frame_y + tmp_win->frame_height);
2729
 
        if(dist1 < dist) {
2730
 
                dir = 3;
2731
 
                dist = dist1;
2732
 
        }
2733
 
 
2734
 
        switch(dir) {
2735
 
                case 0:
2736
 
                        step = tmp_win->frame_x + tmp_win->frame_width;
2737
 
                        break;
2738
 
                case 1:
2739
 
                        step = tmp_win->frame_y + tmp_win->frame_height;
2740
 
                        break;
2741
 
                case 2:
2742
 
                        step = tmp_win->vs->w - tmp_win->frame_x;
2743
 
                        break;
2744
 
                case 3:
2745
 
                        step = tmp_win->vs->h - tmp_win->frame_y;
2746
 
                        break;
2747
 
        }
2748
 
        step /= (float) nsteps;
2749
 
        step /= (float) nsteps;
2750
 
        for(i = 0; i < 20; i++) {
2751
 
                int x = tmp_win->frame_x;
2752
 
                int y = tmp_win->frame_y;
2753
 
                switch(dir) {
2754
 
                        case 0:
2755
 
                                x -= i * i * step;
2756
 
                                break;
2757
 
                        case 1:
2758
 
                                y -= i * i * step;
2759
 
                                break;
2760
 
                        case 2:
2761
 
                                x += i * i * step;
2762
 
                                break;
2763
 
                        case 3:
2764
 
                                y += i * i * step;
2765
 
                                break;
2766
 
                }
2767
 
                XMoveWindow(dpy, blanket, x, y);
2768
 
                XFlush(dpy);
2769
 
                waitamoment(0.020);
2770
 
        }
2771
 
}
2772
 
 
2773
 
static void waitamoment(float timeout)
2774
 
{
2775
 
        struct timeval timeoutstruct;
2776
 
        int usec = timeout * 1000000;
2777
 
        timeoutstruct.tv_usec = usec % (unsigned long) 1000000;
2778
 
        timeoutstruct.tv_sec  = usec / (unsigned long) 1000000;
2779
 
        select(0, NULL, NULL, NULL, &timeoutstruct);
2780
 
}
2781
2289
 
2782
2290
void TryToPack(TwmWindow *tmp_win, int *x, int *y)
2783
2291
{