Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2024, 12:24 PM   #91
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Is there any size or scaling difference between the Sigil MainWindow when it has no menubar to the version you recover by minimizing and restoring it to bring the menubar back/ Perhaps a larger or smaller scaling? Or maybe an small positional offset?

It does sound as if anything that will cause the MainWindow to be redrawn will work to return the menu bar. So something is causing a refesh/update signal to get lost when the KVM switch is thrown.

By any chance is your linux box set to use a single top menubar (like the macOS does)? Some KDE and GNome desktops can be set that way.

As to why the menu bar goes away at all, probably has to do with detecting changes in how different OS's use different monitor resolutions/refresh rates on the exact same monitor when connected to the switch.

So you might try syncing the Linux driver resolution and refresh rate, and scaling to **exactly match*** those used by Windows and see if the issue goes away.

I have no idea how the Qt software or Windows monitors for changes in these settings *not* caused by manually setting those values in the control panel (ie how it detects the KVM switch was thrown)

The KVM switch must be responsible for telling the Monitor to autosync and then alerting the OS somehow.

Last edited by KevinH; 09-03-2024 at 12:30 PM.
KevinH is online now   Reply With Quote
Old 09-03-2024, 12:39 PM   #92
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Wow, the number of display issues with KVM switches is huge:

google: KVM switch issues

And I even found one that causes missing menus:

google: kvm switch missing menu

https://forum.blackmagicdesign.com/v...?f=21&t=166728

And from reading up on them it seems the KVM switch most often the culprit in how it emulates to the OS that the monitor is still connected.
KevinH is online now   Reply With Quote
Old 09-03-2024, 01:06 PM   #93
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 421
Karma: 145424
Join Date: Dec 2017
Device: Kobo
Little bug report:
The top-left window is gradually reduced at each open/close cycle (1 pixel).
This bug appeared when switching to the Qt theme.
Windows, version 2.3.0
Attached Thumbnails
Click image for larger version

Name:	2024-09-03.jpg
Views:	49
Size:	227.3 KB
ID:	210587  
un_pogaz is offline   Reply With Quote
Old 09-03-2024, 01:09 PM   #94
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,445
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The days of the simple rotary A - B VGA switch are long gone.
(there were 3 pins in the VGA connector, that the smarter switches maintained, even when switched away)

With Computers doing active Auto-detect (allows add or remover Keyboard or Mice or other USB devices), it detects the instant change.

As with anything AUTO, MURPHY still rules.

You should see what happens when you want to use your TV as an extra Monitor.
theducks is offline   Reply With Quote
Old 09-03-2024, 01:21 PM   #95
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by un_pogaz View Post
Little bug report:
The top-left window is gradually reduced at each open/close cycle (1 pixel).
This bug appeared when switching to the Qt theme.
Windows, version 2.3.0
From your Screenshot, it looks as if you have the Table of Contents on top of BookBrowser. And that the issue is that the Table Of Contents Window is shrinking?

Is that correct? How exactly are you "opening and closing" it? Is it with the View menu, or drag and drop or ...? What exactly do you mean by "switching to Qt theme"? Are you refering to dark mode theme?

The QDockwidgets do not remember their own sizes, their sizes are stored only when closing Sigil itself and restored on opening Sigil itself. Otherwize hiding and showing QDockwidget windows negotiates their own sizes.

Last edited by KevinH; 09-03-2024 at 02:12 PM.
KevinH is online now   Reply With Quote
Old 09-03-2024, 02:23 PM   #96
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by un_pogaz View Post
Little bug report:
The top-left window is gradually reduced at each open/close cycle (1 pixel).
This bug appeared when switching to the Qt theme.
Windows, version 2.3.0
Okay, I just tested this on macOS, and with the Table of Contents on top and BookBrowser open underneath both docked on the left (as your screencap shows), I am able to hide and view the Table of Contents repeatedly and nothing moves or shrinks. But this is with MacOS.
KevinH is online now   Reply With Quote
Old 09-03-2024, 02:47 PM   #97
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by un_pogaz View Post
Little bug report:
The top-left window is gradually reduced at each open/close cycle (1 pixel).
This bug appeared when switching to the Qt theme.
Windows, version 2.3.0
Never mind: Kevin already asked ... "what exactly do you mean by 'when switching to the Qt theme' "?

Until we find out exactly what steps are being taken, I can verify that on Windows (using either dark theme [or light theme]), the ToC widget (placed upper left, above Book Browser) is not shrinking for me when:

opening/closing Sigil
minimizing/restoring Sigil
opening/hiding ToC with View menu

Last edited by DiapDealer; 09-03-2024 at 03:05 PM.
DiapDealer is offline   Reply With Quote
Old 09-03-2024, 03:15 PM   #98
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
OK. The "one pixel" thing is not really accurate for me, but I can confirm that the ToC widget (when configured on top left above Book Browser) does continuously shrink when closing/reopening Sigil when Sigil IS MAXIMIZED. I don't often run programs maximized these days, so I didn't notice at first. It seems to only shrink so far and then stop (in my testing). But it's definitely not remembering its geometry when maximized and closing/opening sigil. The theme has no effect on this issue.

P.S. It could be Book Browser growing for all I know!

Last edited by DiapDealer; 09-03-2024 at 03:25 PM.
DiapDealer is offline   Reply With Quote
Old 09-03-2024, 03:42 PM   #99
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
In general: stacked (not tabbed) dockwidgets are not remembering their heights when Sigil is maximized on Windows (until some sort of minimal height is achieved on the topmost widget). I've not attempted more than two stacked (not tabbed) widgets at this point.

It looks like they've gained a lot of ground on the historical qt geometry issues when apps are maximized, but there are still a few minor things not quite there yet.

We're not going back to the mess of spaghetti code we used to deal with maximized geometry saves/restores pre-2.3!

Last edited by DiapDealer; 09-03-2024 at 03:48 PM.
DiapDealer is offline   Reply With Quote
Old 09-03-2024, 03:46 PM   #100
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
I just tried this on MacOS (using Maximized not Full Screen) with the Table of Contents on the top left above BookBrowser, and it behaves even worse than windows ... it forgets I even moved the Table Of Contents to the top left and returns it back to be tabbed with Preview.

This only happens if Sigil's MainWindow is Maximized. If it is even just one pixel smaller in dimension than Maximized, all works as expected.

So this is a Qt6 bug in saving or restoring state that happens only when Sigil is Maximized.

Not sure we can do anything about it but create a Qt bug report, which will be ignored most likely since it is something so minor.
KevinH is online now   Reply With Quote
Old 09-03-2024, 04:40 PM   #101
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Okay, at least on macOS there is a race between the restoreState (which happens on first show) and the restoreGeometry (which must happen first!) because the call to showMaximized or showFullScreen sometimes forced the MainWindow to be activated/shown before we even had a chance to read in the state to be restored.

I have just fixed this by moving the reading the state in earlier so it is ready to be restored before any race can happen.

This fixes the moved Table of Contents bug when Maximized on macOS.

I have high hopes this "fix" will also fix this off by 1 or more thing for Windows too.

Last edited by KevinH; 09-03-2024 at 04:53 PM.
KevinH is online now   Reply With Quote
Old 09-04-2024, 02:54 AM   #102
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 421
Karma: 145424
Join Date: Dec 2017
Device: Kobo
Okay, you found it, sorry for not being as clear as I thought.


About "switching to Qt theme":

In version 2.1.0 (and earlier), Sigil used Windows 10's native rendering system, which gave the UI a very square and flate appearance, since 2.2.0 Sigil use the Qt's integrated rendering system that was round and with relief. Image for exemple.
It was unspecified in the changelog and surprising, but unimportant.

So, the appearance of almost every element has changed (Tab, Text field, checkbox...) in some subtle way. I didn't notice the shrinking bug until just now, and given the significant change in the "switching to Qt theme" occured on 2.2.0, I assumed that this was the cause and that I hadn't noticed the problem until later.
...
And after testing, no, my bad again. The shrinking bug is specific to 2.3.0
Attached Thumbnails
Click image for larger version

Name:	2.1.0.png
Views:	48
Size:	4.9 KB
ID:	210604   Click image for larger version

Name:	2.2.0.png
Views:	44
Size:	6.1 KB
ID:	210605  

Last edited by un_pogaz; 09-04-2024 at 03:02 AM.
un_pogaz is offline   Reply With Quote
Old 09-04-2024, 11:02 AM   #103
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by un_pogaz View Post
About "switching to Qt theme":

In version 2.1.0 (and earlier), Sigil used Windows 10's native rendering system, which gave the UI a very square and flate appearance, since 2.2.0 Sigil use the Qt's integrated rendering system that was round and with relief. Image for exemple.
It was unspecified in the changelog and surprising, but unimportant.
For the record: Sigil never used Windows native rendering system. It was always a Qt style. That style changed to Qt's Fusion in Sigil 2.2.0 in order to accommodate On the fly dark/light theme switching.
DiapDealer is offline   Reply With Quote
Old 09-04-2024, 11:03 AM   #104
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Okay, at least on macOS there is a race between the restoreState (which happens on first show) and the restoreGeometry (which must happen first!) because the call to showMaximized or showFullScreen sometimes forced the MainWindow to be activated/shown before we even had a chance to read in the state to be restored.

I have just fixed this by moving the reading the state in earlier so it is ready to be restored before any race can happen.

This fixes the moved Table of Contents bug when Maximized on macOS.

I have high hopes this "fix" will also fix this off by 1 or more thing for Windows too.
I need to check this on Windows. I forgot about it while debugging the other crash!
DiapDealer is offline   Reply With Quote
Old 09-04-2024, 11:18 AM   #105
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by DiapDealer View Post
I need to check this on Windows. I forgot about it while debugging the other crash!
This is why I am also testing commenting out showMaximized and showFullScreen to prevent the possibility of two different paths during startup.

It might help this case too.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil-1.5.1 Released DiapDealer Sigil 27 04-15-2021 11:27 AM
Sigil-1.2.0 Released DiapDealer Sigil 77 07-16-2020 01:55 PM
Sigil-0.9.7 Released DiapDealer Sigil 90 11-10-2016 02:30 PM
Sigil-0.9.6 Released DiapDealer Sigil 69 10-29-2016 11:35 AM
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 KevinH Sigil 106 10-04-2015 11:41 AM


All times are GMT -4. The time now is 12:59 PM.


MobileRead.com is a privately owned, operated and funded community.