On Sat, 2002-01-19 at 23:56, Jyothi wrote:
> Hi,
>
> Having some problems with Xsi.c and Xsi.h. There is some problem in activating
> the window.
> The RaiseWindow is not working. I mean the Window properties (
> XGetWindowProperties ) is failing ..
What windowmanager are you using? Try using the following raise_window()
instead of the one in xsi.c:
//
// bring a window to the foreground
//
void raise_window(Display *display, Window w)
{
int iState;
iState = wm_state(display, w);
if (iState == IconicState)
XMapRaised (display, w);
else
XRaiseWindow (display, w);
}
I found that matchbox (as it isn't complete) wasn't returning either
NormalState or IconicState, and so the 'if' in the standard
raise_window() wasn't any use[1]. Of course, mallum will (I assume) fix
this eventually. Note that XMapRaised() would actually do the same in
matchbox anyway, but this *should* still work in 99% of WMs.
[1] As it ignored any other possibilities.
> Can anybody help me with some Alternative for this. WM_NAME is not being set.
> May be some wmx issue. But can I ignore this WM_NAME issue and make Xsi.c work
> entirely based on WM_CLASS ??
Don't ask me!
Though I think I know what you're getting at - you want to be able to
detect windows via the class and not the window title? That'd be nice,
for sure. I'd probably rather just have a regexp search for the name.
> Thanks in Advance,
> Jyothi.
HTH;
mibus
-- Robert Mibus <mibus@bigpond.com>Received on Sun Jan 20 23:14:41 2002
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:22 EDT