From c2f92bb29d2be8390b1bfb17890b9c925fd59b0b Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 15 Jun 2006 23:41:05 +0000 Subject: [PATCH] glx wants to run windows in app thread --- panda/src/glxdisplay/glxGraphicsPipe.cxx | 13 +++++++++++++ panda/src/glxdisplay/glxGraphicsPipe.h | 3 +++ 2 files changed, 16 insertions(+) diff --git a/panda/src/glxdisplay/glxGraphicsPipe.cxx b/panda/src/glxdisplay/glxGraphicsPipe.cxx index e7117b28fd..aeec5f9689 100644 --- a/panda/src/glxdisplay/glxGraphicsPipe.cxx +++ b/panda/src/glxdisplay/glxGraphicsPipe.cxx @@ -166,6 +166,19 @@ pipe_constructor() { return new glxGraphicsPipe; } +//////////////////////////////////////////////////////////////////// +// Function: glxGraphicsPipe::get_preferred_window_thread +// Access: Public, Virtual +// Description: Returns an indication of the thread in which this +// GraphicsPipe requires its window processing to be +// performed: typically either the app thread (e.g. X) +// or the draw thread (Windows). +//////////////////////////////////////////////////////////////////// +GraphicsPipe::PreferredWindowThread +glxGraphicsPipe::get_preferred_window_thread() const { + return PWT_app; +} + //////////////////////////////////////////////////////////////////// // Function: glxGraphicsPipe::make_output // Access: Protected, Virtual diff --git a/panda/src/glxdisplay/glxGraphicsPipe.h b/panda/src/glxdisplay/glxGraphicsPipe.h index 6c0d625c17..83fdc99d91 100644 --- a/panda/src/glxdisplay/glxGraphicsPipe.h +++ b/panda/src/glxdisplay/glxGraphicsPipe.h @@ -105,6 +105,9 @@ public: INLINE Cursor get_hidden_cursor(); +public: + virtual PreferredWindowThread get_preferred_window_thread() const; + public: // Atom specifications. Atom _wm_delete_window;