and PureBasic 6.30 Beta 7 x64
I updated my Linux OS from ElementaryOS 7.1 to 8.1, which jumps from Ubuntu 22 based to Ubuntu 24.04 based, and I have a PB window problem. Affects default and "gtk2" subsystem. "qt" OK.
Yes I am now using the "Ubuntu 24.04" PB suite.
If a window is opened with #PB_Window_Maximize, it does not start maximized.
It appears within the desktop, and it functions, until I focus another window (Alt+Tab, or mouse click) then it suddenly changes to maximized.
This affects the PB IDE window itself, the PB Help browser, and my own windows opened by OpenWindow() with #PB_Window_Maximize
Example
Code: Select all
If OpenWindow(0, 0, 0, 400, 100, "Timer Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_Maximize | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget)
ProgressBarGadget(0, 10, 10, 380, 20, 0, 100)
AddWindowTimer(0, 123, 250)
TextGadget(1, 10, 40, 380, 20, "Set focus to another window... this will become maximized")
Value = 0
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Timer And EventTimer() = 123
Value = (Value + 5) % 100
SetGadgetState(0, Value)
EndIf
Until Event = #PB_Event_CloseWindow
EndIf

