labwc/include
tokyo4j 12b6d05481 view: fix error messages on region or usable area changes
f58b532 implemented output-relative position saving/restoring on output
un-plugging/re-plugging. It worked as follows:

1. Store the output-relative view geometry in `view->last_placement`
  (if not set) before adding/removing an output from the layout.
2. After adding/removing an output, call `view_adjust_for_layout_change()`
  after the layout change to restore the output-relative view geometry
  based on `view->last_placement`.

However, it didn't consider `view_adjust_for_layout_change()` being
called from other places such as `regions_reconfigure()` and
`output_update_all_usable_areas()`, causing an error message "view has
no last placement info". This can happen when a panel is mapped or
unmapped, or on Reconfigure.

This commit fixes it by changing the life cycle of
`view->last_placement`. It used to be set only before output layout
changes and cleared on user-initiated moves/resizes, but now it is set
and updated on user-initiated moves/resizes. I think this is more
intuitive, too.
2026-02-04 19:14:51 +09:00
..
common string-helpers: update comments for str_equal() 2026-02-04 19:14:51 +09:00
config Avoid double use of struct workspace 2026-01-30 18:41:37 +01:00
foreign-toplevel foreign-toplevel: simplify and fully separate ext-foreign/wlr-foreign 2025-08-07 23:27:04 -04:00
img include: reduce unnecessary #includes 2025-09-07 19:34:30 +09:00
input cursor: generalize seat->pressed 2025-11-30 20:55:54 +09:00
menu Remove unused function menu_call_actions() 2025-09-26 10:41:21 -04:00
protocols Fix typos 2025-01-09 06:59:57 +00:00
scaled-buffer Remove unused function scaled_font_buffer_set_max_width() 2025-09-26 10:41:21 -04:00
action-prompt-codes.h labnag: s/LAB_EXIT_TIMEOUT/LAB_EXIT_CANCELLED/ 2025-10-13 19:03:43 +01:00
action.h action: fix UAF when using prompt during reconfigure 2025-09-26 21:25:34 +01:00
buffer.h buffer: add buffer_create_from_wlr_buffer() 2025-06-07 02:12:56 +09:00
cycle.h cycle: implement scrollable OSD 2025-12-31 22:46:53 +00:00
debug.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
decorations.h project wide: clean up event listeners on shutdown 2025-03-13 17:33:51 +09:00
desktop-entry.h Move "#if HAVE_LIBSFDO" inside desktop-entry.h 2025-01-25 07:27:21 +09:00
dnd.h chase (dnd): refactor to use wlroot's scene_drag_icon 2023-12-03 18:24:26 +00:00
edges.h common: flesh out enum lab_edge and prefer over wlr_edges/wlr_direction 2025-08-26 20:36:43 -04:00
idle.h idle_manager: remove unused parameter and field 2025-09-07 19:17:18 +09:00
labwc.h desktop: use for_each_view() in desktop_topmost_focusable_view() 2026-01-31 17:16:13 +01:00
layers.h tree-wide: use forward declarations for wlr types 2025-09-07 19:34:30 +09:00
magnifier.h magnifier: rename some functions 2025-02-23 14:17:31 +09:00
meson.build Make xwayland support optional 2020-12-30 10:29:21 +00:00
node.h node: update node_descriptor_create() comment 2025-12-07 14:55:32 +09:00
output-state.h output: remove ported wlr_output functions 2024-10-29 21:39:19 +00:00
output-virtual.h Add optional headless fallback output 2024-03-08 13:54:13 +01:00
output.h cycle: refactor to aggregate type definitions into cycle.h 2025-12-28 20:57:37 +00:00
overlay.h overlay: refactor 2025-08-31 13:24:51 +01:00
placement.h include: reduce unnecessary #includes 2025-09-07 19:34:30 +09:00
regions.h overlay: add snap-to-edge overlay (PR #1652) 2024-04-05 04:35:31 +02:00
resistance.h include: reduce unnecessary #includes 2025-09-07 19:34:30 +09:00
resize-indicator.h include: add config/types.h 2025-08-21 16:55:25 +09:00
resize-outlines.h Implement <resize><drawContents> 2024-06-15 21:17:01 +01:00
session-lock.h tree-wide: use forward declarations for wlr types 2025-09-07 19:34:30 +09:00
snap-constraints.h common: flesh out enum lab_edge and prefer over wlr_edges/wlr_direction 2025-08-26 20:36:43 -04:00
snap.h include: reduce unnecessary #includes 2025-09-07 19:34:30 +09:00
ssd-internal.h ssd: attach LAB_NODE_SSD_ROOT to ssd->tree 2025-09-08 15:46:36 +09:00
ssd.h include: reduce unnecessary #includes 2025-09-07 19:34:30 +09:00
theme.h theme: replace THEME_(IN)ACTIVE with SSD_(IN)ACTIVE 2025-10-14 07:48:27 +02:00
translate.h Add translate.h for HAVE_NLS includes/defines 2025-09-26 10:43:23 -04:00
view-impl-common.h view: deduplicate foreign-toplevel creation code 2025-11-27 01:26:55 -05:00
view.h view: fix error messages on region or usable area changes 2026-02-04 19:14:51 +09:00
window-rules.h tree-wide: use enum types/constants where appropriate 2025-08-28 01:33:23 +09:00
workspaces.h Avoid double use of struct workspace 2026-01-30 18:41:37 +01:00
xwayland.h xwayland: flush XCB connection to mitigate race between Raise and input 2025-12-02 19:50:03 +01:00