<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: How do I assign mouse input to the proper window with multiple GLX windows?</title>
      <link>http://ask.metafilter.com/59237/How-do-I-assign-mouse-input-to-the-proper-window-with-multiple-GLX-windows/</link>
      <description>Comments on Ask MetaFilter post How do I assign mouse input to the proper window with multiple GLX windows?</description>
	  	  <pubDate>Thu, 22 Mar 2007 23:06:08 -0800</pubDate>
      <lastBuildDate>Thu, 22 Mar 2007 23:06:08 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: How do I assign mouse input to the proper window with multiple GLX windows?</title>
  	<link>http://ask.metafilter.com/59237/How-do-I-assign-mouse-input-to-the-proper-window-with-multiple-GLX-windows</link>	
  	<description>How do I assign mouse input to the proper window with multiple GLX windows? &lt;br /&gt;&lt;br /&gt; Hello,&lt;br&gt;
  I am programming an application that can render to several possible types of windows (GLUT, MFC, etc.) depending on platform. It is configured so that multiple windows can be displayed simultaneously. &lt;br&gt;
  I am having some trouble adding GLX window support under Linux. I can set up multiple windows and display different content on each: that works just fine. But if someone clicks on a window, I don&apos;t know how to assign the click to the proper window (though I can register its location in x, y coords). I&apos;m having a hard time finding documentation (or a tutorial) that helps with this issue. Does anyone know where I can find some good information online?&lt;br&gt;
  For now, all of the windows are on the same display.&lt;br&gt;
  Also, it is important that this be done with GLX windows, so please do not suggest that I just use GLUT and be done with it.&lt;br&gt;
  Thank you.</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.59237</guid>
  	<pubDate>Thu, 22 Mar 2007 21:19:20 -0800</pubDate>
  	<dc:creator>Java_Man</dc:creator>
	
	<category>xwindows</category>
	
	<category>glx</category>
	
	<category>programming</category>
	
	<category>windows</category>
	
	<category>glut</category>
	
	<category>linux</category>
	
</item>
<item>
  	<title>By: paulsc</title>
  	<link>http://ask.metafilter.com/59237/How-do-I-assign-mouse-input-to-the-proper-window-with-multiple-GLX-windows#890767</link>	
  	<description>You may need to implement a socket mechanism to ensure Java calls are sent to the GLX application&apos;s main processing thread, as sockets are one reliable way for inter-application processing to occur with GLX. See &lt;a href=&quot;http://java.sun.com/developer/technicalArticles/Programming/embedjava/&quot;&gt;Listing 4 of this page&lt;/a&gt; for example code. Then, focus calls back to GLX via the messaging socket should do the trick.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.59237-890767</guid>
  	<pubDate>Thu, 22 Mar 2007 23:06:08 -0800</pubDate>
  	<dc:creator>paulsc</dc:creator>
</item>
<item>
  	<title>By: Java_Man</title>
  	<link>http://ask.metafilter.com/59237/How-do-I-assign-mouse-input-to-the-proper-window-with-multiple-GLX-windows#890849</link>	
  	<description>I should have specified that--despite my handle--this is all being implemented in C++.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.59237-890849</guid>
  	<pubDate>Fri, 23 Mar 2007 05:05:19 -0800</pubDate>
  	<dc:creator>Java_Man</dc:creator>
</item>
<item>
  	<title>By: jepler</title>
  	<link>http://ask.metafilter.com/59237/How-do-I-assign-mouse-input-to-the-proper-window-with-multiple-GLX-windows#890949</link>	
  	<description>There&apos;s a field called &apos;window&apos; in most X event structures, such as XButtonEvent and XMotionEvent.  Use it.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.59237-890949</guid>
  	<pubDate>Fri, 23 Mar 2007 07:58:56 -0800</pubDate>
  	<dc:creator>jepler</dc:creator>
</item>

    </channel>
</rss>
