aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-29 14:47:30 +0200
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-30 00:47:58 +0200
commit5a13cb0ed136906a4370235214601b0129548c49 (patch)
tree51dce6cdcb9bb1ffe27dcdc9a01ca9bda3a7c87a /sway/handlers.c
parent3b05f92f76c3bd9400320844e485eb06e94772cd (diff)
Implement borders
The borders are implemented as a surface/buffer attached to each view which is sent to and rendered by wlc in the view_pre_render callback. All the drawing logic is handled in sway/border.c and all the logic for calculating the geometry of the border/view is handled in `update_geometry` in sway/layout.c (same place as gaps are calculated).
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 47b649fd..fc473640 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -9,7 +9,7 @@
#include <ctype.h>
#include "handlers.h"
-#include "render.h"
+#include "border.h"
#include "log.h"
#include "layout.h"
#include "config.h"
@@ -349,15 +349,14 @@ static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geo
view->desired_width = geometry->size.w;
view->desired_height = geometry->size.h;
- if (view->is_floating) {
- view->width = view->desired_width;
- view->height = view->desired_height;
- view->x = geometry->origin.x;
- view->y = geometry->origin.y;
- arrange_windows(view->parent, -1, -1);
- }
+ /* if (view->is_floating) { */
+ /* view->width = view->desired_width; */
+ /* view->height = view->desired_height; */
+ /* view->x = geometry->origin.x; */
+ /* view->y = geometry->origin.y; */
+ /* /1* arrange_windows(view->parent, -1, -1); *1/ */
+ /* } */
}
- update_view_border(view);
}
static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit state, bool toggle) {