input context attribute "XNFocusWindow"

2016-04-28 Thread Lucien Gentis
77594625 - IC focus window : 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

Re: input context attribute "XNFocusWindow"

2016-05-06 Thread Lucien Gentis
e: Ubuntu 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 s

[SOLVED] Re: input context attribute "XNFocusWindow"

2016-05-09 Thread Lucien Gentis
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/

Re: XLookupString return inconsistent

2016-09-12 Thread Lucien Gentis
XLookupString and/or XmbLookupString instead return the empty string. This happens whether I load the US or the DE xkb map, using setxkbmap. Do you have any idea what might be going on? ___ xorg@lists.x.org: X.Org support Archives: http://lists.free

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
/lists.x.org/mailman/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

Re: Huge mouse-click delay

2016-09-20 Thread Lucien Gentis
determine if the problem is related with your system or your hardware. Le 20/09/2016 à 14:46, martin f krafft a écrit : also sprach Lucien Gentis [2016-09-20 14:39 +0200]: Same problem with touch pad or USB extern mouse ? Good question; yes, the same problem exists with an external mouse. It&#

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 (lightd

[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, &nbFonts); 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-dec

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, &nbFonts); we get scalable fonts with fields 7,8,

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-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),&glyphInfo); instruction to compute width of string str Here are values of glyphInfo.width with following strings: String                glyphInfo.width - "e"                    9 " e" (

Re: [DEVEL] XftTextExtents8 function and spaces characters

2019-04-24 Thread Lucien Gentis
re is: "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, sch

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: 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: 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 mode

Re: WM_DELETE_WINDOW does not send ClientMessage

2020-01-19 Thread Lucien Gentis
equirement 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

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 à 12

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 17

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 c

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
05 AM 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 swit

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.

Re: Nouveau lockups

2020-11-23 Thread Lucien Gentis
Did you check your RAM memory modules ? I once had a similar problem, and one of my memory modules was partially defective. Le 23/11/2020 à 01:08, Sam Varshavchik a écrit : I started getting random X lockups. They happen randomly. Usually during video playback, but sometimes also waking up fr

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 s

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 sa

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 mathemati

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. Everythi