Gtk Programming
I have created a window using gtk+ programming in Linux. But when I'm running the program the window is appearing any where of the screen i.e not a particular position of the screen. Is there any way or function so that window will always appear at the center of the screen ???
Please help me... |
Quote:
|
definitively, probably not.
it depends on the window manager. the window manager can put the window wherever the hell it wants. of course, I could be wrong. unless you draw the window yourself of course, but that's a horse of a different colour. |
Quote:
gtk+ set window position into your favorite WEB search engine (I tried in Yahoo). ... Better yet, try in Google gtk+ set window position stie:www.gtk.org . |
true but the window manager doesn't have to honour the request.
Code:
GTK Window Position Constants but I can force the position to anywhere via my sawfish matched windows. |
Isn't it better to let the WM decide where it should go?
|
well, I can see what the OP wants, and I have written an app that places
a window as I mentioned. but the WM doesn't have to honour it, I was just warning of the possibility. |
Quote:
|
Quote:
|
Do special dialog windows appear in the middle of the desktop automatically?
|
Quote:
But like others have said, the window manager can override that if it wants to. |
All times are GMT -5. The time now is 02:33 PM. |