Cannot undo Fullscreen CTRL+F

Posts that are done/fixed/closed or aged! for this section are placed in here to keep the forum in shape & more viewable!
User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9058
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Cannot undo Fullscreen CTRL+F

Unread post by Phoenix » 05 Aug 2012, 12:02

Cannot undo Fullscreen CTRL+F with same keypresses (but can be undone with F9, F10 or F11),

ecc.php code, around line 2610:

Code: Select all

		// CTRL+F, Toggles Fullscreen mode
		if ($event->keyval == '102' && $event->state == '4') {
			if($this->wdo_main->window->get_state() != 16) $this->wdo_main->fullscreen();
			else $this->wdo_main->unfullscreen();
			return true;
		}
Seems this could be a problem with the window state...anyone else has this problem too?
I assume this problem was always there but has never been adressed, so i will attempt to fix it!
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9058
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Cannot undo Fullscreen CTRL+F

Unread post by Phoenix » 05 Aug 2012, 12:24

I found out thast this is only the case when ECC is already in MAX WINDOW state
The window cannot restore to the former position, curious that F9, F10 or F11 can (un)do this, i will investigate... :detective:
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9058
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Cannot undo Fullscreen CTRL+F

Unread post by Phoenix » 05 Aug 2012, 12:58

Fixed it!, i made this workaround, also the F9, F10 and F11 will NOT undo the fullscreen anymore when in this state! :swing:

Code: Select all

		// CTRL+F, Toggles Fullscreen mode
		if ($event->keyval == '102' && $event->state == '4') {
			if($this->wdo_main->window->get_state() != 16) {
				$this->wdo_main->unmaximize();
				$this->wdo_main->fullscreen();
			} else {
				$this->wdo_main->unfullscreen();
				$this->wdo_main->maximize();
			}
			return true;
		}
This fix will be included in the next update!
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

Locked

Who is online

Users browsing this forum: No registered users and 2 guests