macos: add clamp helper to keep rectangle in workarea
authorChristian Hergert <christian@hergert.me>
Wed, 2 Mar 2022 08:34:27 +0000 (00:34 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:25:09 +0000 (12:25 -0700)
commit42f9ea07e241e69682c5a5c7334b482775e15377
treeecf5326ccea5e83029c8ced63e104a92b2a36008
parent9b28153571d47b77c5082ece438db52bcab6e409
macos: add clamp helper to keep rectangle in workarea

This helper is useful to ensure we are consistent with how we keep a
window clamped to the workarea of a monitor when placing windows on
screen. (This does not affect snap-to-edges).
gdk/macos/gdkmacosdisplay-wm.c
gdk/macos/gdkmacosmonitor-private.h
gdk/macos/gdkmacosmonitor.c