GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JDWindow: Fix window size saving issue on Wayland by ma8ma · Pull Request #1500 · JDimproved/JDim

Conversation

@ma8ma

@ma8ma ma8ma commented Jan 9, 2025

Copy link
Copy Markdown
Collaborator

ウインドウ最大化解除時、Waylandで最大化前の元のサイズに復元されない問題を修正しました。これにより、Wayland環境でもウインドウのサイズが正しく保存されるようになります。

この問題は、WaylandではGtk::Windowのon_window_state_event()とon_configure_event()の呼び出し順序がX11と異なるため、on_configure_event()呼び出し時点ではis_maximized_win()などの状態が最新ではないことに起因します。これを解決するため、WaylandではGdk::Window::get_state()を利用してウインドウ状態を判定するように変更しました。

さらに、READMEとマニュアルを更新し、この問題が修正済みであることを明記しました。

Fix an issue where the window size was not restored to its pre-maximized state when unmaximizing a window on Wayland. This ensures that window sizes are correctly saved and restored in Wayland environments.

The issue occurred because on_window_state_event() and on_configure_event() are called in reverse order on Wayland compared to X11. As a result, the state retrieved by is_maximized_win() and related methods was not updated when on_configure_event() was invoked. To resolve this, the implementation now uses Gdk::Window::get_state() to determine the latest window state on Wayland.

Additionally, the README and manual are updated to reflect that this issue has been fixed.

関連のpull request:
#1463

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ma8ma
JDWindow: Fix window size saving issue on Wayland
4bb6ac8
ウインドウ最大化解除時、Waylandで最大化前の元のサイズに復元されない
問題を修正しました。これにより、Wayland環境でもウインドウのサイズが
正しく保存されるようになります。

この問題は、Waylandでは`Gtk::Window`の`on_window_state_event()`と
`on_configure_event()`の呼び出し順序がX11と異なるため、
`on_configure_event()`呼び出し時点では`is_maximized_win()`などの状態が
最新ではないことに起因します。これを解決するため、Waylandでは
`Gdk::Window::get_state()`を利用してウインドウ状態を判定するように
変更しました。

さらに、READMEとマニュアルを更新し、この問題が修正済みであることを
明記しました。

Fix an issue where the window size was not restored to its
pre-maximized state when unmaximizing a window on Wayland. This
ensures that window sizes are correctly saved and restored in Wayland
environments.

The issue occurred because `on_window_state_event()` and
`on_configure_event()` are called in reverse order on Wayland compared
to X11. As a result, the state retrieved by `is_maximized_win()` and
related methods was not updated when `on_configure_event()` was
invoked. To resolve this, the implementation now uses
`Gdk::Window::get_state()` to determine the latest window state on
Wayland.

Additionally, the README and manual are updated to reflect that this
issue has been fixed.

関連のpull request:
#1463
@ma8ma ma8ma added bug バグの追跡 document 文書の変更 labels Jan 9, 2025
@ma8ma
ma8ma merged commit f888f11 into master Jan 9, 2025
@ma8ma
ma8ma deleted the jdwindow-fix-window-size-saving-issue-on-wayland branch January 9, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug バグの追跡 document 文書の変更

Projects

No open projects
State of JDim-v0.12.0+
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ma8ma
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.