FLTK logo

Re: [fltk.coredev] Re: take_focus or focus(this) on Linux raises the Fl_Gl_Window

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: take_focus or focus(this) on Linux raises the Fl_Gl_Window Bill Spitzak 09:22 Mar 08  
 
You may be at the mercy of the idiots designing X window managers. The idea that you could type to a window that is not on top apparently bothers them and they are doing everything they can to make it impossible. It is now significantly worse than Windows.

For the keystrokes fltk could just fake it by not telling the os anything and internally delivering all keystrokes to the window the programmer wants. It can also be done without changes to fltk by putting a keystroke handler on every window, or using global shortcuts, having them decide what to do based on what window the mouse is in.

Most likely the window raises when clicked on as well, and there is absolutely no way to stop this.


On Fri, Mar 8, 2024 at 6:38 AM Gonzalo Garramuño <ggarra13@gmail.com> wrote:

El 3/8/2024 a las 11:35 AM, Gonzalo Garramuño escribió:
> This is a problem specific to Linux.  It does not seem to happen on
> Windows or macOS.
>
> Calling take_focus() or focus(this) on Linux, will not only have the
> OpenGL (a derived Fl_Gl_Window) take the focus but it will also raise
> the window above the other Windows of the OS.
>
> I notice this, for example, when I have my terminal window at the
> front for re-compiling, and when I move the mouse to my viewer, I get
> my terminal sent to the bottom.
>
Oh yes.  This is on X11 under GNOME.

--
Gonzalo Garramuño
ggarra13@gmail.com

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/6b18eaf8-b8c4-4a76-911e-24e7997c0382%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/CAL-8oAgFW7G5UbAB-m%2B%3DmWdTnYuAtCAOd8MCcmLOk53iLUrT5A%40mail.gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.