core: Return -1 if meta_window_get_monitor is called on an unmanaged window
authorSam Spilsbury <sam@endlessm.com>
Tue, 10 Oct 2017 16:39:40 +0000 (11:39 -0500)
committerMarco Trevisan (Treviño) <marco@ubuntu.com>
Thu, 19 Jul 2018 13:59:38 +0000 (14:59 +0100)
commite138356ada0f083d32e89ccbf8f9ece487d9da2f
tree6733e3922c98f1abf239430eb69ab316c8f83eb8
parent496a04815d85aab57f07bf4bacacf1220cf5a240
core: Return -1 if meta_window_get_monitor is called on an unmanaged window

As opposed to crashing. In this case, letting the caller deal with
it is the best policy, since this is public API.

Fixes #78834

Forwarded: yes
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=788834
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/bionic/+source/gnome-shell/+bug/1724439

Gbp-Pq: Name core-Return-1-if-meta_window_get_monitor-is-called-on-an-.patch
src/core/window.c