diff options
author | Jürg Billeter <j@bitron.ch> | 2012-09-10 20:19:21 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-10-15 19:18:45 +0200 |
commit | 1a521e10c3ee3dea34e82bc708aaf5a2b75eca14 (patch) | |
tree | 5fb23da9f83614ff0f73ab3724a4cb77e0e5a6b6 /src/ui | |
parent | e22d941f06709aceae11358530c2dcb2183172a7 (diff) | |
download | mutter-1a521e10c3ee3dea34e82bc708aaf5a2b75eca14.tar.gz |
display: Only manage the default X screen
https://bugzilla.gnome.org/show_bug.cgi?id=648156
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui.c | 6 | ||||
-rw-r--r-- | src/ui/ui.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c index b0ca41d4f..e21c69cb7 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -82,6 +82,12 @@ meta_ui_get_display (void) return GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()); } +gint +meta_ui_get_screen_number (void) +{ + return gdk_screen_get_number (gdk_screen_get_default ()); +} + /* We do some of our event handling in frames.c, which expects * GDK events delivered by GTK+. However, since the transition to * client side windows, we can't let GDK see button events, since the diff --git a/src/ui/ui.h b/src/ui/ui.h index 3675b3a09..4a510b5c7 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -46,6 +46,8 @@ void meta_ui_init (void); Display* meta_ui_get_display (void); +gint meta_ui_get_screen_number (void); + void meta_ui_add_event_func (Display *xdisplay, MetaEventFunc func, gpointer data); |