Extension Preference not respecting window default size properties
Affected version
- Fedora 39
- Gnome45
- Test and Appears in both XOrg and Wayland
- Issue is related to extension
Bug summary
After logging in or restarting gnome-shell, when any extension preferences is opened for the first time , it does not respect the default window size that is applied by the below properties in may extension
window.set_default_size(600, 750);
or
window.default_width = 600;
window.default_height = 750;
It is only, when the extension preference is re-opened again, the preference window will open with correct window size as per the window.set_default_size.
Steps to reproduce
- Logout and Login(Wayland) or (Alt+F2) Xorg
- open preferences for any extension, example: JustPerfection
- Result => Preference window opens with incorrect width and height.
- Close preference window
- Open preferences again
- Result => Preference window opens with correct width and height as defines by
window.set_default_size(width, height);
What did you expect to happen
Extension Preference window to open with correct size as set by window.set_default_size(width, height);
Relevant logs, screenshots, screencasts etc.
Screencast provided. Note the window size, when opened the first time and the second time.
I have use extension named JustPerfection as an example and several other extension, just after a restart logging in gnome-shell Screencast-ExtPrefs-incorrect-window-size
maniacx@fedora:~$ journalctl -f -o cat /usr/bin/gjs
AdwViewSwitcher 0x55d6d5bf9b20 (viewswitcher) reported min height -6, but sizes must be >= 0
AdwViewSwitcher 0x55d6d7bdfa30 (viewswitcher) reported min height -6, but sizes must be >= 0
AdwViewSwitcher 0x55d6d8040fd0 (viewswitcher) reported min height -6, but sizes must be >= 0
The layout manager of type GtkBinLayout 0x55d6d8d070b0 does not create GtkLayoutChild instances
AdwToolbarView 0x55d6d8a99e30 exceeds AdwBreakpointBin width: requested 659 px, 640 px available
AdwViewSwitcher 0x55d6d9049c90 (viewswitcher) reported min height -6, but sizes must be >= 0
The layout manager of type GtkBinLayout 0x55d6d8bfc770 does not create GtkLayoutChild instances
AdwViewSwitcher 0x55d6d8f775d0 (viewswitcher) reported min height -6, but sizes must be >= 0
AdwViewSwitcher 0x55d6d88bb4a0 (viewswitcher) reported min height -6, but sizes must be >= 0
AdwViewSwitcher 0x55d6d74d3470 (viewswitcher) reported min height -6, but sizes must be >= 0
AdwViewSwitcher 0x55d6d600d9a0 (viewswitcher) reported min height -6, but sizes must be >= 0
AdwViewSwitcher 0x55d6d7642d00 (viewswitcher) reported min height -6, but sizes must be >= 0
AdwToolbarView 0x55d6d7718550 exceeds AdwBreakpointBin width: requested 668 px, 640 px available
AdwViewSwitcher 0x55d6d8596d50 (viewswitcher) reported min height -6, but sizes must be >= 0