diff options
Diffstat (limited to 'src/core/frame.c')
-rw-r--r-- | src/core/frame.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/frame.c b/src/core/frame.c index c4be91a89..81e0e68bc 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -283,6 +283,18 @@ meta_frame_get_flags (MetaFrame *frame) if (frame->window->wm_state_above) flags |= META_FRAME_ABOVE; + if (frame->window->constrained_edges & META_DIRECTION_LEFT) + flags |= META_FRAME_CONSTRAINED_LEFT_EDGE; + + if (frame->window->constrained_edges & META_DIRECTION_RIGHT) + flags |= META_FRAME_CONSTRAINED_RIGHT_EDGE; + + if (frame->window->constrained_edges & META_DIRECTION_TOP) + flags |= META_FRAME_CONSTRAINED_TOP_EDGE; + + if (frame->window->constrained_edges & META_DIRECTION_BOTTOM) + flags |= META_FRAME_CONSTRAINED_BOTTOM_EDGE; + return flags; } |