Re: How does one get the screen coordinates of the workspace?

2015-12-29 Thread Jim Charlton
I use gtkmm and get screen size before opening the application window in order to make sure it fits on the display. the equivalent gtk/gdk calls (I think) use gtk_window_get_screen() to get the gdk window from the gtk window. Then from the gdk window I use gdk_window_get_height() to get

Re: How does one get the screen coordinates of the workspace?

2015-12-29 Thread Gergely Polonkai
Hello, this makes me wonder why you need these coordinates? If you want to set the window size to the maximum, then just maximize it. If you want to move it around automatically, like put it on the center of the screen, don't do that. There are situations, e.g. for users with multiple monitors

How does one get the screen coordinates of the workspace?

2015-12-29 Thread Rick Berger
I'm looking for to get the screen coordinates, height and width of the workspace on Ubuntu's desktop. The only way I see to doing this, is in starting the app: maximize its window; get the workspace info from its window's coordinates and dimensions; then un-maximize its window. I believe these

Re: How does one get the screen coordinates of the workspace?

2015-12-29 Thread Stefan Salewski
On Tue, 2015-12-29 at 17:26 -0500, Rick Berger wrote: > I'm looking for to get the screen coordinates, height and width of the > workspace on Ubuntu's desktop. The only way I see to doing this, is in > starting the app: maximize its window; get the workspace info from its > window's coordinates

Re: How does one get the screen coordinates of the workspace?

2015-12-29 Thread Rick Berger
Thanks for the suggestions, the GDK call that works follows, but I should of gave more background. My app is a suggester window which follows the cursor of different app, a text editor. So I need to know the workspace boundaries to figure out were I have space around the editor's cursor to