Re: Draw window where mouse pointer is
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: César Leonardo Blum Silveira <cesarbs gmail com>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Draw window where mouse pointer is
- Date: Sun, 10 Apr 2005 09:17:35 +0200
On Sat, Apr 09, 2005 at 09:18:37PM -0300, César Leonardo Blum Silveira wrote:
How can I Make my app start with it's top left corner right where the
mouse pointer is pointing at?
root = gdk_screen_get_root_window(gdk_screen_get_default());
gdk_window_get_pointer(root, &x, &y, &modif);
Then the ugly part starts, you can use gtk_window_move(),
though that means relying on window manager.
Yeti
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]