Nux

lp:~brandontschaefer/nux/base-window-x-input-window-wm-updates

Created by Brandon Schaefer on 2013-03-14 and last modified on 2013-03-14
Get this branch:
bzr branch lp:~brandontschaefer/nux/base-window-x-input-window-wm-updates
Only Brandon Schaefer can upload to this branch. If you are Brandon Schaefer please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Brandon Schaefer
Project:
Nux
Status:
Development

Recent revisions

764. By Brandon Schaefer on 2013-03-14

* 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.

763. By PS Jenkins bot on 2013-02-26

Releasing 4.0.0daily13.02.26-0ubuntu1 to ubuntu.

Approved by PS Jenkins bot.

762. By Sam Spilsbury on 2013-02-25

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 on 2013-02-25

Implement a message-passing system in nux::WindowThread and nux::ProgramFramework.

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::WatchFdForEvents. 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::InitGlibLoop
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.

760. By PS Jenkins bot on 2013-02-19

Releasing 4.0.0daily13.02.19-0ubuntu1 to ubuntu.

Approved by PS Jenkins bot.

759. By Eleni Maria Stea on 2013-02-14

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 on 2013-02-08

added a function that saves the IOpenGLTexture2D pixels in ppm format to make debug easier.

Approved by Mirco Müller, Eleni Maria Stea.

757. By PS Jenkins bot on 2013-02-04

Releasing 4.0.0daily13.02.04-0ubuntu1 to ubuntu.

Approved by PS Jenkins bot.

756. By Ricardo Salveti on 2013-01-29

gtest.m4: avoid using AC_CHECK_FILES because it breaks cross-compilation.

Approved by Stephen M. Webb.

755. By Daniel d'Andrada on 2013-01-29

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:nux
This branch contains Public information 
Everyone can see this information.

Subscribers