input context attribute "XNFocusWindow"

2016-04-28 Thread Lucien Gentis
w : 0 To illustrate that, I have joined a little programme you should compile through this command: gcc -g -Wall prog-1.cc -o prog-1 -lX11 -- Lucien GENTIS UNIVERSITE DE LORRAINE - ESPE Centre de Ressources Informatiques 5, Rue Paul Richard C.O. 3 - MAXEVILLE 54528 LAXOU-CEDEX Tél. 03 72 74 13 2

Re: input context attribute "XNFocusWindow"

2016-05-06 Thread Lucien Gentis
14.04 via VirtualBox on Windows 7: it doesn't work NetBSD 7.0 via VirtualBox on Windows 7: it works ! Ubuntu 14.04 direct install (or live DVD): it doesn't work ---3rd machine: Ubuntu 14.04: it doesn't work Le 28/04/2016 14:40, Lucien Gentis a écrit : Hi to all, My system : Linux - Ubuntu 1

[SOLVED] Re: input context attribute "XNFocusWindow"

2016-05-09 Thread Lucien Gentis
and since I modified the application I am developing the same way, I can now type in characters with dead keys. XSetLocaleModifiers man page don't give much details, and someone who could give an explanation of XSetLocaleModifiers("@im=none") would be welcome. Cheers Lucien Le 06/05/2016

Xlib doc

2016-09-14 Thread Lucien Gentis
.x.org/pub/X11R7.7/doc/man/man3/XRaiseWindow.3.xhtml (which is also a manpage for XRestackWindows function) : "For each window in the window array that is not a sibling of the first window, a BadMatch error results." -- Lucien GENTIS UNIVERSITE DE LORRAINE - ESPE Centre de Ressources

Re: Huge mouse-click delay

2016-09-20 Thread Lucien Gentis
/listinfo/xorg Your subscription address: %(user_address)s -- Lucien GENTIS UNIVERSITE DE LORRAINE - ESPE Centre de Ressources Informatiques 5, Rue Paul Richard C.O. 3 - MAXEVILLE 54528 LAXOU-CEDEX Tél. 03 72 74 13 28 Email : lucien.gen...@univ-lorraine.fr

Re: touchpad

2017-11-13 Thread Lucien Gentis
Hi Lucas, Didn't you get errors in ./configure output ? You might also check config.log in the same directory ; it will show you more details about eventual errors. Le 11/11/2017 à 00:35, Lucas Barros a écrit : Nenhum alvo indicado e nenhum arquivo make encontrado.  Pare.

closed windows reappear

2018-03-08 Thread Lucien Gentis
Hello, I use X under Linux XUbuntu (Ubuntu with Xfce environment) 16.04 distro on a PC 64 bits. Sometimes, when I close an app, say xsane or whatever app, its window reappear after some time, while the app has not been reopen. I don't know if it comes from X server or Window manager

[devel] XLFD font naming convention

2019-03-01 Thread Lucien Gentis
Hi, When in an X application, we call (with 14 fields) : XListFonts(serveur, "-*-*-*-*-*-*-0-0-*-*-*-0-*-*", 1, ); we get scalable fonts with fields 7,8,12 at "0" like : -bitstream-charter-medium-i-normal--0-0-75-75-p-0-iso8859-1 -dec-terminal-medium-r-normal--0-0-75-75-c-0-dec-dectech

Re: [devel] XLFD font naming convention

2019-03-04 Thread Lucien Gentis
Le 04/03/2019 à 18:18, Ilya Anfimov a écrit : On Mon, Mar 04, 2019 at 05:29:10PM +0100, Lucien Gentis wrote: Le 04/03/2019 ?? 16:20, Ilya Anfimov a ??crit : On Fri, Mar 01, 2019 at 06:09:02PM +0100, Lucien Gentis wrote: [skipped] we get scalable fonts with fields 7,8,12 at "0&

Re: [devel] XLFD font naming convention

2019-03-04 Thread Lucien Gentis
Le 04/03/2019 à 16:20, Ilya Anfimov a écrit : On Fri, Mar 01, 2019 at 06:09:02PM +0100, Lucien Gentis wrote: Hi, When in an X application, we call (with 14 fields) : XListFonts(serveur, "-*-*-*-*-*-*-0-0-*-*-*-0-*-*", 1, ); we get scalable fonts with fields 7,8,12 a

Re: [devel] XLFD font naming convention

2019-03-05 Thread Lucien Gentis
Le 04/03/2019 à 19:09, Ilya Anfimov a écrit : On Mon, Mar 04, 2019 at 07:03:00PM +0100, Lucien Gentis wrote: Le 04/03/2019 `a 18:18, Ilya Anfimov a ecrit : [skipped] "For a scalable font source, a scalable font name for each character set is included in the list. In add

[DEVEL] XftTextExtents8 function and spaces characters

2019-04-13 Thread Lucien Gentis
Hello, I use  XftTextExtents8 (display,font,(FcChar8 *)str,strlen(str),); instruction to compute width of string str Here are values of glyphInfo.width with following strings: String                glyphInfo.width - "e"                    9 " e" (leading

Re: [DEVEL] XftTextExtents8 function and spaces characters

2019-04-24 Thread Lucien Gentis
: "pixel extents" i read "find the last pixel" white space has no pixel so it should be ignored. In that logic leading spaces get not ignored because they cause an offset. You expected "string width" what is obviously not the same- re, wh Am 13.04.2019 16:21, schrieb

Re: Squares instead of tabs (Xft)

2019-12-09 Thread Lucien Gentis
Hello, Tab is not a printable character. I think you have to scan each string you want to display in order to replace each encountered tab with a certain number of spaces. Le 05/12/2019 à 21:28, Радомир Хаџић a écrit : Hello. I'm using XftDrawStringUtf8() function to display text. But this

Re: Xft and word wrapping

2019-12-02 Thread Lucien Gentis
Hello Радомир, First I recommand this reading : https://keithp.com/~keithp/talks/xtc2001/paper/ It is somehow out of date (particularly XftFont structure description is false), but it permits to understand how Xft works. In order to be sure to get a correct description of data structures,

Re: How to start with X?

2020-01-23 Thread Lucien Gentis
There is also this tuto for xcb : https://xcb.freedesktop.org/tutorial/ and this doc for Xlib programming with many examples : http://csweb.cs.wfu.edu/~torgerse/Kokua/Irix_6.5.21_doc_cd/usr/share/Insight/library/SGI_bookshelves/SGI_Developer/books/XLib_PG/sgi_html/index.html Le 23/01/2020 à

Re: Why does X11 generate an extra SHIFT when I press Shift+KP_1 ?

2020-02-17 Thread Lucien Gentis
Hello Sreyan, Did you try SHIFT+KP_1 with NumLock disabled ? I think there is a conflict between Shift and NumLock when used with the numeric pad. xev sees the KeyEvents, but if you press SHIFT+KP_1 with NumLock enabled in an application like LibreOffice, or even vi, nothing happens. Le

Re: WM_DELETE_WINDOW does not send ClientMessage

2020-01-19 Thread Lucien Gentis
Hello Roland, While defining delAtom and calling XSetWMProtocls, you specifiy "display", and in your loop, you specify "pDisplay" ; is it the same display ? Le 19/01/2020 à 13:33, Roland Plüss a écrit : I'm finishing up my software for releasing but run into a big issue. If I use window

Re: WM_DELETE_WINDOW does not send ClientMessage

2020-01-19 Thread Lucien Gentis
that the render thread creates the window while the main thread has to handle the event loop (to my knowledge only this works). On 1/19/20 2:43 PM, Lucien Gentis wrote: Hello Roland, While defining delAtom and calling XSetWMProtocls, you specifiy "display", and in your loop, you

Re: XGetWindowAttributes to get the cursor?

2020-11-21 Thread Lucien Gentis
. With the intention to get the XImage backing it and copy the pixels. On Fri, Nov 20, 2020 at 1:11 PM Lucien Gentis <mailto:lucien.gen...@univ-lorraine.fr>> wrote: Don't you know the ID of your custom pixmap cursors ? If you do, you can add them to the cases of the switch. Le 20/

Re: XGetWindowAttributes to get the cursor?

2020-11-20 Thread Lucien Gentis
You can write a function which uses XTestCompareCursor in a switch which tests known cursor id (top_left_corner, h_double_arrow,...)| | Le 19/11/2020 à 19:59, Ivan Svirid a écrit : Yea but this only returns true/false it does not return the cursor_id. On Thu, Nov 19, 2020 at 10:26 AM Lucien

Re: XGetWindowAttributes to get the cursor?

2020-11-20 Thread Lucien Gentis
In fact, cursor id are defined in cursorfont.h like XC_top_left_corner, XC_double_arrow,... Le 20/11/2020 à 12:42, Lucien Gentis a écrit : You can write a function which uses XTestCompareCursor in a switch which tests known cursor id (top_left_corner, h_double_arrow,...)| | Le 19/11/2020 à

Re: XGetWindowAttributes to get the cursor?

2020-11-20 Thread Lucien Gentis
Lucien Gentis <mailto:lucien.gen...@univ-lorraine.fr>> wrote: In fact, cursor id are defined in cursorfont.h like XC_top_left_corner, XC_double_arrow,... Le 20/11/2020 à 12:42, Lucien Gentis a écrit : You can write a function which uses XTestCompareCursor in a switch wh

Re: XGetWindowAttributes to get the cursor?

2020-11-19 Thread Lucien Gentis
Hello, Perhaps you should look at XTest extension : https://www.x.org/releases/X11R7.7/doc/xextproto/xtest.html See |XTestCompareCursor function | Le 04/11/2020 à 19:25, Ivan Svirid a écrit : So XSetWindowAttributes allows you to set the cursor on the window, basically this is the hardware

Re: X11 cut (as cut/paste) accuracy

2022-02-02 Thread Lucien Gentis
Hello, I tried to launch xterm under Mate desktop manager, and I do not encounter the problems you mentionned: Even with a small font size (courier 10), I can select the first character of a line without any problem. I also tried to define font size to courier 34 to see how are character

Re: X11 cut (as cut/paste) accuracy

2022-02-03 Thread Lucien Gentis
Here is what I get under Debian 10 Buster, Mate desktop and mate-terminal with libvte : There is no selection problem at all. I looked at you video and don't understand what is represented: a window without decoration and margin ? Le 03/02/2022 à 08:27, Phi Debian a écrit : I notice the

Re: Xlib: DisplayWidth / DisplayHeight

2023-09-05 Thread Lucien Gentis
Le 05/09/2023 à 06:18, Carsten Haitzler a écrit : On Thu, 31 Aug 2023 08:02:38 -0400 (EDT) Vladimir Dergachev said: The cool thing however, is that I can launch xeyes and it works just the same as when it was created decades ago. This is because people back then thought through the

Re: Having troubles using XkbKeycodeToKeysym

2024-05-02 Thread Lucien Gentis
Hello, I guess you declare "window" variable as a pointer to MWWindowstructure ? Le 01/05/2024 à 11:39, Mibi88 a écrit : Hello, I hope that I'm asking on the right place for help, if not, where should I ask for help about XLib? I'm writing a program that uses opengl, glx and xlib.

Re: FcPattern contained in struct XftFont generated via XftFontOpenName function has type mismatch

2019-09-12 Thread Lucien Gentis
I forgot to join a small piece of code to reproduce the problem. Compile command : gcc -g -Wall -O2 -I/usr/include/X11 -I/usr/include/X11/Xft -I/usr/include/freetype2 -I /usr/include/fontconfig xftfontopenname.c -o xftfontopenname -lX11 -lXft -lfontconfig Le 11/09/2019 à 16:13, Lucien

Re: FcPattern contained in struct XftFont generated via XftFontOpenName function has type mismatch

2019-09-12 Thread Lucien Gentis
I apologize ! XftFontOpenName calls FcNameParse, and its this function which returns an FcPattern whose FC_WEIGHT property has type FcTypeDouble So it's a Fontconfig problem. Bye Le 12/09/2019 à 11:59, Lucien Gentis a écrit : I forgot to join a small piece of code to reproduce the problem

FcPattern contained in struct XftFont generated via XftFontOpenName function has type mismatch

2019-09-11 Thread Lucien Gentis
Hello, XftFontOpenName function returns a XftFont structure that contains an FcPattern. Since 2.13.1-2 version of libxft, FC_WEIGHT property of this FcPattern has type FcTypeDouble instead of FcTypeInteger as expected in /usr/include/fontconfig/fontconfig.h and it was the case with 2.13.1-1

[Xlib] tab key KeySym

2020-02-07 Thread Lucien Gentis
Hello, I have to extract the KeySym of the key I press with and without holding down Shift key. If I use : keysym=XkbKeycodeToKeysym(display,event.xkey.keycode,0,0); keysym contains 0xff09 for tab key wether I hold down Shift key or not. But I have to extract keysyms for multibytes