Matthias Clasen
7fae042208
Deprecate GdkEventVisibility and ::visibility-notify-event
...
These don't really work anymore in a composited world.
Lets make it official.
https://bugzilla.gnome.org/show_bug.cgi?id=481073
2014-03-03 21:39:03 -05:00
Benjamin Otte
e9aa5a9822
gdkwindow: Call function instead of copying its code
...
gdk_window_get_origin() is just a variant of
gdk_window_get_root_coords() after all.
2014-02-28 03:09:23 +01:00
Jasper St. Pierre
0f212b5fb7
gdkwindow: Always pass the impl window to GdkWindowImpl::get_root_coords
...
The point of GdkWindowImpl::get_root_coords is to translate the passed
in coordinates against the passed-in impl window. For a child window,
in fact, window->abs_x and window->abs_y already track the child
window's coordinates against the impl window.
If we pass in a child window, and backends don't explicitly get the impl
window from it, we'll double-count the child window.
Really, we should *always* be passing impl windows to backends, and
never child windows. However, I'm a bit worried for regressions late
in the cycle if we want to fix up the rest of the callers, like
gdk_window_get_geometry, so I'm only going to touch get_root_coords
for now after careful review of all the backends.
2014-02-27 21:06:35 -05:00
Jasper St. Pierre
b922e0e213
Remove the return value of GdkWindowImpl::get_root_coords
...
It's unused by callers, and the historical return values are
undocumented, so just remove it now.
2014-02-27 21:06:35 -05:00
Jasper St. Pierre
056ca21e2f
wayland: Seal up a non-declared public member
2014-02-27 17:33:09 -05:00
Jasper St. Pierre
7d67530982
wayland: Remove old, outdated comment
2014-02-27 17:00:56 -05:00
Jasper St. Pierre
08d0bedb28
wayland: Fix margins at startup
...
GtkWindow calls set_shadow_width then maps the window, meaning
that we never set the margin. Save it when we set and then set
it when we create the XDG surface.
2014-02-27 16:55:02 -05:00
Giovanni Campagna
ad2f96ff48
Gdk: fix wrong user_data handling in resize_cairo_surface()
...
Instead of destroying the surface in the backend if this is
unable to resize, let the core code do it, and do it properly.
Based on a patch by Benjamin Otte.
https://bugzilla.gnome.org/show_bug.cgi?id=725172
2014-02-26 00:04:41 +01:00
Jasper St. Pierre
084c2feb7e
wayland: Don't destroy the cairo surface when resizing it
...
The code in GDK is incredibly broken and nobody is quite sure what's
right-side-up and what's upside down, but this breaks mutter-wayland
now, so let's remove it. It might leak, but we should probably do a
full restructuring of GDK drawing to fix it.
2014-02-23 16:07:38 -05:00
Rui Matos
6ea4bf8a9d
wayland: Fix gdk_window_wayland_resize_cairo_surface()
...
Like in other backends (except X) we can't resize cairo image surfaces
so let's sync the code here with what the other backends do.
This prevents the painting machinery above us to paint on the wrong
buffer.
https://bugzilla.gnome.org/show_bug.cgi?id=724968
2014-02-23 18:40:29 +01:00
Matthias Clasen
6dcf6e0f3b
Be more careful to change state atomically
...
This avoids temporary states of maximized+tiled that
we otherwise report.
2014-02-22 22:24:20 -05:00
Paolo Borelli
e34d9eafed
Do not leak cairo_region
2014-02-21 21:11:21 +01:00
William Jon McCann
469d333aa2
docs: use Returns: consistently
...
Instead of Return value:
2014-02-19 18:56:05 -05:00
Jasper St. Pierre
7fbcff8d71
xdg-shell: Update for focused_set / focused_unset rename
2014-02-18 16:48:42 -05:00
Jasper St. Pierre
6845eade49
wayland: Update to new xdg-shell pinging standards
2014-02-18 16:47:34 -05:00
Matthias Clasen
c779b42476
Docs: use // for comments in examples
...
Without sgml mode, we can't escape /* as /* anymore,
so just switch to // for comments in examples.
2014-02-14 23:34:22 -05:00
Ting-Wei Lan
3e02f52031
Do not return things from a void function
...
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=724008
Author: Ting-Wei Lan <lantw44@gmail.com>
2014-02-12 22:48:19 -05:00
Matthias Clasen
3459a0a273
Revert "Introduce API to get the preferred visual"
...
This reverts commit 2b95d1a34e
.
Conflicts:
gdk/gdkscreen.c
2014-02-10 22:15:28 -05:00
Matthias Clasen
d326507978
Revert "Use gdk_screen_get_preferred_visual()"
...
This reverts commit 30fa1426cf
.
See the bugs
https://bugzilla.gnome.org/show_bug.cgi?id=724067
https://bugzilla.gnome.org/show_bug.cgi?id=723740
for the issues that are the reason for this revert.
2014-02-10 22:12:53 -05:00
Matthias Clasen
7f6a964c47
Docs: Remove all entities and turn off sgml mode
...
With all element markup gone, it is time to turn off
sgml mode, and get rid of entities as well.
2014-02-09 17:58:07 -05:00
Jasper St. Pierre
bfe8a354cd
wayland: Add support for set_shadow_width
2014-02-07 19:33:17 -05:00
Jasper St. Pierre
c52e710dc8
wayland: Add support for delete event
2014-02-07 18:30:12 -05:00
Jasper St. Pierre
b14e86fad2
wayland: Remove edges from configure
2014-02-07 18:30:07 -05:00
Jasper St. Pierre
1859d7631b
gdkthreads: Update documentation
2014-02-07 18:01:16 -05:00
William Jon McCann
13998c55e7
docs: use proper quotations instead of '*'
2014-02-07 14:22:39 -05:00
William Jon McCann
a4b5929e81
docs: use apostrophe in *'re
2014-02-07 13:37:09 -05:00
William Jon McCann
285d216d3e
docs: use apostrophe in *'ll
2014-02-07 13:35:54 -05:00
William Jon McCann
e34bd4137d
docs: use apostrophes in *n't
2014-02-07 13:32:47 -05:00
William Jon McCann
f0000b2f3d
docs: use more apostrophes
2014-02-07 13:26:12 -05:00
William Jon McCann
7a208fbbf3
docs: use proper apostrophe
...
https://wiki.gnome.org/Design/OS/Typography
2014-02-07 13:06:10 -05:00
William Jon McCann
f116f0071e
docs: use links instead of <xref>
2014-02-07 11:13:11 -05:00
William Jon McCann
0ce016650b
docs: Use markup for links
2014-02-07 09:42:12 -05:00
Matthias Clasen
8e797c1195
Wayland: Set gtk-dialogs-use-header
...
Since we don't have a setting for this, hardcode the value
for now.
2014-02-06 22:51:05 -05:00
Jasper St. Pierre
e583e3ebce
gdkwindow-wayland: Make function order match listener order
2014-02-06 14:29:18 -05:00
William Jon McCann
6abe7a7094
docs: use markdown instead of <note>
2014-02-06 08:01:49 -05:00
William Jon McCann
47469eb296
Use proper quotes in gdk
2014-02-05 15:08:42 -05:00
William Jon McCann
3b3d8ca456
docs: Use "#" for refsect2 instead of ##
2014-02-04 21:00:58 -05:00
William Jon McCann
c6ef8bdc9c
docs: don't use <para id="">
2014-02-04 20:21:05 -05:00
William Jon McCann
9ecc35ec68
docs: don't use <orderedlist>
2014-02-04 19:45:36 -05:00
William Jon McCann
a22358c0c0
docs: use ` instead of <literal>
2014-02-04 18:24:29 -05:00
William Jon McCann
76447c3512
docs: use quotes instead of <firstterm>
2014-02-04 18:10:11 -05:00
William Jon McCann
2dcbe27a06
docs: don't use <option>
2014-02-04 17:48:33 -05:00
William Jon McCann
ff8864cbf3
docs: use a code block instead of <screen>
2014-02-04 17:31:17 -05:00
William Jon McCann
9ff678c37f
docs: replace another envar that sneaked in
2014-02-04 17:25:37 -05:00
William Jon McCann
bf7afa48f8
docs: replace all figures with headings and images
2014-02-04 17:20:43 -05:00
William Jon McCann
63e887e165
docs: replace all <examples> with markdown headings
2014-02-04 16:58:54 -05:00
William Jon McCann
9f99f567c8
docs: use markdown instead of inlinegraphic tags
2014-02-04 16:58:53 -05:00
William Jon McCann
8d6717097c
docs: Use markdown for ulinks
2014-02-04 16:58:53 -05:00
William Jon McCann
50e06e11ee
docs: use markdown instead of <filename> tags
2014-02-04 16:58:53 -05:00
William Jon McCann
a479ee5de5
docs: use markdown for <envar> tags
2014-02-04 16:58:53 -05:00