[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: api for programmatically getting a list of all windows
From: |
Dan Hitt |
Subject: |
Re: api for programmatically getting a list of all windows |
Date: |
Tue, 18 Sep 2012 21:40:10 -0700 |
Thanks Matt and Ivan for your suggestions, warnings, and ideas.
Matt --- in answer to your question about xwininfo --- what i want to do
is form a model of what is on screen. So skipping off-screen and unmapped
windows is exactly right. The reason for not parsing xwininfo is i want
to form this model each time a new window is opened (because my ultimate
goal is to place newly created windows where they will not overlap existing
windows, if possible, and failing that, will not overlap existing app windows
[roughly speaking---the exact heuristic would be more complicated]). So
i don't feel comfortable doing a long parsing exercise each time a window
gets opened. (Of course i am aware that "premature optimization is
the root of all evil",
so maybe i'm just being evil here.)
Ivan --- regarding stepping through this with gdb --- that is something i
should do. I used to do it in the old days and i probably should learn how
to do it with gnustep. However, as far as stepping through XGServerWindow.m
goes, that's probably not very easily possible for me, as i am using a
ubuntu package (12.04). I want to treat gnustep on ubuntu as a black box,
because ultimately i can hardly expect anybody to modify their installation
for my benefit.
Regarding changing the number of externally open windows --- i did try this,
and it made no difference. (I opened terminal windows and closed firefox
windows [not at the same time!].)
Thanks again!
dan
- api for programmatically getting a list of all windows, Dan Hitt, 2012/09/17
- Re: api for programmatically getting a list of all windows, A. Arias, 2012/09/17
- Re: api for programmatically getting a list of all windows, Dan Hitt, 2012/09/18
- Re: api for programmatically getting a list of all windows, Riccardo Mottola, 2012/09/18
- Re: api for programmatically getting a list of all windows, Dan Hitt, 2012/09/18
- Re: api for programmatically getting a list of all windows, Matt Rice, 2012/09/18
- Re: api for programmatically getting a list of all windows, Ivan Vučica, 2012/09/18
- Re: api for programmatically getting a list of all windows,
Dan Hitt <=
- Re: api for programmatically getting a list of all windows, Fred Kiefer, 2012/09/23
- Re: api for programmatically getting a list of all windows, Ivan Vučica, 2012/09/23
- Re: api for programmatically getting a list of all windows, Dr. H. Nikolaus Schaller, 2012/09/18