PB 6.30 b4 - ResizeWindow() not work

Post bugreports for the Linux version here
User_Russian
Addict
Addict
Posts: 1600
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

PB 6.30 b4 - ResizeWindow() not work

Post by User_Russian »

In Raspberry Pi OS (Kernel 6.12, Debian 12) when using qt subsystems, not work function ResizeWindow(). There is no problem with gtk subsystems. There is also no this problem with the qt subsystem in LInux Mint for PC.

Code: Select all

Procedure Click()
  ResizeWindow(0, 100, 100, #PB_Ignore, #PB_Ignore)
EndProcedure

If OpenWindow(0, 0, 0, 222, 200, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ButtonGadget(0, 10, 10, 200, 20, "Standard Button")
  BindGadgetEvent(0, @Click())
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
The window is always centered on the screen even if there is no flag #PB_Window_ScreenCentered.
Fred
Administrator
Administrator
Posts: 18372
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.30 b4 - ResizeWindow() not work

Post by Fred »

I don't think it's related to PB, but how wayland is working. Unless GTK, QT uses wayland by default on Pi, so the rules apply to it. More info here:

viewtopic.php?p=646377#p646377
Post Reply