Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 12-10-2015, 10:53   #1
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
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, 20:53   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,395
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 13-10-2015, 23:02   #3
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
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 Search this Thread
Search this Thread:

Advanced Search
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 07:48
What Specs Should I Focus On Land an Monohull Sailboats 5 07-08-2013 06:59
B&G FOCUS WINDWATCH VIBO Challenges 2 01-11-2012 12:33
Sailing Focus - Are discussions loosing focus? jemsea Forum Tech Support & Site Help 30 06-10-2006 22:40

Advertise Here


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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.