summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@ftfl.ca>2016-12-11 19:03:29 -0400
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-12-12 18:44:19 +0100
commit5318f014451620f32a264d01f620562e973f3a64 (patch)
tree60ca7a6d55d31a4c5d6d64a97c25a282fcf3838d /src/frame.h
parent31d4ca8f900d0d8db2a3ac6123c3c445cfa6346a (diff)
downloadratpoison-5318f014451620f32a264d01f620562e973f3a64.zip
Update screen-aware focus* commands after changes to support XRandR
This is an update to Pedro Silva's patch, so that it applies against the xrandr branch. That patch introduced four new functions, frame_*_abs, which report a frame's left, right, top, and bottom coordinates offset by it's screen arrangement. This allows the use of the focus* commands as additional screen navigation tools, and has the added benefit of making the find_frame_* functions clearer.
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index 611ecc0..f78f86c 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -35,6 +35,10 @@ int frame_bottom (rp_frame *frame);
int frame_right (rp_frame *frame);
int frame_top (rp_frame *frame);
int frame_left (rp_frame *frame);
+int frame_bottom_abs (rp_frame *frame);
+int frame_right_abs (rp_frame *frame);
+int frame_top_abs (rp_frame *frame);
+int frame_left_abs (rp_frame *frame);
rp_frame *frame_new (rp_screen *s);
void frame_free (rp_screen *s, rp_frame *f);