Toggle fullscreen status of inspector window with F11 (#5867)

Moreover add two null pointer checks (thanks for review @Lawrence37).
This commit is contained in:
rfranke
2020-08-09 17:17:15 +02:00
parent 691523d8dd
commit 947f3dca00
2 changed files with 26 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ private:
bool active;
bool pinned;
bool dirty;
bool fullscreen; // window is shown in fullscreen mode
sigc::connection delayconn;
Glib::ustring next_image_path;
@@ -87,7 +88,7 @@ public:
/** @brief Show or hide window
* @param scaled fit image into window
*/
void showWindow(bool scaled);
void showWindow(bool scaled, bool fullscreen = true);
/** @brief Mouse movement to a new position
* @param pos Location of the mouse, in percentage (i.e. [0;1] range) relative to the full size image ; -1,-1 == out of the image