[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deiconifying GTK frames on GNOME shell
From: |
Madhu |
Subject: |
Re: Deiconifying GTK frames on GNOME shell |
Date: |
Wed, 08 Dec 2021 22:03:28 +0530 (IST) |
* Po Lu <luangruo@yahoo.com> <87ilvze4k5.fsf@yahoo.com>
Wrote on Wed, 08 Dec 2021 19:09:30 +0800
> martin rudalics <rudalics@gmx.at> writes:
>> Yuuki Harano, Po Lu - any comments on that patch?
> Could you explain what it is supposed to fix?
Hello, it is meant to make (select-frame-set-input-focus) "work" on
wayland for the time being. It is not a correct fix. (x-focus-frame
$a t) will raise the frame when it should not be raised.
> I thought the reason frames couldn't be raised under PGTK was that
> `frame_raise_lower_hook' is unimplemented there, which someone will
> certainly get to soon.
The problem I believe is that the gdk/gtk apis to raise/lower windows
just doesn't work on wayland. Implementing frame_raise_lower_hook with, say
gdk_window_raise (gtk_widget_get_window (GTK_WIDGET
(FRAME_GTK_OUTER_WIDGET (f))));
has no effect.
I linked to two urls pointing to the bug reports on frame stacking
order. (Maybe I'm misunderstanding but there are at least a dozen
more reports)
it is a wrong fix, but on the other hand select-frame-set-input-focus
seems to be crucial (for me) for using more than 2 frames
>> + gtk_window_present_with_time (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET
>> (f)), g_get_monotonic_time () / 1000L);
>
> I think GDK_CURRENT_TIME should work equally well here, right?
I'll check shortly, Thanks,
---Best Regards
Madhu
- Re: Deiconifying GTK frames on GNOME shell, Madhu, 2021/12/06
- Re: Deiconifying GTK frames on GNOME shell, martin rudalics, 2021/12/08
- Re: Deiconifying GTK frames on GNOME shell, Po Lu, 2021/12/08
- Re: Deiconifying GTK frames on GNOME shell, Yuuki Harano, 2021/12/08
- Re: Deiconifying GTK frames on GNOME shell, Po Lu, 2021/12/08
- Re: Deiconifying GTK frames on GNOME shell, Madhu, 2021/12/08
- Re: Deiconifying GTK frames on GNOME shell, Po Lu, 2021/12/08
- Re: Deiconifying GTK frames on GNOME shell, Eli Zaretskii, 2021/12/09
- Re: Deiconifying GTK frames on GNOME shell,
Madhu <=
- Re: Deiconifying GTK frames on GNOME shell, Po Lu, 2021/12/08
- Re: Deiconifying GTK frames on GNOME shell, Madhu, 2021/12/08