[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] [PATCH 1/6] Expose xrandr functions to find a screen by output or c
From: |
Mathieu OTHACEHE |
Subject: |
[RP] [PATCH 1/6] Expose xrandr functions to find a screen by output or crtc number |
Date: |
Fri, 25 Nov 2016 15:35:18 +0100 |
xrandr_screen_output and xrandr_screen_crtc can be useful outside of
xrandr.c
---
src/xrandr.c | 4 ++--
src/xrandr.h | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/xrandr.c b/src/xrandr.c
index f1f3ef5..d3dc933 100644
--- a/src/xrandr.c
+++ b/src/xrandr.c
@@ -82,7 +82,7 @@ xrandr_query_screen (int *screen_count)
return output_array;
}
-static rp_screen *
+rp_screen *
xrandr_screen_output (int rr_output)
{
rp_screen *cur;
@@ -96,7 +96,7 @@ xrandr_screen_output (int rr_output)
return NULL;
}
-static rp_screen *
+rp_screen *
xrandr_screen_crtc (int rr_crtc)
{
rp_screen *cur;
diff --git a/src/xrandr.h b/src/xrandr.h
index d765789..0ae51ea 100644
--- a/src/xrandr.h
+++ b/src/xrandr.h
@@ -26,6 +26,8 @@
void init_xrandr(void);
int *xrandr_query_screen(int *screen_count);
+rp_screen * xrandr_screen_output (int rr_output);
+rp_screen * xrandr_screen_crtc (int rr_crtc);
void xrandr_fill_screen(int rr_output, rp_screen *screen);
void xrandr_notify(XEvent *ev);
--
2.10.0
- [RP] [PATCH 0/6] Fix multiple monitors commands, Mathieu OTHACEHE, 2016/11/25
- [RP] [PATCH 1/6] Expose xrandr functions to find a screen by output or crtc number,
Mathieu OTHACEHE <=
- [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., Mathieu OTHACEHE, 2016/11/25
- Re: [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., Jeremie Courreges-Anglas, 2016/11/26
- Re: [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., Mathieu OTHACEHE, 2016/11/27
- Re: [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., Jeremie Courreges-Anglas, 2016/11/27
- Re: [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., Mathieu OTHACEHE, 2016/11/27
- Re: [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., Jeremie Courreges-Anglas, 2016/11/27
- Re: [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., Mathieu OTHACEHE, 2016/11/28
- Re: [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., |cos|, 2016/11/27
- Re: [RP] [PATCH 3/6] Disable sfdump if there is no xrandr support., Mathieu OTHACEHE, 2016/11/28
[RP] [PATCH 2/6] Use xrandr output identifiers in sselect., Mathieu OTHACEHE, 2016/11/25