summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/manage.c b/src/manage.c
index 7a9039b..2c0156e 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -53,6 +53,15 @@ grab_prefix_key (Window w)
#endif
}
+screen_info*
+current_screen ()
+{
+ if (rp_current_window)
+ return rp_current_window->scr;
+ else
+ return &screens[0];
+}
+
void
update_normal_hints (rp_window *win)
{