[metacity] xrender: fix window resizing
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] xrender: fix window resizing
- Date: Sat, 18 Mar 2017 12:14:40 +0000 (UTC)
commit 6f559517596aa87236140c9669f1ec43d94484f9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 18 12:27:30 2017 +0200
xrender: fix window resizing
src/compositor/meta-compositor-xrender.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 8c80e5b..b7fb9e9 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -734,9 +734,16 @@ find_comp_window_by_xwindow (MetaCompositorXRender *xrender,
frame = meta_window_get_frame (cw->window);
- if ((frame && meta_frame_get_xwindow (frame) == xwindow) ||
- meta_window_get_xwindow (cw->window) == xwindow)
- return cw;
+ if (frame)
+ {
+ if (meta_frame_get_xwindow (frame) == xwindow)
+ return cw;
+ }
+ else
+ {
+ if (meta_window_get_xwindow (cw->window) == xwindow)
+ return cw;
+ }
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]