{"action":"created","issue":{"url":"https://api.github.com/repos/mypaint/mypaint/issues/324","labels_url":"https://api.github.com/repos/mypaint/mypaint/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/mypaint/mypaint/issues/324/comments","events_url":"https://api.github.com/repos/mypaint/mypaint/issues/324/events","html_url":"https://github.com/mypaint/mypaint/issues/324","id":79905002,"number":324,"title":"Error when I use \"Pick Color (left icon) and Pick brushstroke settings, stroke color, and layer (right icon)\" on status bar.","user":{"login":"americogobbo","id":8180638,"avatar_url":"https://avatars.githubusercontent.com/u/8180638?v=3","gravatar_id":"","url":"https://api.github.com/users/americogobbo","html_url":"https://github.com/americogobbo","followers_url":"https://api.github.com/users/americogobbo/followers","following_url":"https://api.github.com/users/americogobbo/following{/other_user}","gists_url":"https://api.github.com/users/americogobbo/gists{/gist_id}","starred_url":"https://api.github.com/users/americogobbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/americogobbo/subscriptions","organizations_url":"https://api.github.com/users/americogobbo/orgs","repos_url":"https://api.github.com/users/americogobbo/repos","events_url":"https://api.github.com/users/americogobbo/events{/privacy}","received_events_url":"https://api.github.com/users/americogobbo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mypaint/mypaint/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-23T17:26:41Z","updated_at":"2015-05-23T18:01:23Z","closed_at":null,"body":"#### Description\r\nBug Detected when you try to use the new icons features (Pick color and Pick brushstroke...) on status bar.\r\n\r\n#### Steps to reproduce\r\n\r\nOpen MyPaint\r\nCreate a new document\r\nPaint something or with empty canvas (the error is always present)\r\nPick on icons => \"Pick color\" or \"Pick brushstroke settings...\"\r\n\r\n#### Traceback\r\n\r\n```python\r\nMypaint version: 1.2.0-alpha.20150522+git.ea85620\r\nSystem information: Linux-3.16.0-38-generic-x86_64-with-Ubuntu-14.04-trusty\r\nTraceback (most recent call last):\r\n  File \"/home/jag/installs/mypaint/gui/picker.py\", line 228, _start_grab(self=<gui.picker.ContextPickingGrabPresenter object>, device=<gtk.gdk.X11DeviceXI2 object at 0x7f1124455fa0 (GdkX11DeviceXI2 at 0x2f26220)>, time=7778791L, inibutton=None)\r\n            assert (int(owner.get_events() & self._GRAB_MASK) == int(self._GRAB_MASK)), \\\r\n                \"Grab owner's events must match %r\" % (self._GRAB_MASK,)\r\n  variables: {'self._GRAB_MASK': ('local', <flags GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK of type GdkEventMask>)}\r\nAssertionError: Grab owner's events must match <flags GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK of type GdkEventMask>\r\n```"},"comment":{"url":"https://api.github.com/repos/mypaint/mypaint/issues/comments/104931335","html_url":"https://github.com/mypaint/mypaint/issues/324#issuecomment-104931335","issue_url":"https://api.github.com/repos/mypaint/mypaint/issues/324","id":104931335,"user":{"login":"achadwick","id":61299,"avatar_url":"https://avatars.githubusercontent.com/u/61299?v=3","gravatar_id":"","url":"https://api.github.com/users/achadwick","html_url":"https://github.com/achadwick","followers_url":"https://api.github.com/users/achadwick/followers","following_url":"https://api.github.com/users/achadwick/following{/other_user}","gists_url":"https://api.github.com/users/achadwick/gists{/gist_id}","starred_url":"https://api.github.com/users/achadwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achadwick/subscriptions","organizations_url":"https://api.github.com/users/achadwick/orgs","repos_url":"https://api.github.com/users/achadwick/repos","events_url":"https://api.github.com/users/achadwick/events{/privacy}","received_events_url":"https://api.github.com/users/achadwick/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T18:01:23Z","updated_at":"2015-05-23T18:01:23Z","body":"Okay, that's interesting. What DE are you running please?\r\n\r\nCan you patch with\r\n\r\n```diff\r\ndiff --git a/gui/picker.py b/gui/picker.py\r\nindex 2313795..cbf0981 100644\r\n--- a/gui/picker.py\r\n+++ b/gui/picker.py\r\n@@ -221,9 +221,7 @@ class PickingGrabPresenter (object):\r\n         assert window is not None\r\n \r\n         # Ensure that it'll receive termination events.\r\n-        # Perhaps could just do\r\n-        #     owner.add_events(self._GRAB_MASK)\r\n-        # here? It may be unnecessary though. Um.\r\n+        owner.add_events(self._GRAB_MASK)\r\n         assert (int(owner.get_events() & self._GRAB_MASK) == int(self._GRAB_MASK)), \\\r\n             \"Grab owner's events must match %r\" % (self._GRAB_MASK,)\r\n````\r\n\r\ntemporarily to see if it makes the issue go away? Thanks.\r\n\r\n"}}