rontarrant / gtkDcoding

Sample code from gtkDcoding.com, a tutorial blog for new GtkD programmers.
http://gtkdcoding.com
36 stars 5 forks source link

incorrect determination of the maximum window status #8

Open Yaisis opened 4 years ago

Yaisis commented 4 years ago

In the following example: window_001_13_alt_window_stats.d This code does not work correctly:

    if(isMaximized())
    {
        _isMaximized = true;
    }
    else
    {
        _isMaximized = false;
    }

Because the window status changes outside of the "onConfigureEvent" handler. And this handler is not always called when the window status changes.