Hi Hamish,

 

SM_CXSCREEN and SM_CYSCREEN are constants, defined as 0 respective 1.

 

So basically your code is

 

> if ( !( window.right >= 0 && window.bottom >= 1 ) )

> do_show_systray();

 

And this is not correct. Those values are just flags to use in the GetSystemMetrics function.

Did you check that the patch you sent in actually fixes the issue? Or did you only test with a previous version of your patch? Because I don't see how this would help.

 

Regards,

Fabian Maurer