Forum > Unix

How to minimize a X11 window

(1/1)

Key-Real:
I have a main loop like:

var
     e:TxEVENT;

...

  while XPending(gfxDisplay)<>0 do begin
              XNextEvent(gfxDisplay,@e);

              if (e._type=keypress) or (e._type=keyrelease) then break;
  end;




how to minimize a X11 window?

MarkMLl:
Since this is normally something done by the window manager rather than by a program itself, I suspect that you're going to need to invoke wmctrl. You might find that you can use an API instead, but it would be functionally equivalent.

Working out the API will almost certainly be a pain, but it would be a better choice since you can't rely on wmctrl being universally installed... I had to investigate this stuff a few months ago since I needed a list of windows that looked like unrequited dialog(ue)s for monitoring purposes.

MarkMLl

Navigation

[0] Message Index

Go to full version