Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 42

Thread: What is the tiniest Window Manager in existence for Linux?

  1. #11
    Join Date
    Jul 2007
    Location
    Tāmaki Makau-rau, NZ
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: What is the tiniest Window Manager in existence for Linux?

    Quote Originally Posted by K.Mandla View Post
    Musca might be interesting to you. Not the smallest, but very small all the same.

    http://aerosuidae.net/musca
    Umm... Link gives 400 Bad Request.
    BACKUPS are unsexy — until you discover you should have done one yesterday.
    Spare your nerves and do one before you upgrade or install.

  2. #12
    Join Date
    May 2008
    Location
    Novi Sad, Serbia
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: What is the tiniest Window Manager in existence for Linux?


  3. #13
    Join Date
    Aug 2008
    Location
    Bloomington, In. USA
    Beans
    80
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: What is the tiniest Window Manager in existence for Linux?

    My first thought was twm (http://en.wikipedia.org/wiki/Twm), but TinyWM sounds like it has twm beat.

  4. #14
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What is the tiniest Window Manager in existence for Linux?

    I had this idea a while ago. Give Wine more resources by running Openbox instead of Gnome.

    Result: I discovered that, for some reason, some Wine programs don't work properly outside Gnome. This interested me but I never got a chance to play around and work it out.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  5. #15
    Join Date
    Aug 2009
    Location
    Ireland / The Czech Repub
    Beans
    283
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: What is the tiniest Window Manager in existence for Linux?

    Quote Originally Posted by RiceMonster View Post
    TinyWM. It's only 50 lines of code or something like that.

    Edit: Here's the code:

    Code:
    /* TinyWM is written by Nick Welch <mack@incise.org>, 2005.
     *
     * This software is in the public domain
     * and is provided AS IS, with NO WARRANTY. */
    
    #include <X11/Xlib.h>
    
    #define MAX(a, b) ((a) > (b) ? (a) : (b))
    
    int main()
    {
        Display * dpy;
        Window root;
        XWindowAttributes attr;
        XButtonEvent start;
        XEvent ev;
    
        if(!(dpy = XOpenDisplay(0x0))) return 1;
    
        root = DefaultRootWindow(dpy);
    
        XGrabKey(dpy, XKeysymToKeycode(dpy, XStringToKeysym("F1")), Mod1Mask, root,
                True, GrabModeAsync, GrabModeAsync);
        XGrabButton(dpy, 1, Mod1Mask, root, True, ButtonPressMask, GrabModeAsync,
                GrabModeAsync, None, None);
        XGrabButton(dpy, 3, Mod1Mask, root, True, ButtonPressMask, GrabModeAsync,
                GrabModeAsync, None, None);
    
        for(;;)
        {
            XNextEvent(dpy, &ev);
            if(ev.type == KeyPress && ev.xkey.subwindow != None)
                XRaiseWindow(dpy, ev.xkey.subwindow);
            else if(ev.type == ButtonPress && ev.xbutton.subwindow != None)
            {
                XGrabPointer(dpy, ev.xbutton.subwindow, True,
                        PointerMotionMask|ButtonReleaseMask, GrabModeAsync,
                        GrabModeAsync, None, None, CurrentTime);
                XGetWindowAttributes(dpy, ev.xbutton.subwindow, &attr);
                start = ev.xbutton;
            }
            else if(ev.type == MotionNotify)
            {
                int xdiff, ydiff;
                while(XCheckTypedEvent(dpy, MotionNotify, &ev));
                xdiff = ev.xbutton.x_root - start.x_root;
                ydiff = ev.xbutton.y_root - start.y_root;
                XMoveResizeWindow(dpy, ev.xmotion.window,
                    attr.x + (start.button==1 ? xdiff : 0),
                    attr.y + (start.button==1 ? ydiff : 0),
                    MAX(1, attr.width + (start.button==3 ? xdiff : 0)),
                    MAX(1, attr.height + (start.button==3 ? ydiff : 0)));
            }
            else if(ev.type == ButtonRelease)
                XUngrabPointer(dpy, CurrentTime);
        }
    }


    That's so adorable! Awwwwwwwwwwwwwwwwwwwwww

  6. #16
    Join Date
    Nov 2008
    Location
    Here, There, Everywhere
    Beans
    1,163
    Distro
    Xubuntu

    Re: What is the tiniest Window Manager in existence for Linux?

    open a xterm session from GDM/KDM and start your apps from there without WM.

    you need to run a network daemon (wicd-client or nm-applet) before launching an app that uses the internet.

  7. #17
    Join Date
    Jun 2007
    Location
    Kent, UK
    Beans
    214

    Re: What is the tiniest Window Manager in existence for Linux?

    Quote Originally Posted by RabbitWho View Post
    That's so adorable! Awwwwwwwwwwwwwwwwwwwwww
    hahaha

    Quote Originally Posted by danielrmt View Post
    open a xterm session from GDM/KDM and start your apps from there without WM.

    you need to run a network daemon (wicd-client or nm-applet) before launching an app that uses the internet.
    oo that's VERY smart I never thought of this kinda because I didn't know it was possible! Nice one I'll try this too
    Registered Ubuntu user #28880

  8. #18
    Join Date
    Apr 2008
    Location
    RiceMonsterland, Canada
    Beans
    Hidden!

    Re: What is the tiniest Window Manager in existence for Linux?

    The thing about running with no WM though, is that you can't move or resize windows. Still fun to try, none the less.
    Code:
    while true; do echo -n "RiceMonster "; done
    Best thread ever

  9. #19
    Join Date
    Nov 2008
    Location
    Here, There, Everywhere
    Beans
    1,163
    Distro
    Xubuntu

    Re: What is the tiniest Window Manager in existence for Linux?

    Quote Originally Posted by RiceMonster View Post
    The thing about running with no WM though, is that you can't move or resize windows. Still fun to try, none the less.
    True, but this don't matter when you are playing a full-screen game, which is why hoppipolla wants a light WM.

  10. #20
    Join Date
    Oct 2009
    Location
    Perth, Australia
    Beans
    82
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: What is the tiniest Window Manager in existence for Linux?

    TinyWM i believe
    Asus P5Q Pro - C2Q 2.83 GHz - 4GB DDR2 RAM - Radeon HD 4850
    Dell Studio XPS 16 - Core i7 1.6GHz - 6GB DDR3 RAM - Radeon HD 4670
    GA-8I945P Pro - Pentium D 3 GHz - 2GB DDR2 RAM - GeForce 9400GT
    Acer Aspire One - Atom 1.6 GHz - 1GB DDR2 RAM - 950 GMA

Page 2 of 5 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •