Mitigated GTK fullscreen bug on Windows
see issue 82
This commit is contained in:
parent
08a7886e27
commit
50aa487f63
@ -38,6 +38,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
|
||||
epih->pending = 0;
|
||||
|
||||
processingStartedTime = 0;
|
||||
firstProcessingDone = false;
|
||||
|
||||
// construct toolpanelcoordinator
|
||||
tpc = new ToolPanelCoordinator ();
|
||||
@ -609,6 +610,11 @@ void EditorPanel::refreshProcessingState (bool inProcessingP) {
|
||||
// Set progress bar "done"
|
||||
s->str = "PROGRESSBAR_READY";
|
||||
s->val = 1.0;
|
||||
|
||||
#ifdef WIN32
|
||||
if (!firstProcessingDone && (RTWindow*)parent->getIsFullscreen()) { parent->fullscreen(); }
|
||||
#endif
|
||||
firstProcessingDone = true;
|
||||
}
|
||||
|
||||
isProcessing=inProcessingP;
|
||||
|
@ -94,6 +94,7 @@ class EditorPanel : public Gtk::VBox,
|
||||
BatchToolPanelCoordinator* btpCoordinator;
|
||||
FilePanel* fPanel;
|
||||
|
||||
bool firstProcessingDone;
|
||||
|
||||
Thumbnail* openThm; // may get invalid on external delete event
|
||||
Glib::ustring fname; // must be safed seperately
|
||||
|
@ -77,6 +77,8 @@ class RTWindow : public Gtk::Window, public rtengine::ProgressListener{
|
||||
void SetMainCurrent();
|
||||
void MoveFileBrowserToEditor();
|
||||
void MoveFileBrowserToMain();
|
||||
|
||||
bool getIsFullscreen() { return is_fullscreen; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user