swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 2fe9759434b3ba70ddc6011371dc04b589469aea
parent cf931d21b00d2fe8a1c1de3a8a12f4d0d2a13e65
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 22 Nov 2013 17:52:24 -0800

Add initial external screen interface

Diffstat:
Mlibswc/swc.h | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/libswc/swc.h b/libswc/swc.h @@ -70,6 +70,24 @@ void swc_window_set_border(struct swc_window * window, uint32_t color, uint32_t width); /* }}} */ +/* Screens {{{ */ +enum +{ + SWC_SCREEN_GEOMETRY_CHANGED +}; + +struct swc_screen +{ + struct wl_signal event_signal; + + /* The total area of the screen */ + struct swc_rectangle total_geometry; + + /* The area of the screen available for placing windows */ + struct swc_rectangle usable_geometry; +}; +/* }}} */ + /* Bindings {{{ */ #define SWC_MOD_CTRL (1 << 0) #define SWC_MOD_ALT (1 << 1) @@ -103,6 +121,7 @@ struct swc_event struct swc_manager { void (* new_window)(struct swc_window * window); + void (* new_screen)(struct swc_screen * screen); }; bool swc_initialize(struct wl_display * display,