Commit Graph

70 Commits

Author SHA1 Message Date
ff1a78788f mir: always emit a resize when creating windows 2017-03-22 02:44:38 -04:00
16e36e5399 mir: set placement for menu-type windows 2017-03-13 03:52:14 -04:00
f0e3781566 mir: synthesize resize events 2017-03-13 03:52:11 -04:00
e63d4111a4 mir: don't create GDK_INPUT_ONLY windows 2017-03-06 13:12:22 -05:00
6f3d1e1046 mir: deprecate gdk_mir_window_get_mir_surface () 2017-03-01 15:31:54 -05:00
45d33b063f mir: delete commented debug output 2017-03-01 15:31:52 -05:00
7949069b9d mir: migrate away from deprecated mir api 2017-03-01 15:31:41 -05:00
d9947b671a mir: handle surface placement events
This allows the Mir backend to properly emit "moved-to-rect."
2017-01-30 03:40:18 -05:00
14c8e25cb2 mir: use mir_surface_spec_set_placement for menus
This API was added to Mir for GTK menus, combo boxes, etc.
2017-01-30 03:23:50 -05:00
5d7db3246e mir: use modal window hint 2017-01-23 10:58:09 -05:00
5c4c3f1afd mir: copy clipboard data to content-hub
https://bugzilla.gnome.org/show_bug.cgi?id=775732
2017-01-16 17:11:16 -05:00
b6baa088dc mir: implement window properties
https://bugzilla.gnome.org/show_bug.cgi?id=775732
2017-01-16 17:11:16 -05:00
7665ee4208 mir: group DND, tooltips, and notifications with menu-type windows 2016-08-12 11:37:35 -04:00
b2719c0383 Remove outdated comments
https://bugzilla.gnome.org/show_bug.cgi?id=768138
2016-08-11 12:23:38 -04:00
3334e0a21d Use Menus to implement tooltips
The order in which tooltips are created, drawn, shown and then positioned,
always requires repositioning the surface. The tooltip window type only has
limited capability to do so. An alternative could be to use bufferstreams.

https://bugzilla.gnome.org/show_bug.cgi?id=768138
2016-08-11 12:23:38 -04:00
f95d270372 Only apply type hint if it would map to a different mir surface type
Signed-off-by: Andreas Pokorny <andreas.pokorny@canonical.com>
2016-08-10 13:41:27 -04:00
da17eae747 Apply geometry hints to mir surface
Signed-off-by: Andreas Pokorny <andreas.pokorny@canonical.com>
2016-08-10 13:36:38 -04:00
96dcf89155 Apply and forward title changes of gdk windows
Signed-off-by: Andreas Pokorny <andreas.pokorny@canonical.com>
2016-08-10 13:36:38 -04:00
6dfb554558 Only update surface spec when there is no spec change pending 2016-08-10 13:36:38 -04:00
5a8af1af75 Rework window construction - only recreate surface when necessary
Signed-off-by: Andreas Pokorny <andreas.pokorny@canonical.com>
2016-08-10 13:36:38 -04:00
252ccb846f Use the surface output event to keep track of the suggested scale value
The event will be sent when the surface becomes visible on an output. With this change the GdkMirWindowImpl keeps track of the scale value and sends a configure event on change.

Signed-off-by: Andreas Pokorny <andreas.pokorny@canonical.com>
2016-08-10 13:36:38 -04:00
748ebd3d72 mir: implement gdk_window_move_to_rect ()
https://bugzilla.gnome.org/show_bug.cgi?id=756579
2016-07-19 09:38:54 -04:00
acbb0c4bdd mir: fix warnings 2016-02-24 13:24:14 -05:00
594ba3071b mir: fix GdkSeat-related deprecations 2016-02-24 13:23:18 -05:00
6f340d4384 mir: warning clean-up 2015-10-27 10:50:18 -04:00
aefa1ba611 gdk: Deprecate gdk_display_get_screen 2015-10-27 14:17:52 +13:00
af5792f141 mir: support more pixel formats 2015-10-14 09:21:41 +01:00
bd71b801de mir: don't ensure_surface if window not visible 2015-07-15 07:43:55 -04:00
064f28fcbc mir: don't warn if transient_for is NULL 2015-07-15 07:43:55 -04:00
2d223facdc mir: ensure parent surface before creating child surface 2015-07-03 13:48:13 -04:00
2374a1b50b mir: remove non-useful logging 2015-06-23 13:17:28 -04:00
19f66c781f mir: don't need dummy egl surface 2015-06-23 13:17:28 -04:00
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
9800d83a72 mir: fix build due to missing api 2015-06-23 13:17:27 -04:00
f1c11740c1 mir: gdk_mir_window_impl_set_surface_type 2015-06-02 15:14:27 -04:00
e1c958e70d mir: Create the correct surface 2015-06-02 15:14:27 -04:00
a57636f057 mir: Remove redundant calls 2015-06-02 15:14:27 -04:00
e6b3bae787 mir: Resolve warnings 2015-06-02 15:14:27 -04:00
d43f5258ff mir: Remove child window rendering hack 2015-06-02 15:14:26 -04:00
ea190a339a mir: fix build failure due to changed api 2015-04-30 12:41:33 -04:00
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
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
ce31df3238 mir: Switch GDK_GL_PROFILE_DEFAULT to mean 3_2_CORE
Instead of LEGACY.
2015-02-12 03:32:11 +01:00
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
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
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
bee39d2251 mir: reconstruct surface if window is moved 2015-02-05 17:26:19 +01:00
16b250f9bb mir: stop using deprecated surface api 2015-02-05 17:26:19 +01:00
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
6a3904cf0c mir: add back window hierarchy functions 2015-02-05 17:26:19 +01:00