diff options
author | Adel Gadllah <adel.gadllah@gmail.com> | 2013-06-23 21:16:52 +0200 |
---|---|---|
committer | Adel Gadllah <adel.gadllah@gmail.com> | 2013-06-23 21:24:41 +0200 |
commit | 7187206ef5cf11cfdc2bd4690c7c371623c8cc01 (patch) | |
tree | cd7ce0611a808f6fc1fe2a4dae431b90db66f917 /src/meta | |
parent | 96221e6c0400c97ce4de39148d7ea040e0af16bf (diff) | |
download | mutter-7187206ef5cf11cfdc2bd4690c7c371623c8cc01.tar.gz |
screen: Allow reusing the current position when quering the monitor
Add new api (meta_screen_get_current_monitor_for_pos and
meta_screen_get_current_monitor_info_for_pos) that allow querying the monitor
without a roundtrip by reusing the passed in cursor position.
Diffstat (limited to 'src/meta')
-rw-r--r-- | src/meta/screen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/meta/screen.h b/src/meta/screen.h index 8c120fa03..aec9afa47 100644 --- a/src/meta/screen.h +++ b/src/meta/screen.h @@ -78,6 +78,9 @@ MetaWorkspace * meta_screen_get_active_workspace (MetaScreen *screen); int meta_screen_get_n_monitors (MetaScreen *screen); int meta_screen_get_primary_monitor (MetaScreen *screen); int meta_screen_get_current_monitor (MetaScreen *screen); +int meta_screen_get_current_monitor_for_pos (MetaScreen *screen, + int x, + int y); void meta_screen_get_monitor_geometry (MetaScreen *screen, int monitor, MetaRectangle *geometry); |