Page 1 of 1

Having trouble with GetWindowState and Maximize

Posted: Sun Dec 02, 2018 1:23 am
by coco2
I'm opening a window as maximized and when I use GetWindowState() it's not registering that it's maximised. This happens the same if I'm in an application and switching between normal and maximised, it always shows normal. Am I doing something wrong? It works in Windows but not Linux.

Code: Select all

OpenWindow(0, 100, 100, 640, 480, "Test", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_Maximize )

If GetWindowState(0) = #PB_Window_Maximize
  Debug "Registers as maximised"
Else
  Debug "Does not register as maximised"
EndIf

Repeat
  Event = WaitWindowEvent(10)
  Select Event
    Case #PB_Event_CloseWindow
      Quit = 1
  EndSelect
Until Quit = 1

Re: Having trouble with GetWindowState and Maximize

Posted: Wed Dec 27, 2023 3:55 am
by coco2
The bug doesn't appear to be there now (Linux Mint 21.2)