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



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 of diyzfferent sizes, when you do more harm than good
with this approach.

Best,
Gergely
On Dec 29, 2015 11:26 PM, "Rick Berger" <rckbrgr gmail com> 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 and dimensions; then un-maximize its window. I believe
these can be done with GDK.

Is there better way to do this?

Rick
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]