SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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.
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.
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.
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.
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).
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.