Window focus problem

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

Post Reply
User avatar
OficineRobotica
Posts: 322
Joined: Thu Feb 21, 2019 8:17 am

Window focus problem

Post by OficineRobotica » Mon Sep 23, 2019 9:34 pm

Hello to all.

I have this strange problem with freecad 0.19 appimage on kubuntu 19.10. It seems that the main program window loses focus in some circumstances. By this i mean that , for example and only at times I loose the global menu in the top bar.
windowing1.png
windowing1.png (262.03 KiB) Viewed 701 times
But , most annoyingly it is the fact that pop up windows of freecad don't "pop up" but under the main window and to have them i need to ALT-TAB freecad with some other application to have them apear.
In this example i choosed a constraint and pushed the edit constrain icon but the pop up window does not apear. It will after i change focus with some other application.
windowing2.png
windowing2.png (340.88 KiB) Viewed 701 times
Note that freecad from the daily ppa doesn't suffer from this problem
windowing.png
windowing.png (310.47 KiB) Viewed 701 times
I use the ClearMenuBar parameter as sugested by triplus here https://forum.freecadweb.org/viewtopic. ... 66#p290053 but i dont think that is the problem.

Anybody has any suggestion?

Code: Select all

OS: Ubuntu Eoan Ermine (development branch) (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18260 (Git) AppImage
Build type: Release
Branch: master
Hash: dbf0644b60c35273525985fa13859ad39b0c10df
Python version: 3.7.3
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)

openBrain
Posts: 4614
Joined: Fri Nov 09, 2018 5:38 pm

Re: Window focus problem

Post by openBrain » Tue Sep 24, 2019 9:00 am

This is something very strange that your global menu items seem to appear into the Kbar... Is it something native in Kubuntu 19.10? Could it be removed to have a "standard" behavior?

User avatar
OficineRobotica
Posts: 322
Joined: Thu Feb 21, 2019 8:17 am

Re: Window focus problem

Post by OficineRobotica » Tue Sep 24, 2019 9:28 am

The global menu is an option and i'm a long time user but freecad never presented this kind of behavior before 0.19.18260 (Git) AppImage . I disabled the global menu to see if it can be the cause but unfortunately freecad still does "hide" pop up windows.

In the screenshot i chose a constraint and pushed the button to edit it. A pop up window should apear but it doesn't
windowing3.png
windowing3.png (280.85 KiB) Viewed 667 times
This behavior is extended to all pop up windows. If i right click an item in the tree and chose Appearance , for example, i need to alt-tab back and forth to get the Appearance window to show. Also the behavior is not consistent , meaning that , at times , changing the workbench might change the weird state that the main window is in and make popup windows magically re appear. The daily ppa version of freecad behaves absolutely normal tough. It's the appimage one that has problems and i prefer the appimage.

User avatar
OficineRobotica
Posts: 322
Joined: Thu Feb 21, 2019 8:17 am

Re: Window focus problem

Post by OficineRobotica » Tue Sep 24, 2019 9:42 am

Also, doing some further digging it seems that this problem is present only on kubuntu 19.10. Triyng the same appimage on kde neon, based on ubuntu 18.04 i don't seem to have the same problem
window.png
window.png (275.44 KiB) Viewed 661 times
In this case, freecad info

Code: Select all

OS: KDE neon User Edition 5.16 (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18260 (Git) AppImage
Build type: Release
Branch: master
Hash: dbf0644b60c35273525985fa13859ad39b0c10df
Python version: 3.7.3
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)

User avatar
looo
Posts: 3465
Joined: Mon Nov 11, 2013 5:29 pm

Re: Window focus problem

Post by looo » Tue Sep 24, 2019 9:52 am

OficineRobotica wrote:
Tue Sep 24, 2019 9:28 am
The daily ppa version of freecad behaves absolutely normal tough.
OficineRobotica wrote:
Tue Sep 24, 2019 9:28 am
freecad never presented this kind of behavior before 0.19.18260 (Git) AppImage
Which version of qt does the daily ppa use?

This might be related to the update to qt5.12. There is a new version of qt5.12 coming soon to the appimage. Not sure if this will fix your issue but I guess it's worth waiting for it before diving into this problem. I will trigger a build today so appimage will be updated tomorrow.
Also, doing some further digging it seems that this problem is present only on kubuntu 19.10. Triyng the same appimage on kde neon, based on ubuntu 18.04 i don't seem to have the same problem
I also cannot reproduce with ubuntu 18.04.

User avatar
OficineRobotica
Posts: 322
Joined: Thu Feb 21, 2019 8:17 am

Re: Window focus problem

Post by OficineRobotica » Tue Sep 24, 2019 9:57 am

Freecad daily ppa info

Code: Select all

OS: Ubuntu Eoan Ermine (development branch) (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.7.3
Qt version: 5.12.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)

User avatar
OficineRobotica
Posts: 322
Joined: Thu Feb 21, 2019 8:17 am

Re: Window focus problem

Post by OficineRobotica » Tue Sep 24, 2019 10:02 am

I will trigger a build today so appimage will be updated tomorrow.
Thank you...i will try it as soon as it's out.

User avatar
OficineRobotica
Posts: 322
Joined: Thu Feb 21, 2019 8:17 am

Re: Window focus problem

Post by OficineRobotica » Wed Sep 25, 2019 4:44 am

I tried the latest appimage but unfortunately the problem still persists.

Code: Select all

OS: Ubuntu Eoan Ermine (development branch) (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18289 (Git) AppImage
Build type: Release
Branch: master
Hash: bd6da5699ee63a0d568c940328cdb82cbfaac94a
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)

Post Reply