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 12:30 Mar 09  
 
The idea is that all the windows have the same handling of these events. What they do is figure out which window the mouse is in and use that to decide how to respond to the keystrokes. Then you don't have to tell the window system which window has the focus and it won't raise it on you.

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

On 8/3/24 14:22, Bill Spitzak wrote:
>
> 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.
Do you have an example of this?  I need it to work with both FL_KEYBOARD
and FL_SHORTCUT on my windows to handle the keyboard actions.

--
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/dcbeecb2-e618-4103-b590-5197998b8d28%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-8oAgPDbzW_VFYQqshv%3D6whnTr99m16_gVStrT4qEVuMZVMQ%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'.