Advertisement
chocolateimage

muffin_remove_constraints.patch

Dec 25th, 2023
1,111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.86 KB | Source Code | 0 0
  1. diff --git a/src/core/constraints.c b/src/core/constraints.c
  2. index 56238406..9d39772b 100644
  3. --- a/src/core/constraints.c
  4. +++ b/src/core/constraints.c
  5. @@ -602,6 +602,10 @@ static void
  6.  update_onscreen_requirements (MetaWindow     *window,
  7.                                ConstraintInfo *info)
  8.  {
  9. +  window->require_fully_onscreen = false;
  10. +  window->require_on_single_monitor = false;
  11. +  window->require_titlebar_visible = false;
  12. +  return;
  13.    gboolean old;
  14.  
  15.    /* We only apply the various onscreen requirements to normal windows */
  16. @@ -1444,6 +1448,7 @@ constrain_aspect_ratio (MetaWindow         *window,
  17.                          ConstraintPriority  priority,
  18.                          gboolean            check_only)
  19.  {
  20. +  return TRUE;
  21.    double minr, maxr;
  22.    gboolean constraints_are_inconsistent, constraint_already_satisfied;
  23.    int fudge, new_width, new_height;
  24. @@ -1654,6 +1659,7 @@ constrain_to_single_monitor (MetaWindow         *window,
  25.                               ConstraintPriority  priority,
  26.                               gboolean            check_only)
  27.  {
  28. +  return TRUE;
  29.    MetaBackend *backend = meta_get_backend ();
  30.    MetaMonitorManager *monitor_manager =
  31.      meta_backend_get_monitor_manager (backend);
  32. @@ -1719,6 +1725,7 @@ constrain_titlebar_visible (MetaWindow         *window,
  33.                              ConstraintPriority  priority,
  34.                              gboolean            check_only)
  35.  {
  36. +  return TRUE;
  37.    gboolean unconstrained_user_action;
  38.    gboolean retval;
  39.    int bottom_amount;
  40. @@ -1807,6 +1814,7 @@ constrain_partially_onscreen (MetaWindow         *window,
  41.                                ConstraintPriority  priority,
  42.                                gboolean            check_only)
  43.  {
  44. +  return TRUE;
  45.    gboolean retval;
  46.    int top_amount, bottom_amount;
  47.    int horiz_amount_offscreen, vert_amount_offscreen;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement