Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-10-2015, 11:53   #1
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 65
Keyboard focus issues under Linux

Hi,

OpenCPN looses keybord focus for me whenever it shows (or rather closes) a popup window. The focus shifts to the popup window, but does not shift back to the main window.

This gets really annoying when using the keyboard to pan in an area with lots of charts (e.g. San Francisco Bay) because of the "Chart calculation" progress popups.

I currently disable these chart progress popups (luckily only requires changing a single default in the source), but the same problem exists for all other popups (waypoints etc.)

This makes using OpenCPN under Linux w/o a mouse (or other pointing device) nearly impossible. Any idea how to fix this?

commit 012496c (HEAD)
Author: Norbert Kiesel <nkiesel@metricstream.com>
Date: Mon Oct 12 10:30:13 2015 -0700

hide chart progress bar

Under Linux that results in loosing the keyboard focus. Trade-off,
but I rather keep the focus than the popup.

diff --git include/Osenc.h include/Osenc.h
index 1839e10..c2838f5 100644
--- include/Osenc.h
+++ include/Osenc.h
@@ -71,7 +71,7 @@ public:
VC_ElementVector *pVCArray);

// SENC creation, by Version desired...
- int createSenc124(const wxString& FullPath000, const wxString& SENCFileName, bool b_showProg = true);
+ int createSenc124(const wxString& FullPath000, const wxString& SENCFileName, bool b_showProg = false);
void SetLODMeters(double meters){ m_LOD_meters = meters;}
void setRegistrar( S57ClassRegistrar *registrar ){ m_poRegistrar = registrar; }
void setRefLocn( double lat, double lon){ m_ref_lat = lat; m_ref_lon = lon; }
__________________
nkiesel is offline   Reply With Quote
Old 13-10-2015, 21:53   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
Re: Keyboard focus issues under Linux

nkiesel...

I tested Beta 4.1.925, linux Kubuntu 12.04.
Could not reproduce this problem. Panning around SF Bay at large scale in vector chart mode, the SENC file progress dialogs pop up as expected. When they finish and close, then the keyboard focus returns to the canvas. So continuous keyboard panning works fine.

Have I got the test case right?
Is there any other simple use case that demonstrates the problem?
What distro of linux are you using?

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 14-10-2015, 00:02   #3
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 65
Re: Keyboard focus issues under Linux

Hmm, that is exactly what I do as well. I'm using Debian sid (aka unstable) 64bit, which comes with libwxgtk3.0-0 (version: 3.0.2+dfsg-1), and I compiled myself from git master.

I will try to use the precompiled version and/or run in a VM with an older Debian to see if that makes a difference. Stay tuned.
__________________
nkiesel is offline   Reply With Quote
Reply

Tags
linux

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yay! Single and can focus on boating, haha! Captain Pappy Liveaboard's Forum 2 17-06-2014 08:48
What Specs Should I Focus On Land an Monohull Sailboats 5 07-08-2013 07:59
B&G FOCUS WINDWATCH VIBO Challenges 2 01-11-2012 13:33
Sailing Focus - Are discussions loosing focus? jemsea Forum Tech Support & Site Help 30 06-10-2006 23:40



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 01:27.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.