sysWindowResizeEvent called constantly?

Post Reply
Nyyrazzilyss
Posts: 334
Joined: Thu Mar 05, 2015 2:53 am

sysWindowResizeEvent called constantly?

Post by Nyyrazzilyss »

Any reason why this event would be called constantly if nothing else is being changed? The below is a picture with nothing held within the event except the echo.
Attachments
Untitled.png

Nyyrazzilyss
Posts: 334
Joined: Thu Mar 05, 2015 2:53 am

Re: sysWindowResizeEvent called constantly?

Post by Nyyrazzilyss »

I'm not sure if it's something I was supposed to have done initially, but I added the below fragment to deal with the script being called constantly.
Code: [show] | [select all] lua
function ResizeEventScript( event, x, y )
 if (NyyLIB.windowx == nil or NyyLIB.windowy == nil) or (NyyLIB.windowx ~= x or NyyLIB.windowy ~= y) then 
  NyyLIB.windowx = x
  NyyLIB.windowy = y

  -- echo("RESIZE EVENT: event="..event.." x="..x.." y="..y.."\n")
  -- the rest of the event

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: sysWindowResizeEvent called constantly?

Post by Vadi »

It seems to depend on the OS how often Qt calls it. Mudlet doesn't control this much.

Post Reply