Skip to content

[Linux] Verify: reports carried over from window_manager #79

Closed

Description

@lijy91

These were reported against window_manager 0.5.x, whose platform code is gone: window_manager 0.6.0 is rebuilt on nativeapi. Each item has been fixed, tested, or audited against nativeapi (see #100 and the closing comment below).

Activity

  1. added
    bug
    on Sep 21, 2026
  2. lijy91 commented on Nov 22, 2026

    @lijy91
    MemberAuthor

    All 9 carried-over Linux items have been addressed via #100 (8988ba0, merged as fce83bf), prior Linux windowing fixes, and audit against current nativeapi-core:

    Fixed in nativeapi-core

    Covered by existing Linux implementation & tests / audited

    • #167 (full screen doesn't work) — Window::SetFullScreen handles both X11 and pre-map Wayland (ApplyPendingFullscreen on map, saving/restoring pre-map size), covered by tests/window_startup_state_linux_test.cpp; WindowMovedEvent is deduplicated and not spuriously fired on Wayland (x=y=0).
    • #535 (fullscreen hide/show shifts window) — nativeapi Window::Hide() / Show() use gtk_widget_hide() / PresentWindow() directly without saving/re-applying gtk_window_get_position() → gtk_window_move() (which accumulated CSD/shadow offsets in window_manager 0.5.x), and window_shadow_linux.h suppresses shadow gutters in kFittedStates (covered by tests/window_shadow_remap_linux_test.cpp).
    • #411 (setSize has no effect) — Window::SetContentSize applies gtk_window_set_default_size, gdk_window_resize, and gtk_window_resize before mapping and updates default_size for non-resizable windows (covered by tests/window_resizable_linux_test.cpp and tests/window_shadow_remap_linux_test.cpp). Note: tiling compositors like Hyprland enforce tile sizes by compositor policy for non-floating windows.
    • #427 (onWindowResize endless loop) — on_configure_emission_hook in window_manager_linux.cpp strictly deduplicates by comparing (width, height) against g_window_geometry[widget], and RefreshGeometryHints / ApplyWindowControls only mutate hints/layout when values actually change.
    • #497 (window repositions on start) — Window::SetPosition uses gtk_window_move() (preserved across initial map on X11) and GetContentSize() returns requested_content_size_ pre-map so Center() positions before first map (paired with SetWillShowHook). On Wayland, global window placement is compositor-controlled by protocol.
    • #519 (black window in GTK_PLUG mode just from dependency) — Obsolete under nativeapi: window_manager 0.6+ no longer registers a Linux Flutter C++ plugin at startup, and cnativeapi performs no window mutations until explicitly invoked.
    • #561 (title bar glitches with min/max size or setResizable on KDE Plasma 6 Wayland / NVIDIA) — nativeapi replaces legacy gtk_window_set_geometry_hints with child-requisition MinimumSizeRequest, deferred idle RefreshGeometryHints, and size-preserving SetResizable (18d2a41, covered by tests/window_size_constraints_linux_test.cpp, tests/window_resizable_linux_test.cpp, and KWin 6 Wayland verification in tools/gui/window_minimum_restore_verification.md; NVIDIA-specific compositor glitches were not tested on NVIDIA hardware and remain upstream).

    10/10 CI runs are green on main (6b179a9). Closing this legacy tracking issue; if any item still reproduces with current nativeapi / window_manager 0.6+, please open a focused issue with environment details and a minimal reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions