Giter Club home page Giter Club logo

pywo's People

Contributors

kosciak avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pywo's Issues

Xlib.error.DisplayConnectionError: Can't connect to display ":0.0": [Errno 2] No such file or directory

What steps will reproduce the problem?
 1. Execute pywo at the command line

What is the expected output? What do you see instead?

 I would expect pywo to run. Instead, it crashes with an X error, even when doing "pywo --help".

What version of the product are you using? On what operating system?

 I'm using revision 202 from the SVN repository. I'm running 64-bit Ubuntu Oneiric, in "Gnome classic 2d" mode.

Please provide any additional information below.

 pywo was working great for me for about two weeks. Then this morning I ran some apt updates and rebooted, and afterward I found that pywo crashes with the following error whenever I try to launch it. Launching it with "pywo --daemon" or even "pywo --help" has the same effect. (I am able to launch and run other python applications with a GUI, such as gpodder.)

> pywo
Traceback (most recent call last):
  File "/usr/local/bin/pywo", line 9, in <module>
    load_entry_point('PyWO==0.3.0', 'console_scripts', 'pywo')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 305, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2245, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1955, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/PyWO-0.3.0-py2.7.egg/pywo/main.py", line 29, in <module>
    from pywo import actions, commandline
  File "/usr/local/lib/python2.7/dist-packages/PyWO-0.3.0-py2.7.egg/pywo/actions/__init__.py", line 34, in <module>
    from pywo.actions.core import TYPE_FILTER, STATE_FILTER, TYPE_STATE_FILTER
  File "/usr/local/lib/python2.7/dist-packages/PyWO-0.3.0-py2.7.egg/pywo/actions/core.py", line 25, in <module>
    from pywo.core import Window, WindowManager, Type, State, Mode
  File "/usr/local/lib/python2.7/dist-packages/PyWO-0.3.0-py2.7.egg/pywo/core/__init__.py", line 34, in <module>
    from pywo.core.windows import Type, State, Mode, Window, WindowManager
  File "/usr/local/lib/python2.7/dist-packages/PyWO-0.3.0-py2.7.egg/pywo/core/windows.py", line 40, in <module>
    from pywo.core.xlib import XObject
  File "/usr/local/lib/python2.7/dist-packages/PyWO-0.3.0-py2.7.egg/pywo/core/xlib.py", line 43, in <module>
    class XObject(object):
  File "/usr/local/lib/python2.7/dist-packages/PyWO-0.3.0-py2.7.egg/pywo/core/xlib.py", line 52, in XObject
    __DISPLAY = Display()
  File "/usr/lib/pymodules/python2.7/Xlib/display.py", line 83, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/pymodules/python2.7/Xlib/display.py", line 65, in __init__
    apply(protocol.display.Display.__init__, (self, ) + args, keys)
  File "/usr/lib/pymodules/python2.7/Xlib/protocol/display.py", line 49, in __init__
    self.socket = connect.get_socket(name, host, displayno)
  File "/usr/lib/pymodules/python2.7/Xlib/support/connect.py", line 79, in get_socket
    return mod.get_socket(dname, host, dno)
  File "/usr/lib/pymodules/python2.7/Xlib/support/unix_connect.py", line 92, in get_socket
    raise error.DisplayConnectionError(dname, str(val))
Xlib.error.DisplayConnectionError: Can't connect to display ":0.0": [Errno 2] 
No such file or directory

 I don't know whether the packages I upgraded are causing the error or not, but here is the list of what I upgraded just before this started:

1. upgrade linux-image-3.0.0-15-generic 3.0.0-15.24 3.0.0-15.25
2. upgrade ubuntu-docs 11.10.5 11.10.6
3. upgrade language-selector-gnome 0.56 0.56.1
4. upgrade language-selector-common 0.56 0.56.1
5. upgrade binutils 2.21.53.20110810-0ubuntu5 2.21.53.20110810-0ubuntu5.1
6. upgrade firefox-globalmenu 8.0+build1-0ubuntu0.11.10.3 
9.0.1+build1-0ubuntu0.11.10.2
7. upgrade firefox 8.0+build1-0ubuntu0.11.10.3 9.0.1+build1-0ubuntu0.11.10.2
8. upgrade firefox-gnome-support 8.0+build1-0ubuntu0.11.10.3 
9.0.1+build1-0ubuntu0.11.10.2
9. upgrade firefox-locale-en 8.0+build1-0ubuntu0.11.10.3 
9.0.1+build1-0ubuntu0.11.10.2
10. upgrade linux-headers-3.0.0-15 3.0.0-15.24 3.0.0-15.25
11. upgrade linux-headers-3.0.0-15-generic 3.0.0-15.24 3.0.0-15.25
12. upgrade linux-libc-dev 3.0.0-15.24 3.0.0-15.25
13. upgrade xul-ext-ubufox 1.0-0ubuntu2.1 1.0.2-0ubuntu0.11.10.1

Original issue reported on code.google.com by aaronwells on 3 Jan 2012 at 10:04

TypeError: 'property' object is not iterable

What steps will reproduce the problem?
1. /usr/bin/pywo
2.
3.

What is the expected output? What do you see instead?

schwinger ~ > pywo -h
Xlib.protocol.request.QueryExtension
Traceback (most recent call last):
  File "/usr/bin/pywo", line 9, in <module>
    load_entry_point('PyWO==0.3', 'console_scripts', 'pywo')()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 305, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2244, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/PyWO-0.3-py2.7.egg/pywo/main.py", line 27, in <module>
    from pywo import actions, commandline, filters
  File "/usr/lib/python2.7/site-packages/PyWO-0.3-py2.7.egg/pywo/commandline.py", line 104, in <module>
    for option in pywo.actions.parser.option_list:
TypeError: 'property' object is not iterable



What version of the product are you using? On what operating system?

Trunk (pulled today), on Fedora 14


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 10 Feb 2011 at 12:05

PyWo r202 cannot start up with example pyworc

What steps will reproduce the problem?
1. Check out code from svn
2. Install
3. Copy examples/pyworc to ~/.pyworc
4. Run pywo

What is the expected output? What do you see instead?

PyWo should start up in an appropriate mode. Instead, we get ConfigParser 
errors for the ALIASES section and (if that is corrected) the bell_ options.

What version of the product are you using? On what operating system?

r202

Please provide any additional information below.

Attached diff, applied to examples/pyworc, lets pywo r202 start up.




Original issue reported on code.google.com by [email protected] on 26 Jul 2012 at 10:06

Crashes on an unrecognized keypress

I accidentally hit a key combination I'm unfortunately not able to reproduce. 
It threw this exception:

Exception in thread EventDispatcher:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/akaihola/repos/desktop/pywo/kosciak1/pywo/core.py", line 341, in run
    self.__dispatch(self.__display.next_event())
  File "/home/akaihola/repos/desktop/pywo/kosciak1/pywo/core.py", line 417, in __dispatch
    handler.handle_event(event)
  File "/home/akaihola/repos/desktop/pywo/kosciak1/pywo/events.py", line 88, in handle_event
    handler_method(event)
  File "/home/akaihola/repos/desktop/pywo/kosciak1/pywo/services/keyboard_service.py", line 47, in key_press
    log.excetpion('Unrecognized key!')
AttributeError: Logger instance has no attribute 'excetpion'

There's obviously a typo in keyboard_service.py on line 47.

Original issue reported on code.google.com by [email protected] on 8 Feb 2011 at 7:57

pywo --help-more -> TypeError: 'float' object is not iterable

What steps will reproduce the problem?
1. bin/pywo --help-more
2.
3.

What is the expected output?

  Some elaborate help text.

What do you see instead?

> bin/pywo --help-more
Xlib.protocol.request.QueryExtension
Traceback (most recent call last):
  File "bin/pywo", line 6, in <module>
    main.run()
  File "/home/mp26/tmp/pywo-read-only/pywo/main.py", line 109, in run
    commandline.print_help_more(config)
  File "/home/mp26/tmp/pywo-read-only/pywo/commandline.py", line 210, in print_help_more
    section_descriptions = get_section_descriptions(config)
  File "/home/mp26/tmp/pywo-read-only/pywo/commandline.py", line 199, in get_section_descriptions
    ', '.join(['%.2f' % size for size in data.size.height]), 
TypeError: 'float' object is not iterable

What version of the product are you using? On what operating system?

svn checkout from today (r202 | kosciak1 | 2011-06-19 22:03:37 +0200 (So, 19 
Jun 2011) | 2 lines)

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 20 Mar 2014 at 8:46

Windows resize relative to whole Xinerama desktop

What steps will reproduce the problem?
1. use PyWO on a double-head Xinerama setup
2. resize some windows

What is the expected output? What do you see instead?
Windows should be resized relative to the screen they currently are on. They 
are resized relative to the whole desktop instead.

For example, on my 1280x1024-above-1024x600 desktop, Ctrl-Shift-5 resizes a 
window to 1280x1576 at (0, 24). I'd expect it to resize to 1280x1000 at (0, 24) 
if the window is on the larger screen, or 1024x600 at (0, 1024) if the window 
is mostly on the smaller screen.

What version of the product are you using? On what operating system?
Revision 185 on Ubuntu 10.10 and the Lubuntu desktop.

Please provide any additional information below.
Earlier commits taken from my previous xinerama patch provide the necessary 
supporting pieces for fixing this. The patch attached to this issue actually 
makes use of those pieces.

There seems to remain an edge case where the nearest_screen_geometry() method 
sometimes doesn't get called when doing a resize. I'll try to debug that later.

This patch also lives in my GitHub fork at 
https://github.com/akaihola/PyWO/tree/xinerama-support
and the diff is available for download also at
https://github.com/downloads/akaihola/PyWO/pywo-xinerama-support.2.diff

Original issue reported on code.google.com by [email protected] on 14 May 2011 at 4:49

Attachments:

Failing filter tests

What steps will reproduce the problem?
1. get revision 175
2. run "python setup.py test"

What is the expected output? What do you see instead?
No tests should fail. The following tests do fail:
test_standard (tests.core.filters_test.CombinedFiltersTests) ... FAIL
test_standard_type (tests.core.filters_test.IncludeExcludeTypeTests) ... FAIL

What version of the product are you using? On what operating system?
Revision 175 on Ubuntu 10.10 using the Lubuntu desktop (Openbox).

Please provide any additional information below.
======================================================================
FAIL: test_standard (tests.core.filters_test.CombinedFiltersTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/core/filters_test.py", line 247, in test_standard
    self.desktop2_viewport2_win])
  File "tests/core/filters_test.py", line 22, in assertWindows
    self.assertEqual(windows_ids, filtered_windows_ids)
AssertionError: set([5025, 2178, 9863, 9360, 4753, 6706, 2931, 3542, 2391, 
2682, 1599, 9663]) != set([2178, 9863, 9360, 4753, 6706, 2931, 3542, 2391, 
2682, 9663, 1599])

======================================================================
FAIL: test_standard_type (tests.core.filters_test.IncludeExcludeTypeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/core/filters_test.py", line 54, in test_standard_type
    self.utility_win, self.dialog_win])
  File "tests/core/filters_test.py", line 22, in assertWindows
    self.assertEqual(windows_ids, filtered_windows_ids)
AssertionError: set([6698, 8893, 9302, 3007]) != set([6698, 8893, 9302])

Original issue reported on code.google.com by [email protected] on 27 Apr 2011 at 6:31

Lubuntu autostart runs two copies of PyWO, shortcuts don't work

What steps will reproduce the problem?
1. run Ubuntu 10.10 with the Lubuntu desktop
2. append "pywo --daemon" or "@pywo --daemon" to
   /etc/xdg/lxsession/Lubuntu/autostart
3. log out and back in to your desktop
4. try to use PyWO keyboard shortcuts
5. pgrep -lf pywo

What is the expected output? What do you see instead?
There should be one PyWO process and keyboard shortucts should work normally. 
Instead, there are two:
$ pgrep -lf pywo
1787 /usr/bin/python /usr/local/bin/pywo --daemon
1798 /usr/bin/python /usr/local/bin/pywo --daemon
and the shortcuts don't work.

What version of the product are you using? On what operating system?
Revision 176 on Ubuntu 10.10, lubuntu-desktop (Openbox)

Please provide any additional information below.
The @ prefix in the autostart file should make the process respawn if it dies.

PyWO works correctly if I remove it from the autostart file, log out and back 
in, and start it with Alt-F2 pywo --daemon.

Other processes listed in the autostart file seem to work correctly and have 
only one copy running.

Original issue reported on code.google.com by [email protected] on 3 May 2011 at 6:32

Grid actions leave a 5px border between the screen edge and the window

What steps will reproduce the problem?

1. Start pywo
2. Hit your grid_width_top_left shortcut or grid_width_left or 
grid_width_bottom_left

What is the expected output? What do you see instead?

Window will be placed 5 pixels from the left edge of the screen instead of 
right at the edge. 

What version of the product are you using? On what operating system?

pywo 0.2, Ubuntu 12.04.

Please provide any additional information below.

I believe this is related to the shadow that is drawn around windows by compiz. 
If I turn off window decorations in compiz, the issue will not happen.

Original issue reported on code.google.com by [email protected] on 16 Nov 2012 at 4:51

Crashes terminator in Openbox

What steps will reproduce the problem?
1. run pywo --daemon in Lubuntu 10.10 (uses Openbox as WM)
2. install and run Terminator (the split-screen terminal)
   I use "terminator -d --sync" to get debug output
3. move the Terminator window with Pywo shortcut keys

What is the expected output? What do you see instead?

The Terminator window should move at the desired location. It crashes instead 
with:

ConfigBase::get_item: ConfigBase::get_item: title_transmit_fg_color found in 
globals: #ffffff
ConfigBase::get_item: ConfigBase::get_item: title_transmit_bg_color found in 
globals: #94da3a
ConfigBase::get_item: ConfigBase::get_item: title_transmit_fg_color found in 
globals: #ffffff
ConfigBase::get_item: ConfigBase::get_item: title_transmit_bg_color found in 
globals: #94da3a
ConfigBase::get_item: ConfigBase::get_item: show_titlebar found in profile 
default: True
Titlebar::get_desired_visibility: configured visibility: True
ConfigBase::get_item: ConfigBase::get_item: show_titlebar found in profile 
default: True
ConfigBase::get_item: ConfigBase::get_item: show_titlebar found in profile 
default: True
Titlebar::get_desired_visibility: configured visibility: True
ConfigBase::get_item: ConfigBase::get_item: show_titlebar found in profile 
default: True
Titlebar::update_visibility: showing titlebar
ConfigBase::get_item: ConfigBase::get_item: geometry_hinting found in globals: 
True
Window::set_rough_geometry_hints: setting geometry hints: 
(ewidth:6)(eheight:24),(fwidth:6)(fheight:13)
The program 'terminator' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 2836 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

What version of the product are you using? On what operating system?

Pywo trunk revision 124, Terminator 0.95-0ubuntu1 on Ubuntu 10.10 in a 
lubuntu-desktop session.

Please provide any additional information below.

Terminator is based on Gnome-Terminal which works correctly with Pywo.

Original issue reported on code.google.com by [email protected] on 14 Feb 2011 at 8:28

Chromium browser does not behave as expected during put/resize (CTRL-KP0-9)

What steps will reproduce the problem?
1. Checkout pywo (trunk)
2. Start Chromium
3. put and resize using CTRL-KP0_9

What is the expected output? What do you see instead?
I'm expecting chromium to be placed and resized on the screen
according to the default grid layout that other (gnome like) windows
seem to behave when using CTRL-KP0-9. But instead chromium windows are resized 
sporadically and made to be very small or thin instead of being anchored using 
the 3x2 layout.

What version of the product are you using? On what operating system?
Latest trunk rev58.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 10 Dec 2010 at 10:05

Bad interaction with focus-follows-mouse window-manager policy

What steps will reproduce the problem?
1. Stack two windows over each other while using a window manager with focus 
follows mouse policy.
2. Place mouse over them, top-most window has focus
3. Use pywo to move the upper window away from under the mouse.

What is the expected output?

Focus is transferred to the lower window.

What do you see instead?

Instead it should be retained with the window being acted on currently.
This is irritating, as one usually would like to continue move the window that 
had focus just now.

What version of the product are you using? On what operating system?

current svn, xfwm4 wm

Please provide any additional information below.

I would probably be best to prevent focus transfer until the mouse is moved 
again, indicating that the current user interaction with the window via pywo is 
completed, at least as an option.

One possible workaround is to move the mouse pointer with the window (ugly but 
might solve the problem).

Original issue reported on code.google.com by [email protected] on 20 Mar 2014 at 10:11

Test Xinerama support on multi monitor setup

In the latest development version support for Xineram was introduced.
To turn it on add '--xinerama' argument when running pywo from commandline, or 
add 'xinerama = on' in the '[SETTINGS]' section of the configuration file.

Since I don't have access to multi monitor setup this feature still needs some 
testing.

I don't know if current implementation works with all window managers, if the 
screen area is calculated correctly for different panel/docks placement.

If you are using pywo with more than one monitor screen please check the new 
xinerama support and in case of any problems please paste (or link to) output 
of 'pywo debug' command.

Original issue reported on code.google.com by [email protected] on 19 May 2011 at 6:18

Window.geometry always x=0, y=0 in Openbox

What steps will reproduce the problem?
1. run a Python shell in an Openbox desktop
2. move the terminal window to the center of the screen
3. >>> from pywo.core import WindowManager
4. >>> print WindowManager().active_window().geometry

What is the expected output? What do you see instead?
The x and y attributes of the Geometry object should reflect the position of 
the window on the screen. However, I always get
<Geometry x=0, y=0, ...>

What version of the product are you using? On what operating system?
Revision 176 on Ubuntu 10.10, lubuntu-desktop (Openbox)

Original issue reported on code.google.com by [email protected] on 29 Apr 2011 at 5:17

Can't grab keys

What steps will reproduce the problem?
1. Starting pywo directly after installation on #! - Statler - Alpha2

What is the expected output? What do you see instead?
PyWO to work.

What version of the product are you using? On what operating system?
See above.

Please provide any additional information below.

PyWO.log:
DEBUG: pywo.py start(271): >>>>>>>>>>>>>>>><<<<<<<<<<<<<<<
INFO: pywo.py start(272): Starting PyWO...
INFO: config.py load(114): Loading configuration file...
INFO: config.py load(204): Configuration loaded.
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Alt-KP_3
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_3
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-KP_2
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_2
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_5
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_5
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Shift-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Alt-KP_6
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_6
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Alt-KP_Divide
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_Divide
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_Divide
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_Divide
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_8
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_8
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Alt-KP_9
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_9
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Alt-KP_5
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_5
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-Alt-Q
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-Alt-Q
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-Alt-NumLock-Q
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-Alt-NumLock-Q
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-Alt-R
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-Alt-R
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-Alt-NumLock-R
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-Alt-NumLock-R
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_Divide
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_Divide
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_Divide
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_Divide
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-KP_6
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_6
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-Alt-I
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-Alt-I
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-Alt-NumLock-I
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-Alt-NumLock-I
ERROR: core.py __grab_key(390): Can't use Alt-KP_1
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_1
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-KP_9
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_9
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Shift-KP_7
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_7
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Alt-KP_4
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_4
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Alt-KP_2
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_2
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-KP_5
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_5
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_5
ERROR: core.py __grab_key(390): Can't use Shift-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_7
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_7
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_6
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_6
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_6
ERROR: core.py __grab_key(390): Can't use Shift-KP_8
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_8
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-Shift-CapsLock-NumLock-KP_3
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_1
ERROR: core.py __grab_key(390): Can't use Shift-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-NumLock-KP_4
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-Alt-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-Alt-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_9
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_9
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_9
ERROR: core.py __grab_key(390): Can't use Ctrl-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Ctrl-CapsLock-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Shift-Alt-KP_2
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-KP_2
ERROR: core.py __grab_key(390): Can't use Shift-Alt-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Shift-CapsLock-Alt-NumLock-KP_2
ERROR: core.py __grab_key(390): Can't use Alt-KP_8
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_8
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_8
ERROR: core.py __grab_key(390): Can't use Alt-KP_7
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-KP_7
ERROR: core.py __grab_key(390): Can't use Alt-NumLock-KP_7
ERROR: core.py __grab_key(390): Can't use CapsLock-Alt-NumLock-KP_7
DEBUG: core.py register(243): Registering KeyPressHandler (mask=1, types=[2]) 
for 349
DEBUG: core.py run(231): EventDispatcher started
DEBUG: core.py __set_event_mask(377): Setting ['1'] masks for window 349
INFO: pywo.py start(276): PyWO ready and running!


Original issue reported on code.google.com by [email protected] on 8 Sep 2010 at 3:09

Crashes with "unknown request" when tiling a window

What steps will reproduce the problem?

1. Run pywo --daemon
2. Mess around with the tiling shortcuts for a couple of minutes

What is the expected output? What do you see instead?

PyWO should always tile the window. It crashes instead with:
grid_height: win=<Window id=62914731>, kwargs={'size':<Size width=[0.5, 
0.6666666666666666, 0.3333333333333333], height=[0.3333333333333333, 0.5, 
0.6666666666666666]>, 'position':<Gravity x=0.00, y=0.00>, 
'invert_on_resize':0, 'gravity':<Gravity x=0.00, y=0.00>, 'xinerama':1}
Exception Request reply to unknown request.  Can't happen! while performing 
<Action 'grid_height'>
Traceback (most recent call last):
  File "pywo/actions/__init__.py", line 124, in __call__
    self.perform(win, **kwargs)
  File "pywo/actions/grid_actions.py", line 163, in perform
    size, width, height, self.cycle, xinerama)
  File "pywo/actions/grid_actions.py", line 181, in get_geometry
    size, width, height, cycle, xinerama)
  File "pywo/actions/grid_actions.py", line 106, in __init__
    dummy = DummyWindow(win, self.position, self.sizes, self.gravity)
  File "pywo/actions/grid_actions.py", line 51, in __init__
    self.extents = window.extents
  File "pywo/core/windows.py", line 275, in extents
    extents = self.__extents()
  File "pywo/core/windows.py", line 266, in __extents
    extents = self.get_property('_NET_FRAME_EXTENTS')
  File "pywo/core/xlib.py", line 113, in get_property
    property = self._win.get_full_property(atom, 0)
  File "/usr/lib/pymodules/python2.7/Xlib/xobject/drawable.py", line 459, in get_full_property
    prop = self.get_property(property, type, 0, sizehint)
  File "/usr/lib/pymodules/python2.7/Xlib/xobject/drawable.py", line 448, in get_property
    long_length = length)
  File "/usr/lib/pymodules/python2.7/Xlib/protocol/rq.py", line 1428, in __init__
    self.reply()
  File "/usr/lib/pymodules/python2.7/Xlib/protocol/rq.py", line 1440, in reply
    self._display.send_and_recv(request = self._serial)
  File "/usr/lib/pymodules/python2.7/Xlib/protocol/display.py", line 547, in send_and_recv
    gotreq = self.parse_response(request)
  File "/usr/lib/pymodules/python2.7/Xlib/protocol/display.py", line 634, in parse_response
    gotreq = self.parse_request_response(request) or gotreq
  File "/usr/lib/pymodules/python2.7/Xlib/protocol/display.py", line 711, in parse_request_response
    req = self.get_waiting_replyrequest()
  File "/usr/lib/pymodules/python2.7/Xlib/protocol/display.py", line 838, in get_waiting_replyrequest
    raise RuntimeError("Request reply to unknown request.  Can't happen!")
RuntimeError: Request reply to unknown request.  Can't happen!

If I then try to interrupt PyWO with Ctrl-C:

^CInterrupted!
Exiting PyWO...
PyWO D-Bus Service stopped
Keyboard shortcuts unregistered

At this point, it doesn't return to the shell prompt. From another terminal:

$ pgrep -lf pywo
2498 /usr/bin/python /usr/local/bin/pywo --daemon
$ kill 2498
$ pgrep -lf pywo
2498 /usr/bin/python /usr/local/bin/pywo --daemon
$ kill 2498
$ pgrep -lf pywo
2498 /usr/bin/python /usr/local/bin/pywo --daemon
$ kill -9 2498
$ pgrep -lf pywo
$ 

What version of the product are you using? On what operating system?

Revision 195 on Ubuntu 11.04 Classic GNOME session (i.e. no Unity), with 
xinerama = yes in [SETTINGS].

Original issue reported on code.google.com by [email protected] on 16 Jun 2011 at 9:06

"TypeError: 'float' object is not iterable" when run with --sections or --help-more

What steps will reproduce the problem?

$ pywo --sections
Xlib.protocol.request.QueryExtension
Traceback (most recent call last):
  File "/usr/bin/pywo", line 9, in <module>
    load_entry_point('PyWO==0.3.0', 'console_scripts', 'pywo')()
  File "/usr/lib/python2.7/site-packages/pywo/main.py", line 113, in run
    print '\n'.join(commandline.get_section_descriptions(config))
  File "/usr/lib/python2.7/site-packages/pywo/commandline.py", line 199, in get_section_descriptions
    ', '.join(['%.2f' % size for size in data.size.height]), 
TypeError: 'float' object is not iterable

$ pywo --help-more
Xlib.protocol.request.QueryExtension
Traceback (most recent call last):
  File "/usr/bin/pywo", line 9, in <module>
    load_entry_point('PyWO==0.3.0', 'console_scripts', 'pywo')()
  File "/usr/lib/python2.7/site-packages/pywo/main.py", line 109, in run
    commandline.print_help_more(config)
  File "/usr/lib/python2.7/site-packages/pywo/commandline.py", line 210, in print_help_more
    section_descriptions = get_section_descriptions(config)
  File "/usr/lib/python2.7/site-packages/pywo/commandline.py", line 199, in get_section_descriptions
    ', '.join(['%.2f' % size for size in data.size.height]), 
TypeError: 'float' object is not iterable


What version of the product are you using?

pywo svn r202
python 2.7.2
python-xlib 0.15rc1

Original issue reported on code.google.com by [email protected] on 4 Mar 2012 at 3:49

Non-helpful backtrace on syntax error in config file.

What steps will reproduce the problem?
1. Make an error in editing the keys section in the config file
2. Start pywo
3.

What is the expected output?

I would like to see a sensible description about the (syntax?) error made, at 
least a hint about the line that is wrong in the config file.

What do you see instead?

Invalid key for section <pywo.config.Section object at 0x97b158c>
Traceback (most recent call last):
  File "/home/mp26/tmp/pywo-read-only/pywo/services/keyboard_service.py", line 77, in set_config
    (mod, keycode) = WM.str2modifiers_keycode(mask, key)
  File "/home/mp26/tmp/pywo-read-only/pywo/core/xlib.py", line 255, in str2modifiers_keycode
    keycode = cls.str2keycode(key)
  File "/home/mp26/tmp/pywo-read-only/pywo/core/xlib.py", line 230, in str2keycode
    raise ValueError('No key specified!')
ValueError: No key specified!



What version of the product are you using? On what operating system?

current svn

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 20 Mar 2014 at 9:58

On two different-sized monitors, windows are cut off at shorter window's gnome-panel position

I've set one of my monitors to a vertical orientation, and one horizontal. 
Here's a picture: http://imgur.com/0bAEOTE . I realize this is probably not a 
common use-case. :)

What steps will reproduce the problem?
1. Connect one 1920x1080 monitor, and one 1080x1920 monitor to computer. (In 
other words, two monitors, one in horizontal configuration and one in vertical 
configuration)
2. Put gnome-panel in the horizontal monitor (i.e., make it the primary monitor)
2. Use pywo to position windows in the vertical (1080x1920) monitor

What is the expected output:
pywo should position windows using the full height of the vertical monitor. 
i.e. pressing the "middle" layout button should make the window 1080 wide and 
1920 tall.

What do you see instead:
pywo lines up windows in the vertical monitor, with the edge of the 
gnome-panels in the horizontal monitor. So, pressing the "middle" layout button 
makes the window only roughly 1080 wide and 1040 tall.

What version of the product are you using? 
built from r202

On what operating system?
Ubuntu 12.0.4
MATE Desktop Environment 1.6.0

Please provide any additional information below.
One workaround is to put the gnome-panel in the vertical monitor instead. If I 
do this, then pywo will position windows in the full real estate on each 
monitor. But since gnome-panel benefits from having a lot of horizontal space, 
it's better to put it in the horizontal monitor. (Also technically I'm using 
mate-panel, not gnome-panel, but it's very similar.)

Original issue reported on code.google.com by aaronwells on 27 Jun 2013 at 3:20

Pywo crashes when trying to tile window

What steps will reproduce the problem?
1. Run pywo
2. Use shortcut to tile window


What is the expected output? What do you see instead?

pywo should move the window according to the shortcut. 

Pywo exits with the following error

$ python pywo.py 
Xlib.protocol.request.QueryExtension
Starting PyWO...
Loading configuration file...
Configuration loaded.
PyWO ready and running!
^[^C^CException in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/user/Software/pywo-0.1.1/core.py", line 236, in run
    self.__dispatch(self.__display.next_event())
  File "/home/user/Software/pywo-0.1.1/core.py", line 295, in __dispatch
    handlers[event.type].handle_event(event)
  File "/home/user/Software/pywo-0.1.1/events.py", line 86, in handle_event
    self.__mapping[event.type](event)
  File "pywo.py", line 207, in key_press
    window = WM.active_window()
  File "/home/user/Software/pywo-0.1.1/core.py", line 833, in active_window
    return Window(window_id)
  File "/home/user/Software/pywo-0.1.1/core.py", line 524, in __init__
    self.__translate_coords, self.__adjust_geometry = self.__check()
  File "/home/user/Software/pywo-0.1.1/core.py", line 528, in __check
    name = WindowManager().name.lower()
  File "/home/user/Software/pywo-0.1.1/core.py", line 782, in name
    name = win.get_property('_NET_WM_NAME')
  File "/home/user/Software/pywo-0.1.1/core.py", line 343, in get_property
    property = self._win.get_full_property(atom, 0)
  File "/usr/lib/pymodules/python2.6/Xlib/xobject/drawable.py", line 459, in get_full_property
    prop = self.get_property(property, type, 0, sizehint)
  File "/usr/lib/pymodules/python2.6/Xlib/xobject/drawable.py", line 448, in get_property
    long_length = length)
  File "/usr/lib/pymodules/python2.6/Xlib/protocol/rq.py", line 1428, in __init__
    self.reply()
  File "/usr/lib/pymodules/python2.6/Xlib/protocol/rq.py", line 1448, in reply
    raise self._error
BadWindow: <class 'Xlib.error.BadWindow'>: code = 3, resource_id = 
Xlib.xobject.resource.Resource(0x0180007b), sequence_number = 491, major_opcode 
= 20, minor_opcode = 0

Exception KeyboardInterrupt in <module 'threading' from 
'/usr/lib/python2.6/threading.pyc'> ignored


What version of the product are you using? On what operating system?

Pywo-all versions, Kubuntu 10.10, KDE 4.6.2, python 4.6,


Please provide any additional information below.
python-xlib installed

Original issue reported on code.google.com by [email protected] on 8 Jun 2011 at 8:47

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.