Thread: Update Regions in Window Managers

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Newport, South Wales, UK

    Update Regions in Window Managers


    I'm having a go at making my own window manager (just a model for now, runs under Windows ) and I've got as far as drawing the "desktop" and some windows that change Z order when clicked if not on top, but at the moment I'm redrawing everything on a timer.

    What I'd like to do is have a similar painting system to Windows (and I assume, other window managers) whereby whenever you move a window, a rectangle or a list of rectangles is created that describe the region previously occupied by the window and from there determine which parts of which windows occupy the region, respecting Z order, before asking them to repaint their respective parts.

    Trouble is, I'm having problems picturing the algorithm.
    Does anyone know of some reference material for this concept?

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    I think what you describe is known as a clipping algorithm.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  3. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  5. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM