|
From: Petr M. <mi...@ph...> - 2003-12-09 08:44:15
|
It seems like most people agree that this patch is useful! Great!
> Implementing such a thing would be fairly easy. But, I think
> the point here was that in order to do this, the x11 terminal
> would have to be the current terminal.
Now, it does not have to be the current terminal. You can implement it
in exactly the same way as in OS/2's PM terminal.
command.h:
+#ifdef OS2
+extern void pm_raise_terminal_window();
+#endif
+#ifdef X11
+extern void x11_raise_terminal_window( maybe option for 1 window );
+#endif
command.c:
+#ifdef OS2
+ pm_raise_terminal_window();
+#endif
+#ifdef X11
+ x11_raise_terminal_window( ...an option for 1 window only...);
+ /* if (one_window) { only one } */
+#endif
x11.trm:
+void
+x11_raise_terminal_window( ... )
+{
+ putc(SET_SPECIAL, PM_pipe);
+ putc('^', PM_pipe); /* raise window */
+ fflush(PM_pipe);
+}
.. I think it is X11_pipe or X11_ipc
+ code in gplt_x11.c to accept and react to '^' (go through the window list
and raise them)
I wish to see your nice patch :-))
---
Petr Mikulik
|