Having trouble with GetWindowState and Maximize

Linux specific forum
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Having trouble with GetWindowState and Maximize

Post 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
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Having trouble with GetWindowState and Maximize

Post by coco2 »

The bug doesn't appear to be there now (Linux Mint 21.2)
Post Reply