Fix popup position issue on Wayland and improve natural sizing #1472
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.
Fix popup position issue on Wayland and improve natural sizing
Wayland環境で多段ポップアップがマウスポインターから離れて表示される問題を修正します。
PopupWinコンストラクタの中ではGdk::Windowが関連付けされないため、realizeシグナルでウィンドウ操作を行います。また、ポップアップ表示に
gdk_window_move_to_rect()を使用し、表示サイズを自動調整するためSKELETON::Viewに自然サイズ用メソッドを追加しました。X11では従来の方法を維持し、適切な表示動作を実現します。This commit fixes the issue where multi-level popups appear away from the mouse pointer on Wayland.
It adjusts
PopupWinbehavior by handling window operations on therealizesignal, asGdk::Windowis not linked in the constructor. Popups now usegdk_window_move_to_rect()for automatic resizing, andSKELETON::Viewhas added methods for natural sizing. On X11, the previous method remains in use, ensuring correct display behavior.Adjust error message display size automatically in image popup
エラーメッセージを表示する際に固定サイズ(200x50)で表示される問題を修正します。
Gtk::Labelウィジェットから取得した自然なサイズ(natural size)を使用して、ビューの表示領域を適切なサイズに自動調整します。adjust_client_size()メソッドを追加して自然なサイズを取得Fix the issue where error messages are displayed with fixed size (200x50). Use the natural size obtained from Gtk::Label widget to automatically adjust the view area to an appropriate size.
update_client_size()method to get natural sizeCloses #1470