mutter/src/core
Jonas Ådahl 13f35ab064 window: Initialize saved_rect_fullscreen too
We save the window rect before going fullscreen to a dedicated variable,
so we can go back to the correct dimension. We also have a dedicated
variable for returning from other window states, e.g. maximized, and
this one we initialized when creating the MetaWindow. This meant that we
could always rely on this being up to date on X11 windows that were
mapped maximized or fullscreen.

What the commit that introduced the saved rect dedicated for going
unfullscreen missed was to initialize the new saved rectangle too when
creating the MetaWindow. This resulted in windows mapped as fullscreen
often ending up misbehaving when unfullscreening, as mutter would tell
them to unfullscreen to 0x0.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1786
Fixes: a51ad8f932
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2210>
2022-01-07 16:18:51 +00:00
..
bell.c *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
bell.h frame: Remove flashing support 2019-03-12 00:27:07 +00:00
boxes-private.h boxes: Add function to check if rectangle is adjacent to region 2021-08-04 14:02:16 +00:00
boxes.c boxes: Add function to check if rectangle is adjacent to region 2021-08-04 14:02:16 +00:00
constraints.c constraints: Use "orig" rectangle for interactive resize 2020-10-19 11:16:12 +02:00
constraints.h window: Implement asynchronous popup moving 2020-02-29 21:01:50 +00:00
delete.c core: Change behavior of "application is alive" checks 2021-12-07 17:15:21 +00:00
display-private.h display: Keep pointer to the context 2021-07-15 11:34:37 +02:00
display.c cursor-sprite: Register all cursor sprites with the cursor tracker 2021-12-22 16:22:08 +00:00
edge-resistance.c core: Drop code to do edge resistance on timeouts 2021-10-25 15:45:35 +02:00
edge-resistance.h core: Drop code to do edge resistance on timeouts 2021-10-25 15:45:35 +02:00
events.c events: Bypass windows with modal transients 2021-12-14 18:23:23 +01:00
events.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
frame.c Make meta_* logging utilities not require line break 2020-10-08 16:38:41 +02:00
frame.h frame: Pass the frame area for get_mask() 2020-01-29 10:44:50 +00:00
keybindings-private.h display: Expose window_grab_modifiers 2021-02-04 19:26:18 +00:00
keybindings.c core: Drop code to do edge resistance on timeouts 2021-10-25 15:45:35 +02:00
meta-accel-parse.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-accel-parse.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-anonymous-file.c Add read-only anonymous file abstraction MetaAnonymousFile 2020-04-21 17:52:08 +02:00
meta-anonymous-file.h Add read-only anonymous file abstraction MetaAnonymousFile 2020-04-21 17:52:08 +02:00
meta-border.c MetaBorder: Use float constants and functions instead of double variants 2016-02-16 19:02:48 +08:00
meta-border.h Move out generic math parts out of the native barrier implementation 2016-02-16 19:02:48 +08:00
meta-clipboard-manager.c core: Free clipboard selection source on shutdown 2020-06-08 12:11:11 +00:00
meta-clipboard-manager.h core: Add clipboard manager 2019-05-02 16:22:45 +02:00
meta-close-dialog-default-private.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-close-dialog-default.c core/close-dialog: Don't pass DISPLAY 2021-11-24 15:20:59 +01:00
meta-close-dialog.c Use a consistent style for enum braces 2019-02-28 09:31:01 +01:00
meta-context-main.c context: Add (hidden) --unsafe-mode option 2021-09-02 16:58:46 +00:00
meta-context-main.h Introduce MetaContextMain 2021-07-15 11:25:21 +02:00
meta-context-private.h context: Add :unsafe-mode property 2021-09-02 16:58:46 +00:00
meta-context.c context: Add some missing introspection data 2021-09-16 07:23:24 +00:00
meta-fraction.c Add MetaFraction for dealing with fractions 2017-08-29 14:39:04 +08:00
meta-fraction.h Add MetaFraction for dealing with fractions 2017-08-29 14:39:04 +08:00
meta-gesture-tracker-private.h display: Move finishing of touch sequence to the backend 2019-10-28 18:40:43 +00:00
meta-gesture-tracker.c core: Drop repeated early return condition in function 2021-10-24 19:16:42 +02:00
meta-inhibit-shortcuts-dialog-default-private.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-inhibit-shortcuts-dialog-default.c Use a consistent style for enum braces 2019-02-28 09:31:01 +01:00
meta-inhibit-shortcuts-dialog.c core: add MetaInhibitShortcutsDialog 2017-08-02 11:58:55 +02:00
meta-launch-context.c core: Use DISPLAY envvar to forward in the launch context 2020-02-29 20:41:26 +00:00
meta-pad-action-mapper.c core: Be more careful around n_modes signedness 2021-07-07 18:37:54 +02:00
meta-pad-action-mapper.h backends: Split pad action mapping to a separate object 2020-11-27 15:14:33 +00:00
meta-private-enums.h main: Move MetaX11DisplayPolicy to a new meta-private-enums.h 2021-07-15 11:34:36 +02:00
meta-selection-private.h core: Add private function to get the current selection owner 2020-04-09 21:30:05 +00:00
meta-selection-source-memory.c core: Fix task leak in meta_selection_source_memory_read_async 2020-02-01 14:02:19 +00:00
meta-selection-source-remote.c remote-desktop/session: Add support for SelectionTransfer/Write 2021-02-05 16:44:27 +00:00
meta-selection-source-remote.h remote-desktop/session: Add support for SelectionTransfer/Write 2021-02-05 16:44:27 +00:00
meta-selection-source.c Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-selection.c core/selection: Cancel selection transfer requests after a timeout 2021-07-28 15:26:04 +00:00
meta-sound-player.c cleanup: remove controversial naming 2020-08-04 10:04:16 +02:00
meta-workspace-manager-private.h Move workspace related code from MetaDisplay to MetaWorkspaceManager 2018-07-06 19:47:17 +02:00
meta-workspace-manager.c util: Remove push/pop no msg prefix logging 2021-11-21 20:53:33 +00:00
mutter.c mutter: Add missing newline in error messages 2021-12-03 15:47:12 +01:00
place.c Make meta_* logging utilities not require line break 2020-10-08 16:38:41 +02:00
place.h place: Make placement rule processing provide relative coordinates 2020-02-29 21:01:50 +00:00
prefs-private.h prefs: Make init function private 2021-05-17 16:08:42 +00:00
prefs.c prefs: Make init function private 2021-05-17 16:08:42 +00:00
restart-helper.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
restart.c restart: Request to hide the restart message if not accepted 2021-03-13 15:12:36 +00:00
stack-tracker.c util: Remove push/pop no msg prefix logging 2021-11-21 20:53:33 +00:00
stack-tracker.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
stack.c stack: Add prerequisites to some stack API 2021-12-01 15:39:34 +01:00
stack.h stack: Style and introspection doc fixes 2019-07-08 11:46:52 +02:00
startup-notification-private.h meta, startup-notification: Make type declarations public 2019-01-24 16:38:09 +00:00
startup-notification.c startup-notification: Fix source return value 2021-11-24 15:20:59 +01:00
util-private.h util: Export and annotate meta_get_clutter_debug_flags 2021-10-18 16:46:59 +00:00
util.c util: Remove unused logging functions 2021-11-21 20:53:33 +00:00
window-private.h wayland: Drop wl-shell protocol 2022-01-05 21:43:29 +00:00
window.c window: Initialize saved_rect_fullscreen too 2022-01-07 16:18:51 +00:00
workspace-private.h workspace: Add meta_workspace_get_default_focus_window() 2021-08-12 21:39:05 +05:00
workspace.c workspace: Downgrade abort() to a warning when getting index 2021-12-19 15:16:12 +00:00