Commit Graph

61355 Commits

Author SHA1 Message Date
Matthias Clasen
423d4f4a8a surface: Use toplevel functions and decorations 2020-03-01 11:20:21 -08:00
Matthias Clasen
3079789719 Add wm functions and decorations to GdkToplevelLayout 2020-03-01 11:19:57 -08:00
Matthias Clasen
7e611569e3 window: Use toplevel api to show window menu 2020-03-01 11:04:58 -08:00
Matthias Clasen
ab103da680 surface: Implement new toplevel api 2020-03-01 11:03:50 -08:00
Matthias Clasen
f22310e8a9 toplevel: Add more api 2020-03-01 11:03:42 -08:00
Matthias Clasen
0bd98d13c3 surface: Drop more toplevel api 2020-03-01 10:44:12 -08:00
Matthias Clasen
60c39d7c03 window: Stop using gdk_surface_minimize etc 2020-03-01 10:43:55 -08:00
Matthias Clasen
6c974d5e54 surface: Implement new toplevel layout features 2020-03-01 10:29:10 -08:00
Matthias Clasen
2101f13694 Add more things to GdkToplevelLayout 2020-03-01 10:24:35 -08:00
Matthias Clasen
eed360200a surface: Drop fullscreen api
The fullscreen mode api is still kept internally, since
it is used in the x11 backend. This needs some more untangling.
2020-03-01 10:14:08 -08:00
Matthias Clasen
dc365f9c4c tests: Stop using gdk_surface_fullscreen 2020-03-01 10:10:39 -08:00
Matthias Clasen
71ec829c95 surface: Drop more toplevel api 2020-03-01 12:42:56 -05:00
Matthias Clasen
59e5e0180f window: Use GdkToplevel for more things 2020-03-01 12:42:56 -05:00
Matthias Clasen
157ebf42cd testgtk: Stop using gdk_surface_set_icon_name
Its not useful api, and will disappear.
2020-03-01 12:42:56 -05:00
Matthias Clasen
bdfc6a0812 wayland: Stop using gdk_surface_set_title
Directly call the backend function for this, and for
gdk_surface_set_transient_for.
2020-03-01 12:42:56 -05:00
Matthias Clasen
9b20973f12 x11: Stop using gdk_surface_set_title 2020-03-01 12:42:56 -05:00
Matthias Clasen
8aba6f43e3 surface: Implement more toplevel interface 2020-03-01 12:42:56 -05:00
Matthias Clasen
a537ddc841 toplevel: Move more toplevel api over 2020-03-01 12:42:56 -05:00
Matthias Clasen
b6658358f4 Drop gdk_surface_get_state
You can now use gdk_toplevel_get_state instead.
2020-03-01 12:42:56 -05:00
Matthias Clasen
f9aaace60b testgtk: Stop using gdk_surface_get_state 2020-03-01 12:42:56 -05:00
Matthias Clasen
78435e4628 demo: stop using gdk_surface_get_state 2020-03-01 12:37:22 -05:00
Matthias Clasen
e4856e27a4 a11y: Stop using gdk_surface_get_state 2020-03-01 12:37:22 -05:00
Matthias Clasen
7d96a5272c x11: Stop using gdk_surface_get_state
All the surfaces we are dealing with here are toplevels.
2020-03-01 12:37:22 -05:00
Matthias Clasen
2e30389a9a gtk: use toplevel state getter 2020-03-01 12:37:22 -05:00
Matthias Clasen
2bb1021df0 surface: implement toplevel state getter 2020-02-29 20:31:45 -05:00
Matthias Clasen
457ae1154d toplevel: add state getter 2020-02-29 20:31:31 -05:00
Matthias Clasen
6259735758 Drop more redundant api 2020-02-29 13:33:43 -05:00
Matthias Clasen
134f3fb0de Drop redundant toplevel api
The toplevel functionality to keep is moving to
GdkToplevel, and unused functions can go.
2020-02-29 13:33:43 -05:00
Matthias Clasen
c3b91572ff window: Use GdkToplevel 2020-02-29 13:33:43 -05:00
Matthias Clasen
c82877d777 surface: Implement GdkToplevel
This is not quite right, and only temporary, since
it makes GDK_IS_TOPLEVEL (surface) true for every surface.

Eventually, the implementation will be moved to the
backends.
2020-02-29 13:33:43 -05:00
Matthias Clasen
3546efdf0f Introduce GdkToplevel
This is a new interface for toplevel surfaces.
2020-02-29 13:33:43 -05:00
Matthias Clasen
c9e39f6a82 Introduce GdkToplevelLayout
This will be used in a new GdkTopleve interface in
the near future.
2020-02-29 13:33:43 -05:00
Matthias Clasen
ab3f08bad9 x11: Stop using gdk_surface_maximize
Just use the backend function directly.
2020-02-29 13:33:43 -05:00
Matthias Clasen
33b0413cee x11: Stop using gdk_surface_set_geometry_hints
Just use the backend function directly.
2020-02-29 13:33:43 -05:00
Matthias Clasen
da6498b2e8 wayland: Stop using gdk_surface_set_geometry_hints
Just use the backend function directly.
2020-02-29 13:33:43 -05:00
Matthias Clasen
a353254ad4 inspector: Stop raising and lowering windows
We should always be composited, so this should not
matter in practice.
2020-02-29 13:33:43 -05:00
Matthias Clasen
77f891037e x11: Stop using gdk_surface_raise
Avoid a vfunc roundtrip and just use the backend
implementation directly.
2020-02-29 13:33:43 -05:00
Matthias Clasen
090ce0ad3b broadway: Stop using gdk_surface_raise
We don't implement this anyway. Add a shortcut
to the backend function in case we ever do.
2020-02-29 13:33:43 -05:00
Matthias Clasen
903840e507 x11: Stop abusing type hints for dnd
Nothing in GDK depends on this being set, so just
don't do it.
2020-02-29 13:33:43 -05:00
Matthias Clasen
97f8e9fea0 wayland: Stop abusing type hints
Instead of misusing window type hints, introduce
a private flag for drag surfaces.
2020-02-29 13:33:43 -05:00
Matthias Clasen
85bd0d601d surface: Drop redundant popup api
Now that we have the GdkPopup interface,
these functions are no longer needed.
2020-02-29 13:33:43 -05:00
Matthias Clasen
fef15aec4e tooltip: Use GdkPopup 2020-02-29 13:33:43 -05:00
Matthias Clasen
bb74a85e1b popover: Use GdkPopup 2020-02-29 13:33:43 -05:00
Matthias Clasen
fb34e9146a surface: Implement GdkPopup
This is not quite right, and only temporary, since
it makes GDK_IS_POPUP (surface) true for every surface.

Eventually, the implementation will be moved to the
backends.
2020-02-29 13:33:43 -05:00
Matthias Clasen
25d19298c9 Introduce GdkPopup
This is a new interface for popup surfaces.
2020-02-29 13:33:43 -05:00
Matthias Clasen
726a3abc14 Move GdkSurface autocleanup declaration
We need this available after including gdksurface.h.
2020-02-29 13:33:43 -05:00
Matthias Clasen
0b73150a5b wayland: Stop calling frontend surface api
This is an unnecessary vfunc roundtrip, and the
frontend api is going away shortly.
2020-02-29 11:37:00 -05:00
Matthias Clasen
bc6d403a9a Simplify surface move/drag api
Drop the with_device variants, and always pass a device.
2020-02-29 11:37:00 -05:00
Matthias Clasen
1d39481c1c Drop gtk_window_begin_move/resize_drag
These are just simple wrappers around GdkSurface
api, and we don't need them.
2020-02-29 11:37:00 -05:00
Matthias Clasen
d60097f8fe Merge branch 'matthiasc/for-master' into 'master'
inspector: Fix the "Software GL" switch

See merge request GNOME/gtk!1491
2020-02-28 20:35:11 +00:00