William Hua
6f340d4384
mir: warning clean-up
2015-10-27 10:50:18 -04:00
Robert Ancell
aefa1ba611
gdk: Deprecate gdk_display_get_screen
2015-10-27 14:17:52 +13:00
William Hua
af5792f141
mir: support more pixel formats
2015-10-14 09:21:41 +01:00
William Hua
bd71b801de
mir: don't ensure_surface if window not visible
2015-07-15 07:43:55 -04:00
William Hua
064f28fcbc
mir: don't warn if transient_for is NULL
2015-07-15 07:43:55 -04:00
William Hua
2d223facdc
mir: ensure parent surface before creating child surface
2015-07-03 13:48:13 -04:00
William Hua
2374a1b50b
mir: remove non-useful logging
2015-06-23 13:17:28 -04:00
William Hua
19f66c781f
mir: don't need dummy egl surface
2015-06-23 13:17:28 -04:00
William Hua
be068607f6
mir: emit configure event on window move/resize
...
Without this, some windows don't restart the paint clock needed to
actually render the contents.
2015-06-23 13:17:27 -04:00
William Hua
9800d83a72
mir: fix build due to missing api
2015-06-23 13:17:27 -04:00
William Hua
f1c11740c1
mir: gdk_mir_window_impl_set_surface_type
2015-06-02 15:14:27 -04:00
William Hua
e1c958e70d
mir: Create the correct surface
2015-06-02 15:14:27 -04:00
William Hua
a57636f057
mir: Remove redundant calls
2015-06-02 15:14:27 -04:00
William Hua
e6b3bae787
mir: Resolve warnings
2015-06-02 15:14:27 -04:00
William Hua
d43f5258ff
mir: Remove child window rendering hack
2015-06-02 15:14:26 -04:00
William Hua
ea190a339a
mir: fix build failure due to changed api
2015-04-30 12:41:33 -04:00
William Hua
61f3399f98
mir: Fix build failure due to changed API
...
mir_surface_set_event_handler() now takes three arguments.
2015-04-07 10:38:22 -04:00
Emmanuele Bassi
022724aa69
gl: Drop profile for gdk_window_create_gl_context()
...
Now that we have a two-stages GL context creation sequence, we can move
the profile to a pre-realize option, like the debug and forward
compatibility bits, or the GL version to use.
2015-02-12 12:34:28 +00:00
Marco Trevisan (Treviño)
ce31df3238
mir: Switch GDK_GL_PROFILE_DEFAULT to mean 3_2_CORE
...
Instead of LEGACY.
2015-02-12 03:32:11 +01:00
Marco Trevisan (Treviño)
f9503ac189
mir, GL: Split GL context creation in two phases
...
Move egl_context initialization in gdk_gl_context_realize
• gdk_window_create_gl_context() creates a GdkGLContext
• gdk_gl_context_realize() creates the underlying resources
https://bugzilla.gnome.org/show_bug.cgi?id=741946
2015-02-12 03:03:18 +01:00
William Hua
0a64a4f3c0
mir: release surface before rendering parent
...
We should remove the mir and cairo surface before rendering the
transient_for, which will regenerate the cairo surface anyways.
Otherwise, we end up releasing both, when we only really want to get rid
of the mir surface.
2015-02-05 17:26:19 +01:00
William Hua
85c5f6058a
mir: don't always request mir surfaces
...
Some child window behaviour is faked by painting in the parent, so we
don't bother creating the Mir surface in that case.
2015-02-05 17:26:19 +01:00
William Hua
bee39d2251
mir: reconstruct surface if window is moved
2015-02-05 17:26:19 +01:00
William Hua
16b250f9bb
mir: stop using deprecated surface api
2015-02-05 17:26:19 +01:00
William Hua
5eacc92ba7
mir: fix issues with mouse over parent menu
...
Mouse over a parent menu[bar] didn't work while the menu was open.
The fix was to correct the behaviour of pointer crossing events so that
the pointer appears to be only inside one window at a time.
See: http://tronche.com/gui/x/xlib/events/window-entry-exit/normal.html
2015-02-05 17:26:19 +01:00
William Hua
6a3904cf0c
mir: add back window hierarchy functions
2015-02-05 17:26:19 +01:00
William Hua
c2afa674e2
mir: stop forwarding motion events to subwindows
2015-02-05 17:26:19 +01:00
William Hua
901bc2957d
mir: generate leave events for transient children
2015-02-05 17:26:19 +01:00
Marco Trevisan (Treviño)
9a84c3e0f5
mir: only paint background if window has one
2015-02-05 17:26:18 +01:00
William Hua
e843d94405
mir: only render non-top-level transients.
2015-02-05 17:26:18 +01:00
William Hua
5ac5f6f81a
mir: reset cursor_inside on hide/withdraw
...
Without this, we generate incorrect crossing events for transient
windows.
2015-02-05 17:26:18 +01:00
William Hua
8e0abb4bac
mir: disable some debug output
2015-02-05 17:26:18 +01:00
William Hua
4f19be1c82
mir: skip windows that aren't visible
2015-02-05 17:26:18 +01:00
William Hua
f1cfd23cd2
mir: pass motion events down to transient children
2015-02-05 17:26:17 +01:00
Jasper St. Pierre
8976e84ded
gdkwindow: Don't pass the region to the impl when beginning a paint
...
It's unused. At the same time, rename "begin_paint_region" to
"begin_paint". This will help us clean up how GDK painting works
in the future to allow more creative use of double-buffering.
2014-11-22 08:08:34 -08:00
Marco Trevisan (Treviño)
1730bb0e81
mir: initialize surface name with program name
2014-11-21 04:46:47 +01:00
Marco Trevisan (Treviño)
f5d96f7110
mir: use proper naming for mir window type checking macro
2014-11-20 05:51:12 +01:00
Marco Trevisan (Treviño)
99d849412b
mir: add public getter for the internal MirSurface
2014-11-20 04:41:45 +01:00
Marco Trevisan (Treviño)
6e9db05601
mir: add OpenGL support
...
Implement GdkGLContext using EGL and use hardware mir surfaces
when a GdkWindow uses gl rendering.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=740346
2014-11-20 04:33:38 +01:00
Marco Trevisan (Treviño)
e0e46a4f6b
mir: update surface type based on events
2014-11-17 17:23:36 +01:00
Marco Trevisan (Treviño)
f5c5e9385e
mir: handle more surface types
2014-11-14 23:19:15 +01:00
Marco Trevisan (Treviño)
c42146d88c
mir: get/set window surface type
2014-11-13 04:42:48 +01:00
Marco Trevisan (Treviño)
c7e7e35083
mir: don't request more surface formats than the supported ones
2014-11-13 03:59:29 +01:00
Ryan Lortie
ec729d0649
mir: rework cursors a bit
...
Store the cursor name on the cursor (rather than always using its type).
Use this when setting a cursor on a surface.
The mir server will fallback to using standard cursors from the cursor
theme if the name used is not one of those defined by mir, which is more
or less what we want to happen here in case of creating a cursor by
name.
2014-11-06 16:18:53 -05:00
William Hua
2fdb266c0d
mir: set cursor
2014-11-06 16:18:53 -05:00
Robert Ancell
0f26b26f1d
Gdk: add an experimental backend for mir
...
This is disabled by default. Enable with --enable-mir-backend.
This backend is a combined work of Robert Ancell and Ryan Lortie.
2014-10-22 11:17:15 -05:00