[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request 125655: Xembed SNI Proxy
From: "David Rosca" <nowrep () gmail ! com>
Date: 2015-10-16 14:27:13
Message-ID: 20151016142713.1403.46219 () mimi ! kde ! org
[Download RAW message or body]
--===============0029285936065846363==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
> On Oct. 16, 2015, 1:59 p.m., Marco Martin wrote:
> > xembedsniproxy/sniproxy.cpp, line 274
> > <https://git.reviewboard.kde.org/r/125655/diff/1/?file=411304#file411304line274>
> >
> > else?
>
> David Edmundson wrote:
> ah yes, forgot to finish that
>
> Does anyone have a mouse with a horizontal scroll? If so can you open "xev" and \
> tell me what button index is for left and right?
> The XCB docs are particularly unhelpful:
>
> >
> > XCB_BUTTON_INDEX_4
> > Scroll wheel. TODO: direction?
> >
> > XCB_BUTTON_INDEX_5
> > Scroll wheel. TODO: direction?
>
> from
> http://stuff.onse.fi/man?program=xcb_grab_button_checked§ion=3
>
> Thanks XCB!
>
> Marco Martin wrote:
> emulating it with the touchpad (enabling horizontal edge scrolling) tells me button \
> 6 and 7. a real mouse with an horizontal wheel.. no idea if i ever seen one ;)
>
> David Edmundson wrote:
> that's left == 6 right ==7 ?
It is button 6 and 7, indeed. I have a mouse with horizontal scrolling (that is I can \
push the wheel to left/right to scroll) :)
- David
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125655/#review86919
-----------------------------------------------------------
On Oct. 16, 2015, 11:22 a.m., David Edmundson wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125655/
> -----------------------------------------------------------
>
> (Updated Oct. 16, 2015, 11:22 a.m.)
>
>
> Review request for Plasma.
>
>
> Repository: plasma-workspace
>
>
> Description
> -------
>
> The goal of this project is to make xembed system trays available in Plasma.
>
> This is to allow legacy apps (xchat, pidgin, tuxguitar) etc. system trays[1] \
> available in Plasma which only supports StatusNotifierItem [2].
> Ideally we also want this to work in an xwayland session, making X system tray \
> icons available even when plasmashell only has a wayland connection.
> How it works (in theory)
>
> * We register a window as a system tray container
> * We render embeded windows composited offscreen
> * We render contents into an image and send this over DBus via the SNI protocol
> * XDamage events trigger a repaint
> * Activate and context menu events are replyed via X send event into the embedded \
> container as left and right clicks
>
> Code is a mix of hacks and bodges bashing client apps into place, and I happily \
> acknowledge it looks pretty bad. Unfotunately most of it seems to be needed, but \
> I'd love to be proved wrong on most of it.
> ---
>
> CMakeLists changes are obviously currently wrong, I can strip half of find_packages \
> and I need an add_subdirectory in the root file, but it's easier for me to sync \
> with the separate repo mirror this way till we're close to merging. I expect this \
> to take quite some revisions.
>
> Diffs
> -----
>
> xembedsniproxy/CMakeLists.txt PRE-CREATION
> xembedsniproxy/Readme.md PRE-CREATION
> xembedsniproxy/fdoselectionmanager.h PRE-CREATION
> xembedsniproxy/fdoselectionmanager.cpp PRE-CREATION
> xembedsniproxy/main.cpp PRE-CREATION
> xembedsniproxy/org.kde.StatusNotifierItem.xml PRE-CREATION
> xembedsniproxy/org.kde.StatusNotifierWatcher.xml PRE-CREATION
> xembedsniproxy/snidbus.h PRE-CREATION
> xembedsniproxy/snidbus.cpp PRE-CREATION
> xembedsniproxy/sniproxy.h PRE-CREATION
> xembedsniproxy/sniproxy.cpp PRE-CREATION
> xembedsniproxy/xcbutils.h PRE-CREATION
> xembedsniproxy/xembedsniproxy.desktop PRE-CREATION
>
> Diff: https://git.reviewboard.kde.org/r/125655/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> David Edmundson
>
>
--===============0029285936065846363==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;"> \
<tr> <td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/125655/">https://git.reviewboard.kde.org/r/125655/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On October 16th, 2015, 1:59 p.m. UTC, <b>Marco \
Martin</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;"> <thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;"> <a \
href="https://git.reviewboard.kde.org/r/125655/diff/1/?file=411304#file411304line274" \
style="color: black; font-weight: bold; text-decoration: \
underline;">xembedsniproxy/sniproxy.cpp</a> <span style="font-weight: normal;">
(Diff revision 1)
</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th> <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td> <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">274</font></th> <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span \
class="p">}</span> <span class="k">else</span> <span class="p">{</span></pre></td> \
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">else?</p></pre> </blockquote>
<p>On October 16th, 2015, 2:14 p.m. UTC, <b>David Edmundson</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">ah \
yes, forgot to finish that</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">Does anyone have a mouse with a \
horizontal scroll? If so can you open "xev" and tell me what button index is for left \
and right?</p> <p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">The XCB docs are particularly unhelpful:</p> \
<blockquote style="text-rendering: inherit;padding: 0 0 0 1em;border-left: 1px solid \
#bbb;white-space: normal;margin: 0 0 0 0.5em;line-height: inherit;"> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;"><div class="codehilite" style="background: #f8f8f8"><pre \
style="line-height: 125%"> XCB_BUTTON_INDEX_4 Scroll wheel. TODO: \
direction?
XCB_BUTTON_INDEX_5
Scroll wheel. TODO: direction?
</pre></div>
</p>
</blockquote>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">from \
http://stuff.onse.fi/man?program=xcb_grab_button_checked&section=3</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">Thanks XCB!</p></pre> </blockquote>
<p>On October 16th, 2015, 2:20 p.m. UTC, <b>Marco Martin</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">emulating it with the touchpad (enabling horizontal edge scrolling) tells \
me button 6 and 7. a real mouse with an horizontal wheel.. no idea if i ever seen one \
;)</p></pre> </blockquote>
<p>On October 16th, 2015, 2:26 p.m. UTC, <b>David Edmundson</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">that's left == 6 right ==7 ?</p></pre> </blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">It is button 6 and 7, indeed. I have a mouse with horizontal scrolling \
(that is I can push the wheel to left/right to scroll) :)</p></pre> <br />
<p>- David</p>
<br />
<p>On October 16th, 2015, 11:22 a.m. UTC, David Edmundson wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;"> <tr>
<td>
<div>Review request for Plasma.</div>
<div>By David Edmundson.</div>
<p style="color: grey;"><i>Updated Oct. 16, 2015, 11:22 a.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
plasma-workspace
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">The goal of this project is to make xembed system \
trays available in Plasma.</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">This is to allow legacy apps (xchat, \
pidgin, tuxguitar) etc. system trays[1] available in Plasma which only supports \
StatusNotifierItem [2].</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">Ideally we also want this to work in an \
xwayland session, making X system tray icons available even when plasmashell only has \
a wayland connection.</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">How it works (in theory)</p> <ul \
style="padding: 0;text-rendering: inherit;margin: 0 0 0 1em;line-height: \
inherit;white-space: normal;"> <li style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: normal;">We register a window as a system tray \
container</li> <li style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: normal;">We render embeded windows composited offscreen</li> <li \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;">We render contents into an image and send this over DBus via the SNI \
protocol</li> <li style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: normal;">XDamage events trigger a repaint</li> <li \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;">Activate and context menu events are replyed via X send event into the \
embedded container as left and right clicks</li> </ul>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Code is a mix of hacks and bodges bashing client apps \
into place, and I happily acknowledge it looks pretty bad. Unfotunately most of it \
seems to be needed, but I'd love to be proved wrong on most of it.</p> <hr \
style="text-rendering: inherit;margin: 0;padding: 0;white-space: normal;border: 1px \
solid #ddd;line-height: inherit;" /> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">CMakeLists changes are \
obviously currently wrong, I can strip half of find_packages and I need an \
add_subdirectory in the root file, but it's easier for me to sync with the separate \
repo mirror this way till we're close to merging. I expect this to take quite some \
revisions.</p></pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>xembedsniproxy/CMakeLists.txt <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/Readme.md <span style="color: grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/fdoselectionmanager.h <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/fdoselectionmanager.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/main.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/org.kde.StatusNotifierItem.xml <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/org.kde.StatusNotifierWatcher.xml <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/snidbus.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/snidbus.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/sniproxy.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/sniproxy.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/xcbutils.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>xembedsniproxy/xembedsniproxy.desktop <span style="color: \
grey">(PRE-CREATION)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/125655/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
--===============0029285936065846363==--
[Attachment #3 (text/plain)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic