summaryrefslogtreecommitdiffstats
path: root/source/view.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-03 19:23:09 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-03 19:23:09 +0100
commitf9fc01b176f177bc744aaba643c9a12d0b511e30 (patch)
tree130f5622f1c43028272414162160c13c2c6b00ae /source/view.c
parent7600668bffacb5844e9e6064cb7b75c9aa737230 (diff)
Add percentage option to border,padding
Diffstat (limited to 'source/view.c')
-rw-r--r--source/view.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/view.c b/source/view.c
index 855bbb48..4b46242e 100644
--- a/source/view.c
+++ b/source/view.c
@@ -124,6 +124,15 @@ struct
.repaint_source = 0,
};
+void rofi_view_get_current_monitor ( int *width, int *height)
+{
+ if (width ){
+ *width = CacheState.mon.w;
+ }
+ if (height){
+ *height = CacheState.mon.h;
+ }
+}
static char * get_matching_state ( void )
{
if ( config.case_sensitive ) {