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)
committerSimon McVittie <smcv@debian.org>
Sun, 20 May 2018 14:21:35 +0000 (15:21 +0100)
commitb15bada4203569f02f39374d70ee278a4789a11c
treee4165f4dcbd7aac4de2418dcbce0bb5e7fc2bf7f
parent09b37738109d5d6bfddcae0b6aac0ae78bce31d6
core: Return -1 if meta_window_get_monitor is called on an unmanaged window

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

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

Fixes #78834

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