[libwnck/wip/muktupavels/use-wnck-handle: 2/7] window: use WnckHandle to get client type
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/use-wnck-handle: 2/7] window: use WnckHandle to get client type
- Date: Wed, 23 Feb 2022 21:08:13 +0000 (UTC)
commit f44e6bd905919e338f7cb5e9fbf3863ea6215182
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Feb 23 06:58:11 2022 +0200
window: use WnckHandle to get client type
libwnck/window.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libwnck/window.c b/libwnck/window.c
index 8f6c8b77..2760816e 100644
--- a/libwnck/window.c
+++ b/libwnck/window.c
@@ -2349,12 +2349,15 @@ wnck_window_set_geometry (WnckWindow *window,
int width,
int height)
{
+ WnckHandle *handle;
int gravity_and_flags;
int source;
g_return_if_fail (WNCK_IS_WINDOW (window));
- source = _wnck_get_client_type();
+ handle = _wnck_screen_get_handle (window->priv->screen);
+ source = _wnck_handle_get_client_type (handle);
+
gravity_and_flags = gravity;
gravity_and_flags |= geometry_mask << 8;
gravity_and_flags |= source << 12;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]