In client/X11/xf_window.c, xf_CreateDesktopWindow, I'd like
the call to set the window title:
  xf_SetWindowTitleText(xfc, window->handle, name);
to be done before mapping the window with:
  XMapWindow(xfc->display, window->handle);
(patch against master below).

I use fvwm styles, triggered by window names, to potentially
move new windows to a given virtual desktop and page.  The
way it is coded now the window comes up as 'Untitled', and
thus can't be placed automatically.  I've tried the patch
below and it works.

-- Henrique

------------------------------------------------------------

diff --git a/client/X11/xf_window.c b/client/X11/xf_window.c
index a8de951c9..a86ad4c6f 100644
--- a/client/X11/xf_window.c
+++ b/client/X11/xf_window.c
@@ -558,6 +558,7 @@ xfWindow* xf_CreateDesktopWindow(xfContext* xfc, char* name\
, int width,

        XSelectInput(xfc->display, window->handle, input_mask);
        XClearWindow(xfc->display, window->handle);
+       xf_SetWindowTitleText(xfc, window->handle, name);
        XMapWindow(xfc->display, window->handle);
        xf_input_init(xfc, window->handle);

@@ -587,7 +588,6 @@ xfWindow* xf_CreateDesktopWindow(xfContext* xfc, char* name\
, int width,
        }

        window->floatbar = xf_floatbar_new(xfc, window->handle);
-       xf_SetWindowTitleText(xfc, window->handle, name);
        return window;
 }




_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to