summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2020-03-09 07:57:26 -0400
committerraveit65 <[email protected]>2020-04-02 16:18:29 +0200
commitd959a0e448c05f84cef2ff43ad94695fb2acbc1e (patch)
treec52275a53bbc58eaeb13f89ed67a9e8e4bb95db3 /src/core
parent8e2102b108aa18453439f12a8fc2fce1c6d94108 (diff)
downloadmarco-d959a0e448c05f84cef2ff43ad94695fb2acbc1e.tar.bz2
marco-d959a0e448c05f84cef2ff43ad94695fb2acbc1e.tar.xz
Remove unnecessary warnings about visible region
Also reformat recent code change to fix styling issues.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/frame.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/frame.c b/src/core/frame.c
index e28d669c..86b78f1f 100644
--- a/src/core/frame.c
+++ b/src/core/frame.c
@@ -407,12 +407,13 @@ meta_frame_sync_to_window (MetaFrame *frame,
cairo_region_t *
meta_frame_get_frame_bounds (MetaFrame *frame)
{
- if(frame->xwindow && frame->window !=NULL && frame->window->screen !=NULL && frame->window->screen->ui !=NULL) {
- return meta_ui_get_frame_bounds (frame->window->screen->ui,
- frame->xwindow,
- frame->rect.width,
- frame->rect.height);
- }
+ if (frame->xwindow && frame->window != NULL && frame->window->screen != NULL && frame->window->screen->ui != NULL)
+ {
+ return meta_ui_get_frame_bounds (frame->window->screen->ui,
+ frame->xwindow,
+ frame->rect.width,
+ frame->rect.height);
+ }
return NULL;
}