LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 12-15-2015, 01:48 PM   #646
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled

Quote:
Originally Posted by rworkman View Post
Then that will have to be tested - nothing else in the tree uses urwid so far as I know.

That said, I'll point out again that NM these days is head and shoulders above wicd IMHO. It has a functional curses UI, which is/was the main reason anyone would prefer wicd as far as I'm aware.
To that point, I wouldn't mind if Pat dropped Wicd and it went to SBo (I wouldn't mind maintaining it, although I usually use NetworkManager now).
 
Old 12-15-2015, 01:59 PM   #647
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
mralk3: You can post it as a reply in this thread.
I think I'm going to see about locking this thread and starting a new one again after the next public push.

ryanpcmcquen: same here :-)
 
1 members found this post helpful.
Old 12-15-2015, 02:10 PM   #648
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
I fixed the blackbox bug by removing the code that gives focus to the root window if no window has focus. The original code didn't look like it ever worked reliably (even with an added call to XSync). I haven't encountered any downsides to doing this.

Code:
diff -Naupr blackbox-0.70.1/src/blackbox.cc blackbox-0.70.1-fix/src/blackbox.cc
--- blackbox-0.70.1/src/blackbox.cc	2005-10-18 04:33:25.000000000 -0700
+++ blackbox-0.70.1-fix/src/blackbox.cc	2015-12-15 10:38:15.001532026 -0800
@@ -279,27 +279,18 @@ void Blackbox::process_event(XEvent *e)
       break;
 
     bool lost_focus = true; // did the window really lose focus?
-    bool no_focus = true;   // did another window get focus?
 
-    XEvent event;
-    if (XCheckIfEvent(XDisplay(), &event, scanForFocusIn, NULL)) {
-      process_event(&event);
-
-      if (event.xfocus.window == None)
-        no_focus = false;
-    } else {
-      XWindowAttributes attr;
-      Window w;
-      int unused;
-      XGetInputFocus(XDisplay(), &w, &unused);
-      if (w != None
-          && XGetWindowAttributes(XDisplay(), w, &attr)
-          && attr.override_redirect) {
+    XWindowAttributes attr;
+    Window w;
+    int unused;
+    XGetInputFocus(XDisplay(), &w, &unused);
+    if (w != None
+        && XGetWindowAttributes(XDisplay(), w, &attr)
+        && attr.override_redirect) {
 #ifdef FOCUS_DEBUG
-        printf("          focused moved to an override_redirect window\n");
+      printf("          focused moved to an override_redirect window\n");
 #endif
-        lost_focus = (e->xfocus.mode == NotifyNormal);
-      }
+      lost_focus = (e->xfocus.mode == NotifyNormal);
     }
 
     if (lost_focus) {
@@ -307,13 +298,6 @@ void Blackbox::process_event(XEvent *e)
       printf("          win %p lost focus\n", win);
 #endif
       win->setFocused(false);
-
-      if (no_focus) {
-#ifdef FOCUS_DEBUG
-        printf("          no window has focus\n");
-#endif
-        setFocusedWindow(0);
-      }
     }
 
     break;

I am not sure if this is the right forum for posting a blackbox patch. Maybe it will be useful to someone.

elcore - you may be seeing a different bug.
Ed
 
Old 12-15-2015, 02:22 PM   #649
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
Quote:
Originally Posted by ryanpcmcquen View Post
To that point, I wouldn't mind if Pat dropped Wicd and it went to SBo (I wouldn't mind maintaining it, although I usually use NetworkManager now).
i love wicd. I used it on all of my machines
 
3 members found this post helpful.
Old 12-15-2015, 03:27 PM   #650
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Quote:
Originally Posted by rworkman View Post
Then that will have to be tested - nothing else in the tree uses urwid so far as I know.

That said, I'll point out again that NM these days is head and shoulders above wicd IMHO. It has a functional curses UI, which is/was the main reason anyone would prefer wicd as far as I'm aware.
This is the output I get when running wicd in a lxc container of Slackware64 14.1. /etc/rc.d/rc.inet1.conf is at default settings. I rebuilt wicd in the container and as well as urwid 1.3.1 from my SlackBuild.

Code:
root@sbodev:~# /etc/rc.d/rc.wicd start
Starting wicd daemon: /usr/sbin/wicd &
root@sbodev:~# wicd-curses
Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1063, in <module>
    main()
  File "/usr/share/wicd/curses/wicd-curses.py", line 995, in main
    ui.run_wrapper(run)
  File "/usr/lib64/python2.7/site-packages/urwid/display_common.py", line 764, in run_wrapper
    return fn()
  File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1003, in run
    app = appGUI()
  File "/usr/share/wicd/curses/wicd-curses.py", line 548, in __init__
    self.wiredCB = urwid.Filler(WiredComboBox(wiredL))
  File "/usr/share/wicd/curses/wicd-curses.py", line 378, in __init__
    self.__super.__init__(use_enter=False)
  File "/usr/share/wicd/curses/curses_misc.py", line 352, in __init__
    self.focus = focus
AttributeError: can't set attribute
Here are the packages if anyone else is interested in checking this out.

I am not a great programmer, but I will take a look at the python code.

EDIT: Add links to packages built from -current.

Last edited by mralk3; 12-15-2015 at 04:08 PM.
 
Old 12-15-2015, 03:46 PM   #651
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Quote:
Originally Posted by mralk3 View Post
This is the output I get when running wicd in a lxc container of Slackware64 14.1. /etc/rc.d/rc.inet1.conf is at default settings. I rebuilt wicd in the container and as well as urwid 1.3.1 from my SlackBuild.

Code:
root@sbodev:~# /etc/rc.d/rc.wicd start
Starting wicd daemon: /usr/sbin/wicd &
root@sbodev:~# wicd-curses
Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1063, in <module>
    main()
  File "/usr/share/wicd/curses/wicd-curses.py", line 995, in main
    ui.run_wrapper(run)
  File "/usr/lib64/python2.7/site-packages/urwid/display_common.py", line 764, in run_wrapper
    return fn()
  File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1003, in run
    app = appGUI()
  File "/usr/share/wicd/curses/wicd-curses.py", line 548, in __init__
    self.wiredCB = urwid.Filler(WiredComboBox(wiredL))
  File "/usr/share/wicd/curses/wicd-curses.py", line 378, in __init__
    self.__super.__init__(use_enter=False)
  File "/usr/share/wicd/curses/curses_misc.py", line 352, in __init__
    self.focus = focus
AttributeError: can't set attribute
Here are the packages if anyone else is interested in checking this out.

I am not a great programmer, but I will take a look at the python code.
Current has Wicd 1.7.3, you should use Pat's builds:

http://mirrors.slackware.com/slackwa...ource/l/urwid/

http://mirrors.slackware.com/slackwa...a/source/wicd/

Also, on a side note, Wicd 1.7.3 breaks when entering a new network in `wicd-curses`. I reported this to upstream but they have not rolled the fix in yet. Pat did not want to include the fix, as he thinks it *should* be handled by upstream (I agree).

Relevant bug report and patch:

https://bugs.launchpad.net/wicd/+bug/1429253

https://github.com/voidlinux/void-pa...rate_fix.patch
 
Old 12-15-2015, 04:12 PM   #652
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
A new thread or a trimmed thread would be good Robby.
 
Old 12-15-2015, 04:13 PM   #653
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Quote:
Originally Posted by ryanpcmcquen View Post
You are correct. I rebuilt using -current build scripts and wicd-curses allows me to connect using the static IP in my lxc container. I amended my package uploads in the previous post if anyone wants to test with my packages.

Here are my updated packages:
urwid-1.3.1-x86_64-1.txz
wicd-1.7.3-x86_64-1.txz

Last edited by mralk3; 12-15-2015 at 04:14 PM.
 
Old 12-15-2015, 05:02 PM   #654
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Quote:
Originally Posted by rworkman View Post
I think I'm going to see about locking this thread and starting a new one again after the next public push.
Is there a Christmas gift coming for -current users?

 
Old 12-15-2015, 05:14 PM   #655
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Quote:
Originally Posted by andrew.46 View Post
Is there a Christmas gift coming for -current users?

It's always Christmas on Slackware. ;^)
 
2 members found this post helpful.
Old 12-15-2015, 11:59 PM   #656
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Close this thread, please - I'll re-open a new one shortly.
 
1 members found this post helpful.
Old 12-16-2015, 01:23 AM   #657
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,338

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
+1 to close this

I think , best open new thread after big update , to make better control of users requests.
 
Old 12-16-2015, 03:58 AM   #658
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,225

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Just thanks for the good work, to all
 
Old 12-16-2015, 07:07 AM   #659
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163
Blog Entries: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by ryanpcmcquen View Post
To that point, I wouldn't mind if Pat dropped Wicd and it went to SBo (I wouldn't mind maintaining it, although I usually use NetworkManager now).
B-b-b-but but... I use wicd.

Last edited by pzognar; 12-16-2015 at 07:08 AM.
 
Old 12-16-2015, 09:15 AM   #660
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
Originally Posted by rworkman View Post
mralk3: You can post it as a reply in this thread.
I think I'm going to see about locking this thread and starting a new one again after the next public push.

ryanpcmcquen: same here :-)
I guess it's time to close this thread then since a new push is out.
With the new push mesa now has docs in the right path and get-mesa.sh also got updated

In /etc/slackpkg/mirrors these should be removed since sunet doesn't host linux distributions anymore and are dead links.
# ftp://ftp.sunet.se/pub/os/Linux/dist...ckware64-14.1/
# http://ftp.sunet.se/pub/os/Linux/dis...ckware64-14.1/
# ftp://ftp.sunet.se/pub/os/Linux/dist...are64-current/
# http://ftp.sunet.se/pub/os/Linux/dis...are64-current/

Last edited by Nille_kungen; 12-16-2015 at 09:25 AM.
 
  


Closed 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] vdso_time error after current updates chrissi29 Slackware 4 03-20-2013 04:09 AM
xfce 4.10 and latest updates to current BCarey Slackware 7 07-16-2012 10:56 AM
wget error with new current updates fogpipe Slackware 2 07-14-2012 03:16 PM
Massive updates in -current mlangdn Slackware 53 07-01-2012 08:15 AM
Slackware current updates today! neo Slackware 2 04-22-2005 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration