Ivan Krylov
2021-Mar-23 15:54 UTC
[Rd] Possible x11 window manager window aggregation under one icon?
On Tue, 23 Mar 2021 11:41:39 -0400 Duncan Murdoch <murdoch.duncan at gmail.com> wrote:> It would probably be nice to have rgl windows and other R graphics > windows in the same group, but I don't see a way for rgl to know the > group_leader that R is using (and it's probably not worth adding this > to the API to be able to request it). > > Am I missing an easier solution?Do you envision any problems stemming from setting the same WM_CLASS ("r_x11", "R_x11") for rgl windows as used by x11() windows? I think that most DEs are able to group windows by WM_CLASS in addition to WM_HINTS.window_group (Xfce does that by default, GNOME turned out to just need a hint in the .application file). -- Best regards, Ivan
Duncan Murdoch
2021-Mar-23 16:53 UTC
[Rd] Possible x11 window manager window aggregation under one icon?
On 23/03/2021 11:54 a.m., Ivan Krylov wrote:> On Tue, 23 Mar 2021 11:41:39 -0400 > Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > >> It would probably be nice to have rgl windows and other R graphics >> windows in the same group, but I don't see a way for rgl to know the >> group_leader that R is using (and it's probably not worth adding this >> to the API to be able to request it). >> >> Am I missing an easier solution? > > Do you envision any problems stemming from setting the same WM_CLASS > ("r_x11", "R_x11") for rgl windows as used by x11() windows?Since early 2013, rgl has set the WM_CLASS to ("rgl", "R_x11"). So I think with your suggested change to R.desktop the problem is solved, assuming the first component (res_name) doesn't matter as long as the second one (res_class) matches. Duncan Murdoch