lp://staging/~brandontschaefer/nux/base-window-x-input-window-wm-updates
- Get this branch:
- bzr branch lp://staging/~brandontschaefer/nux/base-window-x-input-window-wm-updates
Branch merges
Branch information
Recent revisions
- 764. By Brandon Schaefer
-
* Add functions to change BaseWindows/
XInputWindows to:
STATE_FULLSCREEN, and TYPE_NORMAL. This is to be used later
to fix the dash/hud stacking order in unity. - 762. By Sam Spilsbury
-
Skip the composition key tests if the server doesn't support it so that
we don't SIGABRT when trying to use that functionality (LP: #1112321). Fixes: https://bugs.launchpad .net/bugs/ 1112321. Approved by Brandon Schaefer.
- 761. By Sam Spilsbury
-
Implement a message-passing system in nux::WindowThread and nux::ProgramFra
mework. This makes it possible to define and implement protocols for WindowThreads to
communicate with each other in a thread-safe way without having to resort to
using window system events or the like.New file descriptors can be added for watching with a watch-callback executed
inside the window thread with nux::WindowThread::WatchFdForE vents. Only
read-data is supported right now.When there is new data available to be read, the provided FdWatchCallback will
be called by the window thread, and executed inside the window thread. From
there, clients can safely modify data contained by the WindowThread object.Remove a watched file descriptor with UnwatchFd.
It is safe to add file descriptors for watching during the call to the provided
ThreadUserInitFunc in CreateGUIThread. This is because the main loop
implementation must be created before those file descriptors are added for
watching (particularly in the case of GLib, because nux::WindowThread::InitGlibLoo p
will use the default GMainContext the first time it is called, and then create
a new one for each window thereafter.Added three new tests to demonstrate and cover this functionality.
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from TestWindowThread
[ RUN ] TestWindowThread.WatchFd
[ OK ] TestWindowThread.WatchFd (3213 ms)
[ RUN ] TestWindowThread.MultiWatchFd
[ OK ] TestWindowThread.MultiWatchFd (3163 ms)
[ RUN ] TestWindowThread.OneFdEvent
[ OK ] TestWindowThread.OneFdEvent (3155 ms)
[----------] 3 tests from TestWindowThread (9532 ms total)[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran. (9532 ms total)
[ PASSED ] 3 tests.Fixed segfaulting test xtest-text-input. That test unsafely mutated object
state contained by the WindowThread running in another thread inside of the
test thread. This resulted in a null pointer dereference because it had a
side effect of calling nux::GetWindowThread () which relies on up-to-date
thread-local-storage. That test now defines a protocol to communicate to
the running program to mutate the relevant state, and then communicate back
when it has completed execution.(LP: #1097281)
. Fixes: https://bugs.launchpad .net/bugs/ 1097281. Approved by Brandon Schaefer.
- 759. By Eleni Maria Stea
-
moved the debug function that saves textures to disk to the IOpenGLBaseTexture class.
Approved by Mirco Müller, Eleni Maria Stea.
- 758. By Eleni Maria Stea
-
added a function that saves the IOpenGLTexture2D pixels in ppm format to make debug easier.
Approved by Mirco Müller, Eleni Maria Stea.
- 756. By Ricardo Salveti
-
gtest.m4: avoid using AC_CHECK_FILES because it breaks cross-compilation.
Approved by Stephen M. Webb.
- 755. By Daniel d'Andrada
-
Fix "make check" when geis is located outside /usr.
Approved by Stephen M. Webb.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/nux