Update Regions in Window Managers

This is a discussion on Update Regions in Window Managers within the Tech Board forums, part of the Community Boards category; Hello, I'm having a go at making my own window manager (just a model for now, runs under Windows ) ...

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

    Update Regions in Window Managers

    Hello,

    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
    Posts
    2,544
    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, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21