--Original Message Text---
From: dd jj
Date: Thu, 14 Aug 2003 16:59:21 -0700 (PDT)

Hello thank you for helping, honestly I am brand new for Xlib programming, I checked my program, still can't figure out the problem: If I create a window my self, then use xwinfo to get the window Id as one parameter of XMoveResizeWindow, it works, but when I change the window id to be another application's id, such as Xclock, it just can't work, here's my codes:

#include .....
...
main()
{ Window win = 0x1e00001; //window's id got from xwininfo
Display *dsp = XOpenDisplay(NULL);
XMoveResizeWindow(dpy, win, 0, 0, 100, 500); //resizing and moving window
XFlush(dsp);
}

If I set win to be a window id of my own application, it works,
why it just doesn't work for other application like Xclock?


The probable answer was posted earlier today. I presume you are running with a window manager. If so, that window manager can set a flag (called SubstructureRedirectMask) on that window so that all attempts to move, resize, raise, or lower the window get redirected to the window manager, who then has the final right to decide what is actually done to the window.

Why do you want to do this?
--
- Tim Roberts, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.

Reply via email to