Jani Välimaa
44b287a4ae
Ensure broadway backend links when using as-needed linking
...
Error message at:
http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20130617185755.wally.valstar.6794/log/gtk+3.0-3.9.4-1.mga4/build.0.20130617185804.log
<ovitters> mclasen_:
http://svnweb.mageia.org/packages/cauldron/gtk%2B3.0/current/SOURCES/gtk%2B-3.9.4-linking.patch?revision=444164&view=markup
<ovitters> mclasen_: gtk doesn't seem to link properly on Mageia
(as-needed thing probably)
<mclasen_> sure, looks fine
<ovitters> can I commit this?
<mclasen_> yes, please commit
2013-06-17 21:55:30 +02:00
Tarnyko
53a9311e2c
broadway: Add win32 support
2013-06-13 19:35:43 +02:00
Tarnyko
e2da2259ad
broadway: Support TCP displays
2013-06-13 19:12:46 +02:00
Tarnyko
d4dacc596f
broadway: Only use gio-unix on G_OS_UNIX
2013-06-13 18:15:10 +02:00
Tarnyko
050702494b
broadway: Remove unused includes
2013-06-13 18:09:32 +02:00
Tarnyko
b20d949470
broadway: Add configure checks for sys/mman.h
2013-06-13 18:01:44 +02:00
Alexander Larsson
19560bf0d4
gdkwindow: Remove translate vfunc
...
This is not used anymore
2013-05-07 16:33:00 +02:00
Matthias Clasen
8af16c5d44
New visibility handling in gdk
...
Change the visibility handling to be the same way we do it in
GLib now. We pass -fvisibility=hidden to gcc and decorate public
functions with __attribute__((visibility("default"))).
This commit just does this for GDK, GTK+ will follow later.
2013-05-05 15:38:48 -04:00
Matthias Clasen
ca81028901
Add GDK_AVAILABLE_IN_ALL annotations in gdk
...
This is in preparation to modernizing our handing
of exported symbols.
2013-05-05 15:38:46 -04:00
Benjamin Otte
d67880bf72
broadway: Remove displaymanager implementation
...
This is an API break, but the broadway backend is unsupported, so we can
get away with it.
2013-05-02 16:15:22 +02:00
Benjamin Otte
a6a4428f23
gdk: Unvfuncify gdk_display_manager_open_display()
...
This looks like a pretty stupid patch, but it's only a step towards the
ultimate end goal: Get rid of all the displaymanagers.
2013-04-19 16:23:43 -04:00
Benjamin Otte
c1607c14d5
broadway: Get rid of generic macros
...
Use existing API instead.
2013-04-19 16:18:25 -04:00
Benjamin Otte
f345051d36
displaymanager: Emit display-opened directly
...
Instead of letting every backend do it manually.
2013-04-19 16:18:25 -04:00
Benjamin Otte
065a8da87a
gdk: Refactor default key vfuncs
...
Instead of copying them all over the place, keep a default
implementation around.
2013-04-16 15:30:14 +02:00
Benjamin Otte
1651d9ac3e
broadway: Delete 2 files doing nothing
...
A function was doing nothing but calling a function that was in its own
source file doing nothing but calling a function in its own source file
that did nothing.
2013-04-16 15:30:14 +02:00
Benjamin Otte
aa9e974c86
gdk: Make atoms handled generically
...
This is another step towards making GdkDisplayManager backend-agnostic.
Most of the backends profit from this as their atom implementations
where generic anyway - x11 needed that to allow multiple X displays and
broadway, quartz and wayland don't have the concept of displays.
The X11 backend still did things, so I only #if 0'd some code but did
not actually update anything.
2013-04-15 15:43:27 +02:00
Benjamin Otte
7ef508ff4a
displaymanager: Handle list of displays in base class
...
This moves the add/remove_display() functions from the subclasses to
GdkDisplay and GdkDisplayManager. It also gets rid of the list_displays
vfunc.
2013-04-15 15:43:26 +02:00
Benjamin Otte
839f402191
displaymanager: Handle the default display
...
... instead of having every backend do it on their own.
2013-04-15 15:43:26 +02:00
Alexander Larsson
9a79c3d643
broadway: Unsure we clear the grab on window hide
2013-04-05 17:07:04 +02:00
Alexander Larsson
a6a768437d
broadway: Fix warning
...
Don't pass NULL source_device in grab/ungrab events
2013-04-05 17:07:03 +02:00
Alexander Larsson
8084e6e468
broadway: Ensure we allocate shm surface space early
...
This is nicer then getting random sigbus later
2013-04-03 15:58:42 +02:00
Alexander Larsson
c340dfeaf8
Broadway: Fix shm names
...
We were sometimes getting zero chars in the name, making them
shorter, due to an off-by-zero in the size.
2013-04-03 15:58:41 +02:00
Alexander Larsson
b7a1561fef
broadway: destroy old surface before creating new one
...
We were not using the old one anyway, and this may in some cases
use less memory (although in most cases the server has a ref to the
surface anyway).
2013-04-03 15:58:40 +02:00
Benjamin Otte
a55f1f4e95
broadway: Mark deprecated function call
...
... to avoid gcc warning us. Ideally, we'd not call a deprecated
function here, but I'm lazy.
2013-04-02 11:45:44 +02:00
Benjamin Otte
dc132a9895
broadway: Don't use deprecated API
2013-04-02 11:45:44 +02:00
Benjamin Otte
a6b29d73d7
gdkdisplay: Remove get_screen() and get_n_screens() vfuncs
2013-04-02 11:45:44 +02:00
Alexander Larsson
40c3062d33
broadway: Use wss: on https: uris
2013-04-01 17:44:33 +02:00
Alexander Larsson
e9b8b5c1f0
broadway: Reuse surfaces passed to server
...
This way we don't have to reopen all the time for pure updates,
and we can immediately unlink the shm file to avoid "leaking" them
on improper shutdown.
2013-03-29 14:09:47 +01:00
Alexander Larsson
c6baa9bc25
broadway: Move surface open to server
...
This way we can cache the last opened surface
2013-03-29 14:09:47 +01:00
Alexander Larsson
6ef8589a51
broadway: Make chrome work again
2013-03-29 14:09:47 +01:00
Alexander Larsson
8289f4cdc9
broadway: Add support for password authentication
2013-03-29 14:09:47 +01:00
Alexander Larsson
1148a375e5
broadway: Limit window resize based on window geometry
2013-03-29 14:09:47 +01:00
Alexander Larsson
71b4557210
broadway: Sync surface updates with paint clock
...
We now only update surface data after we have painted. Before we painted
in an idle, which meant we might send black data some times if we e.g.
resized the window and had not painted yet. Also, it means we're updating
less often to the daemon, saving resources.
We still have to queue a flush in the idle for non-draw operations,
otherwise e.g. resize of a toplevel will never be flushed if the clock
is frozen (e.g. during toplevel resize).
2013-03-29 14:09:47 +01:00
Alexander Larsson
a20cb3dd25
broadway: Ensure window sizes are synched right
...
We don't want to update the window size on configure event, only
the position, as the size is client side controlled. We were
updating to an old size during resizes which causes us to send
surfaces of the wrong size to the daemon.
2013-03-29 14:09:46 +01:00
Alexander Larsson
19e683e62a
broadway: Clean up moveresize code
2013-03-29 14:09:46 +01:00
Alexander Larsson
0129876ed3
broadway: Remove leftover cruft that caused resize to fail
...
getTransientToplevel() doesn't exist anymore so this broke.
2013-03-29 14:09:46 +01:00
Alexander Larsson
e9906138e5
broadway: Fix mouse position typo
2013-03-29 14:09:46 +01:00
Matthias Clasen
38eab78904
broadway: Don't use deprecated gdk_cursor_ref
2013-03-24 14:22:38 -04:00
Matthias Clasen
832c698776
Implement GInitable in GdkBroadwayDisplayManager
...
Add GInitable implementation and fail the initialisation if it is not
possible to set up a broadway server.
2013-03-23 00:48:25 -04:00
Alexander Larsson
8fb60cda19
broadway: Fix assert failure
...
Requests are not limited in size by BroadwayRequest, as
BroadwayRequestTranslation can be of variable size. No need
to copy the request anymore though, because requests are aligned
now.
2013-03-18 16:41:05 +01:00
Alexander Larsson
99cc5758b1
broadway: Ensure broadway request members are 32bit aligned
2013-03-18 16:41:02 +01:00
Benjamin Otte
c7cf937789
broadway: pointer targets differ in signedness
2013-03-01 16:25:14 +01:00
Benjamin Otte
9d55b3c6fd
broadway: variable 'broadway_display' set but not used
2013-03-01 16:25:14 +01:00
Owen W. Taylor
df3e19b449
Broadway/Quartz/Win32: make event source prepare()/check() note paused status
...
When events are paused, we should not return TRUE from prepare() or check().
GTK+ handles this for events that are already in the GTK+ queue, but
we also need suppress checks for events that are in the system queue - if we
return TRUE indicating that there are events in the system queue, then we'll
call dispatch(), and do nothing. The event source will spin, and will never
run the other phases of the paint clock.
(Broadway doesn't have a window system queue separate from the GDK event queue,
but we write the function the same way for consistency.)
https://bugzilla.gnome.org/show_bug.cgi?id=694274
2013-02-21 09:59:58 -05:00
Owen W. Taylor
645b5f398d
Reimplement _NET_WM_SYNC_REQUEST inside X11 backend
...
Deprecate gdk_window_enable_synchronized_configure() and
gdk_window_configure_done() and make them no-ops. Implement the
handling of _NET_WM_SYNC_REQUEST in terms of the frame cycle -
we know that all processing will be finished in the next frame
cycle after the ConfigureNotify is received.
2013-02-14 17:19:51 -05:00
Alexander Larsson
ada20f475d
broadway: Make /dev/shm names nicer
2013-01-10 23:59:23 +01:00
Alexander Larsson
da8ff82df5
broadway: Make Sec-WebSocket-Origin optional
...
Sometimes we get no Origin in the request
2013-01-10 22:50:03 +01:00
Alexander Larsson
2e76e5a543
broadway: Allow binding http server to an ip
2013-01-10 21:38:39 +01:00
Alexander Larsson
befde1f7de
broadway: Remove leftover typedef
2013-01-10 16:00:43 +01:00
Alexander Larsson
5708e2bc2c
broadway: Update TODO
2013-01-08 18:05:06 +01:00
Alexander Larsson
d5812de2e6
broadway: Send window size to new clients
...
Tell all new clients about the current (last sent) window size.
2013-01-08 18:05:06 +01:00
Alexander Larsson
35c295da89
broadway: Don't allow dragging windows above top of window
...
This is highly confusing and makes it impossible to get the windows
back.
2013-01-08 18:05:06 +01:00
Alexander Larsson
8e686357c4
broadway: Move window position ownership to browser
...
With this we always roundtrip position change to the webbrowser.
This avoids conflicts when things change from both directions (app and user).
Also, we fake configure evens when there is no web client to ensure
apps get the events.
2013-01-08 18:05:06 +01:00
Alexander Larsson
4d7b822059
broadway: Make the InputMessage type a uint32
...
That way we don't get any holes in the structs.
2013-01-08 18:05:06 +01:00
Alexander Larsson
f72d1a8d2b
broadway: Fix gdk_broadway_server_wait_for_reply
...
We didn't properly queue an idle to handle the read messages so they
were never serviced in some situations.
2013-01-08 18:05:06 +01:00
Alexander Larsson
6f910e5e02
broadway: Clean up broadwayd event sending code
...
Use the right size and put the client serial in the right place.
2013-01-08 18:05:06 +01:00
Alexander Larsson
c83d35d1df
broadway: Rewrite serials for clients
...
This seems right, but atm it breaks grabs.
2013-01-08 18:05:06 +01:00
Alexander Larsson
71e7912940
broadway: Remove last_serial from BroadwayReplyBase
...
This is not used anyway.
2013-01-08 18:05:05 +01:00
Matthias Clasen
5adecf183b
Move single-include guards inside include guards
...
gcc has optimizations for include guards that only work
if they are outermost in the the header.
https://bugzilla.gnome.org/show_bug.cgi?id=689810
2012-12-28 09:57:56 -05:00
Alexander Larsson
ec45d2f8c7
broadway: Handle NULL surface in update
...
This happen if nothing has been drawn yet.
2012-12-27 22:56:04 +01:00
Alexander Larsson
e00bc73de8
broadway: Rename gdkbroadway-server-client.c to gdkbroadway-server.c
2012-12-27 22:56:04 +01:00
Alexander Larsson
6410a43b76
broadway: Make resize grip work again
2012-12-27 22:56:04 +01:00
Alexander Larsson
aac4a027eb
broadway: Stop default mouse button handling
...
This makes it not possible to select the canvas objects, etc.
2012-12-27 22:56:04 +01:00
Alexander Larsson
9555478b9e
broadway: Add TODO.broadway
2012-12-27 22:56:04 +01:00
Alexander Larsson
f84df03513
broadway: Move broadwayd to bin
2012-12-27 22:56:04 +01:00
Alexander Larsson
63b6c07fe0
broadway: During pointer grabs, send pointer events only to one client
2012-12-27 22:56:04 +01:00
Alexander Larsson
75ee72f2ac
broadway: Make daemon side server "gdk independent".
2012-12-27 22:56:04 +01:00
Alexander Larsson
3558e655b4
broadway: Proper handling of http port and display nr
2012-12-27 22:56:04 +01:00
Alexander Larsson
59830a9001
broadway: Collect and document some TODOs
2012-12-27 22:56:04 +01:00
Alexander Larsson
329372a343
broadway: Track windows for client and kill on client exit
2012-12-27 22:56:04 +01:00
Alexander Larsson
5ee8b69418
broadway: Rename gdkbroadway-server.c to broadway-server.c
...
This way the broadway-*.c namespace is for the daemon and gdk* for the
gdk lib.
2012-12-27 22:56:03 +01:00
Alexander Larsson
8b9ccf4ee9
broadway: rename broadway-server to broadwayd
...
The "server" part is too confusing, there are to many servers around.
2012-12-27 22:56:03 +01:00
Alexander Larsson
e801d06229
broadway: Drop libbroadway.la
...
This is not needed anymore, its just used by the server.
2012-12-27 22:56:03 +01:00
Alexander Larsson
20b79b06ee
broadway: rename broadway.[ch] to broadway-output.[ch]
2012-12-27 22:56:03 +01:00
Alexander Larsson
3005f1b844
broadway: disconnect in idle when needed
...
This makes the ownership cleaner
2012-12-27 22:56:03 +01:00
Alexander Larsson
fc96ef51d7
broadway: Initial version of separate broadway server
...
This kinda works but is very rudimentary
2012-12-27 22:56:03 +01:00
Alexander Larsson
4addb2108e
broadway: Add OPs top protocol
2012-12-27 22:56:03 +01:00
Alexander Larsson
9aa36d8d0d
broadway: Add enum for even types
2012-12-27 22:56:03 +01:00
Alexander Larsson
95a0c055da
broadway: Break out broadway protocol in its own header
2012-12-27 22:56:03 +01:00
Alexander Larsson
dfbabfbd6d
broadway: Use SOURCE operator when scrolling
2012-12-20 00:00:16 +01:00
Alexander Larsson
9e65be6c48
broadway: Allow reconnecting to a broadway page
2012-12-20 00:00:16 +01:00
Alexander Larsson
54714cb228
broadway: Fix possible access-after-free
...
We need to calculate the buf pointer after the realloc.
2012-12-20 00:00:16 +01:00
Alexander Larsson
9c3cd49abd
broadway: Remove separate browser windows hack
...
This never really worked well, we need to be able to fully handle
sizes from the client.
2012-12-20 00:00:16 +01:00
Alexander Larsson
0a808bea54
broadway: Separate out the server parts
...
This (shouldn't) change any behaviour, but it moves the
webserver parts to a separate file, making the broadway display file
smaller and preparing for later separating out the server to its own
process.
2012-12-20 00:00:16 +01:00
Aleksander Morgado
a61b359498
GdkBroadwayDisplay: include proper port number in error trace
2012-12-05 11:23:35 +01:00
Aleksander Morgado
4dabc8ba84
GdkBroadwayDisplay: initialize GError before using it
2012-12-05 11:23:28 +01:00
Jean Parpaillon
247bc3ad69
Fix out of source tree building for gdk/broadway
...
This patch fix compilation when building out of source tree (gdk/broadway dir).
Signed-off-by: Colin Walters <walters@verbum.org>
2012-10-22 11:30:37 -04:00
Alexander Larsson
db374a0a87
broadway: Use binary websockets if available
2012-10-01 14:58:57 +02:00
Alexander Larsson
86bcd1c22c
broadway: Output message data directly to buffer
...
This cleans up the code, as well as allows later format
changes for e.g. binary websockets
2012-10-01 14:58:57 +02:00
Alexander Larsson
17aea12417
broadway: Encode urls directly into message buffer
...
No need for a temporary buffer
2012-10-01 14:58:56 +02:00
Alexander Larsson
95d9b17f35
broadway: Restructure output
...
Now we queue all output commands in a single buffer, to
ensure we send everything in a single op even for v7plus.
2012-10-01 14:58:56 +02:00
Alexander Larsson
203dd8bf7a
broadway: Fix indentation
2012-10-01 14:58:56 +02:00
Alexander Larsson
96e7ff73dd
broadway: Detect binary websockets support
2012-10-01 14:58:56 +02:00
Alexander Larsson
7c87684629
broadway: Centralize cmd parsing
...
This clean up things, as well as prepares for new message formats
such as binary websockets.
2012-10-01 14:58:56 +02:00
Matthias Clasen
144a5687c9
gdk: Don't use GDK_THREADS_ENTER/LEAVE macros internally
...
These are just wrappers for the functions, and we want to
deprecate them. Stopping to use them internally is a good
first step.
2012-07-30 18:01:47 +02:00
Alexander Larsson
859b6888c7
[broadway] Fixup build
...
Seems the return value of device_query_state was removed, it was
TRUE always anyway.
2012-05-11 14:49:15 +02:00
Benjamin Otte
78638f798b
broadway: Fix vfunc prototype
2012-05-07 04:12:29 +02:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Michael Natterer
8c1c4dfd7c
gdk: pull more precondition checks into the generic gdkscreen.c
2012-02-24 16:44:44 +01:00
Michael Natterer
427b88f541
GdkScreen: fix precondition checks in the public API
...
Move g_return_if_fail() stuff from the backends to the public
functions in gdkscreen.c itself, and some fixes for ugly formatting in
the various gdkscreen-backend.c files.
2012-02-21 17:19:35 +01:00