[metacity] window: don't manage InputOnly windows
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window: don't manage InputOnly windows
- Date: Tue, 17 Oct 2017 12:47:35 +0000 (UTC)
commit 3e0617cf3bbcda64cf1868f6a50d4303a8091caa
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Oct 17 15:45:15 2017 +0300
window: don't manage InputOnly windows
src/core/window.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 3c5b2c2..277613f 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -290,6 +290,8 @@ meta_window_new (MetaDisplay *display,
gulong event_mask;
MetaMoveResizeFlags flags;
+ meta_verbose ("Attempting to manage 0x%lx\n", xwindow);
+
meta_error_trap_push (display); /* Push a trap over all of window
* creation, to reduce XSync() calls
*/
@@ -301,9 +303,19 @@ meta_window_new (MetaDisplay *display,
return NULL;
}
- g_assert (display->screen->xroot == attrs.root);
+ if (attrs.root != display->screen->xroot)
+ {
+ meta_verbose ("Not on our screen\n");
+ meta_error_trap_pop (display);
+ return NULL;
+ }
- meta_verbose ("Attempting to manage 0x%lx\n", xwindow);
+ if (attrs.class == InputOnly)
+ {
+ meta_verbose ("Not managing InputOnly windows\n");
+ meta_error_trap_pop (display);
+ return NULL;
+ }
if (is_our_xwindow (display, xwindow, &attrs))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]