[mutter] screen: Remove meta_screen_get_current_monitor_for_pos from public API
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] screen: Remove meta_screen_get_current_monitor_for_pos from public API
- Date: Wed, 25 Jan 2017 08:31:18 +0000 (UTC)
commit 9337d18468c38b26edbd74a675b17e770dd67992
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Nov 30 10:25:14 2016 +0800
screen: Remove meta_screen_get_current_monitor_for_pos from public API
It was not used by anyone, and had strange caching behaviour to begin
with.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
src/core/screen.c | 18 ++++++------------
src/meta/screen.h | 3 ---
2 files changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/src/core/screen.c b/src/core/screen.c
index 172ad39..341a8b9 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -1574,6 +1574,11 @@ meta_screen_get_current_logical_monitor (MetaScreen *screen)
return &logical_monitors[monitor_index];
}
+static int
+meta_screen_get_current_monitor_for_pos (MetaScreen *screen,
+ int x,
+ int y);
+
MetaLogicalMonitor *
meta_screen_get_current_logical_monitor_for_pos (MetaScreen *screen,
int x,
@@ -1594,18 +1599,7 @@ meta_screen_get_current_logical_monitor_for_pos (MetaScreen *screen,
return &logical_monitors[monitor_index];
}
-
-/**
- * meta_screen_get_current_monitor_for_pos:
- * @screen: a #MetaScreen
- * @x: The x coordinate
- * @y: The y coordinate
- *
- * Gets the index of the monitor that contains the passed coordinates.
- *
- * Return value: a monitor index
- */
-int
+static int
meta_screen_get_current_monitor_for_pos (MetaScreen *screen,
int x,
int y)
diff --git a/src/meta/screen.h b/src/meta/screen.h
index a1835cd..13c9251 100644
--- a/src/meta/screen.h
+++ b/src/meta/screen.h
@@ -84,9 +84,6 @@ typedef enum
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]