Cross Compiling Xorg
Hi, I am trying to cross compiling xorg using jhbuild, I am getting the following error when libGL is crosscompiled, undefined reference to __sync_add_and_fetch_4, cross tool chain used is arm-none-linux-gnueabi-gcc version 4.1.2. I searched in net but could not find concrete answer. With Best Regards, Harsha Important notice: This e-mail and any attachment there to contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You. ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: Cross Compiling Xorg
* CN, Harsha SISPL harsha...@siemens.com schrieb: Hi, I am trying to cross compiling xorg using jhbuild, I am getting the following error when libGL is crosscompiled, undefined reference to __sync_add_and_fetch_4, cross tool chain used is arm-none-linux-gnueabi-gcc version 4.1.2. Please tell us a bit more about your concrete build environment. Which toolchain and which libraries are you using ? Do you use an sysroot'ed toolchain ? cu -- -- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weig...@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 -- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme -- ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
RE: Cross Compiling Xorg
Hi, Thanks for the reply, Currently I cross compiling for IMX51 board with ARM7 processor. I have built kernel and some packages using the tool chain provided by freescale and it says gcc-4.1.2 and libraries used is glibc 2.5 which is also provided with freescale. With Best Regards, Harsha -Original Message- From: xorg-bounces+harsha.cn=siemens@lists.freedesktop.org [mailto:xorg-bounces+harsha.cn=siemens@lists.freedesktop.org] On Behalf Of Enrico Weigelt Sent: Wednesday, October 27, 2010 12:05 PM To: xorg@lists.freedesktop.org Subject: Re: Cross Compiling Xorg * CN, Harsha SISPL harsha...@siemens.com schrieb: Hi, I am trying to cross compiling xorg using jhbuild, I am getting the following error when libGL is crosscompiled, undefined reference to __sync_add_and_fetch_4, cross tool chain used is arm-none-linux-gnueabi-gcc version 4.1.2. Please tell us a bit more about your concrete build environment. Which toolchain and which libraries are you using ? Do you use an sysroot'ed toolchain ? cu -- -- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weig...@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 -- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme -- ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: harsha...@siemens.com Important notice: This e-mail and any attachment there to contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You. ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: Cross Compiling Xorg
* CN, Harsha SISPL harsha...@siemens.com schrieb: Hi, Currently I cross compiling for IMX51 board with ARM7 processor. I have built kernel and some packages using the tool chain provided by freescale and it says gcc-4.1.2 and libraries used is glibc 2.5 which is also provided with freescale. Actually, I dont believe in proprietary / prebuilt toolchains, especially when heavily tied to IDEs or SDKs (IMHO a bad approach). Perhaps you should start building your own toolchain w/ crosstool-ng. As distro/image build system you can use PTXdist or my Briegel. BTW: if your company likes to hire an consultant, just call me ;-) cu -- -- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weig...@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 -- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme -- ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
gdm main process terminated with status 1
Hi there, My current situation is the following: I was running an Ubuntu 9.10 on a VMware Workstation 6.0.5 as a Guest. After upgrading to Ubuntu 10.04 release, I have problems starting my display - I am sitting on a command line only with the following messages: init: gdm main process (575) terminated with status 1 init: plymouth-stop pre-start process (1115) terminated with status 1 Ubuntu 10.04.1 LTS stunibuni tty1 stunibuni login init: failsafe-x main process (925) terminated with status 1 Ubuntu 10.04.1 LTS stunibuni tty1 stunibuni login: The VMware Workstation is installed on Windows 7 OS, 64-bit Sony Vaio Notebook. Video card: Intel(R) Graphics Media Accelerator HD (Core i3). What I have done till now: I have executed these commands posted at your site, in order to be sure I am running the last version of Xorg: export PREFIX=/opt/xorg export LD_LIBRARY_PATH=$PREFIX/lib export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig export PATH=$PREFIX/bin:$PATH export ACLOCAL=aclocal -I $PREFIX/share/aclocal git clone git://anongit.freedesktop.org/git/xorg/util/modular/ util/modular echo util/macros built.modules ./util/modular/build.sh --clone -p -f built.modules -r `tail -n 1 built.modules` $PREFIX After reboot, it is the same - only the ssh process, which was appearing as a terminated process like gdm and plymouth, didn't show anymore in the command line prompts. I have also tried to reconfigure the gdm and plymouth modules via: sudo dpkg-reconfigure gdm sudo dpkg-reconfigure plymouth No success after reboot either. I appreciate your help. I will attach also my Xorg.0.log file. Thank you! Xorg.0.log Description: Binary data ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Problems with vmwgfx driver
Hello everybody, I'm trying to use vmwgfx inside VmWare player 3.0. I've a problem enabling gallium driver. My kernel is 2.6.36 with module vmwgfx from ... I use: - libdrm 2.4.22 recompiled from git with --enable-vmwgfx-experimental-api=yes - mesa 7.9 recompiled from git 7.9 branch with --enable-gallium-svga - xorg 1.9 - xf86-video-vmware from mesa The problem I face is that glxinfo keeps on saying: OpenGL vendor string: Mesa Project OpenGL renderer string: Software Rasterizer OpenGL version string: 2.1 Mesa 7.9 OpenGL shading language version string: 1.20 OpenGL extensions: and Xorg.o.log says that I've no 3D acceleration [39.103] (II) vmwgfx(0): Using libkms backend [39.103] (II) vmwgfx(0): 2D Acceleration is disabled [39.104] (II) vmwgfx(0): Fallback debugging is disabled [39.104] (**) vmwgfx(0): 3D Acceleration is disabled I expected it to use gallium driver. Instead it is using swrast. Did I miss something? These are my logs: My dmseg says: [ 36.253926] calling vmwgfx_init+0x0/0x77 [vmwgfx] @ 1981 [ 36.255518] [vmwgfx] Initialized drm 1.1.0 20060810 [ 36.263786] [vmwgfx] Capabilities: [ 36.263819] [vmwgfx] Rect copy. [ 36.263849] [vmwgfx] Cursor. [ 36.263875] [vmwgfx] Cursor bypass. [ 36.263904] [vmwgfx] Cursor bypass 2. [ 36.263933] [vmwgfx] 8bit emulation. [ 36.263960] [vmwgfx] Alpha cursor. [ 36.263987] [vmwgfx] 3D. [ 36.271496] [vmwgfx] Extended Fifo. [ 36.271540] [vmwgfx] Multimon. [ 36.271564] [vmwgfx] Pitchlock. [ 36.271592] [vmwgfx] Display Topology. [ 36.271628] [vmwgfx] VRAM at 0xf000 size is 131072 kiB [ 36.271649] [vmwgfx] MMIO at 0xe800 size is 2048 kiB [ 36.271768] [vmwgfx] global init. [ 36.287733] [vmwgfx] Delayed 3D detection since we're not running the device in SVGA mode yet. [ 36.289433] [vmwgfx] Initialized vmwgfx 1.4.1 20100928 for :00:0f.0 on m nor 0 [ 36.290680] initcall vmwgfx_init+0x0/0x77 [vmwgfx] returned 0 after 35865 us cs [ 36.293106] [vmwgfx] width 640 [ 36.293143] [vmwgfx] height 480 [ 36.293175] [vmwgfx] bpp 32 [ 36.379088] [vmwgfx] Fifo max 0x0020 min 0x1000 cap 0x007f [ 36.442095] [vmwgfx] width 640 [ 36.442102] [vmwgfx] height 480 [ 36.442106] [vmwgfx] bpp 32 [ 36.510059] [vmwgfx] Fifo max 0x0020 min 0x1000 cap 0x007f [ 36.781697] [vmwgfx] width 640 [ 36.781710] [vmwgfx] height 480 [ 36.781716] [vmwgfx] bpp 32 [ 36.861820] [vmwgfx] Fifo max 0x0020 min 0x1000 cap 0x007f [ 36.900414] [vmwgfx] width 640 [ 36.900422] [vmwgfx] height 480 [ 36.900426] [vmwgfx] bpp 32 [ 36.966243] [vmwgfx] Fifo max 0x0020 min 0x1000 cap 0x007f [ 39.089606] [vmwgfx] vmw_stream_init: claimed [ 39.761878] [vmwgfx] vmw_kms_fb_create: trying buffer and my Xorg.0.log says: [31.180] (II) LoadModule: vmwgfx [31.181] (II) Loading /usr/lib/xorg/modules/drivers/vmwgfx_drv.so [35.969] (II) Module vmwgfx: vendor=X.Org Foundation [36.518] (II) vmware: Using vmwgfx X driver. [36.692] (II) vmwgfx: Driver for VMware SVGA device: VMware SVGA Device [36.976] (==) vmwgfx(0): Depth 24, (--) framebuffer bpp 32 [36.977] (==) vmwgfx(0): RGB weight 888 [36.978] (==) vmwgfx(0): Default visual is TrueColor [36.990] (**) vmwgfx(0): Option 2DAccel true [36.991] (**) vmwgfx(0): Option DebugFallback false [36.991] (**) vmwgfx(0): Option 3DAccel true [37.883] (--) vmwgfx(0): Min width 1, Max Width 8192. [37.883] (--) vmwgfx(0): Min height 1, Max Height 8192. [37.941] (II) vmwgfx(0): Output LVDS1 using monitor section Monitor0 [37.942] (II) vmwgfx(0): Output LVDS2 has no monitor section [37.943] (II) vmwgfx(0): Output LVDS3 has no monitor section [37.943] (II) vmwgfx(0): Output LVDS4 has no monitor section [37.943] (II) vmwgfx(0): Output LVDS5 has no monitor section [37.943] (II) vmwgfx(0): Output LVDS6 has no monitor section [37.944] (II) vmwgfx(0): Output LVDS7 has no monitor section [37.944] (II) vmwgfx(0): Output LVDS8 has no monitor section [37.970] (II) vmwgfx(0): EDID for output LVDS2 [37.971] (II) vmwgfx(0): EDID for output LVDS3 [37.972] (II) vmwgfx(0): EDID for output LVDS4 [37.972] (II) vmwgfx(0): EDID for output LVDS5 [37.972] (II) vmwgfx(0): EDID for output LVDS6 [37.972] (II) vmwgfx(0): EDID for output LVDS7 [37.973] (II) vmwgfx(0): EDID for output LVDS8 [37.973] (II) vmwgfx(0): Output LVDS1 connected [37.973] (II) vmwgfx(0): Output LVDS2 disconnected [37.974] (II) vmwgfx(0): Output LVDS3 disconnected [37.974] (II) vmwgfx(0): Output LVDS4 disconnected [37.974] (II) vmwgfx(0): Output LVDS5 disconnected [37.974] (II) vmwgfx(0): Output LVDS6 disconnected [37.974] (II) vmwgfx(0): Output LVDS7 disconnected [37.974] (II) vmwgfx(0): Output LVDS8 disconnected [37.987] (II) vmwgfx(0): Using default gamma of (1.0, 1.0, 1.0) unless othe wise stated. [37.989] (==) vmwgfx(0): DPI set to
3MB Memory Leak in KDrive Xfbdev
Hello All, I need to launch XServer in a thread and terminate(release resources and kill thread) XServer whenever required. To achieve this, I have created a shared library of Kdrive-XServer. To start XServer I load the Xserver shared lib, and launch the Xfbdev server in a thread. For terminating Xserver, I callGiveUp (0); function, that releases the XServer resources, then I dlclose on Xserver library. However, when I start and terminate XServer in above way, there seems to happen 3MB of memory leak in every cycle. After narrowing down it is seen that following 2 function calls increase the memory to 3M at start and is not release at termination. The functions are: InitInput(argc, argv); and InitAndStartDevices(); These are the observation on ARM target board. When above scenario is simulated on x86 machine, and Valgrind is run, it does not show memory leaks in above mentioned functions, instead it shows definite loss of 1,244 bytes of memory in KdInitOutput() and some other minor definite losses. I need to find out the 3M memory loss on target ARM board for InitInput(argc, argv); and InitAndStartDevices(); functions. For this I did try to release memory allocations in InitInput(), but no success. If I comment below lines from KdProcessArgument(), then the 3M chunk leak does not happen however with this mouse and keyboard are not initialized and I need to have keyboard and mouse. Can anyone help me out to find out the 3M chunk and how to avoid it / release it? -- KdAddConfigKeyboard(keyboard,/dev/tty0); KdAddConfigPointer(mouse,/dev/input/mice); kdHasPointer = TRUE; kdHasKbd = TRUE; In addition to information below, I also get get following error when closing VT Cant deallocate console... Can this error contribute to some or all of the 3M memory leak? Please let me know if anyone has got any clue about this or have faced simlar issue. Thanks in advance, Vrushali ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: Problem with the X server
Xorg -version ? xorg.conf ? Xorg.0.log full log? thanks =) On Mon, Oct 18, 2010 at 6:57 PM, Jeremy Huddleston jerem...@apple.comwrote: Well the backtrace is in the radeon driver. I don't know SuSE's package management system, so I don't know how to tell you to update those drivers, but providing /var/log/Xorg.0.log would be helpful. On Oct 18, 2010, at 11:27, benito perez lopez wrote: I don't have idea ;-). I'm using openSUSE 11.3 (production server) and rebuild the system is not an option Everything was working well until today, suddenly KDE closed and told me that it could not contact with the X server that is the error Another idea? Thanks my friend What version of the radwon drivers are you running? Are you able to build with debugging symbols and reproduce the problem? On Oct 18, 2010, at 08:23, benito perez lopez wrote: I have a problem with the X server installed on my machine. KDE fails after some time This is the log content: Backtrace: [ 2670.969] 0: X (xorg_backtrace+0x28) [0x48daf8] [ 2670.969] 1: X (0x40+0x6ae89) [0x46ae89] [ 2670.969] 2: /lib64/libc.so.6 (0x7f8e57451000+0x32a60) [0x7f8e57483a60] [ 2670.969] 3: /lib64/libc.so.6 (memcpy+0xd2) [0x7f8e574d08e2] [ 2670.969] 4: /usr/lib64/xorg/modules/drivers/radeon_drv.so (0x7f8e55327000+0xc194b) [0x7f8e553e894b] [ 2670.969] 5: /usr/lib64/xorg/modules/libexa.so (0x7f8e546d7000+0x947f) [0x7f8e546e047f] [ 2670.969] 6: /usr/lib64/xorg/modules/libexa.so (0x7f8e546d7000+0x95ad) [0x7f8e546e05ad] [ 2670.969] 7: X (miCopyRegion+0x13d) [0x530d3d] [ 2670.969] 8: X (miDoCopy+0x461) [0x5313c1] [ 2670.969] 9: /usr/lib64/xorg/modules/libexa.so (0x7f8e546d7000+0x8577) [0x7f8e546df577] [ 2670.969] 10: X (0x40+0xb357d) [0x4b357d] [ 2670.970] 11: X (0x40+0x3ca21) [0x43ca21] [ 2670.970] 12: X (0x40+0x40b6c) [0x440b6c] [ 2670.970] 13: X (0x40+0x25f3a) [0x425f3a] [ 2670.970] 14: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7f8e5746fb7d] [ 2670.970] 15: X (0x40+0x25af9) [0x425af9] [ 2670.970] Segmentation fault at address (nil) [ 2670.971] Fatal server error: [ 2670.971] Caught signal 11 (Segmentation fault). Server aborting [ 2670.971] [ 2670.971] Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 2670.972] Please also check the log file at /var/log/Xorg.0.log for additional information. [ 2670.972] [ 2671.011] (II) Power Button: Close [ 2671.011] (II) UnloadModule: evdev [ 2671.015] (II) Video Bus: Close [ 2671.015] (II) UnloadModule: evdev [ 2671.019] (II) AT Translated Set 2 keyboard: Close [ 2671.019] (II) UnloadModule: evdev [ 2671.027] (II) ImPS/2 Logitech Wheel Mouse: Close [ 2671.027] (II) UnloadModule: evdev [ 2671.045] (II) AIGLX: Suspending AIGLX clients for VT switch Any idea??? Thanks. ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: jerem...@freedesktop.org ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: apteri...@gmail.com ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: Video resolution problem on Dell C600 notebook
On Thu, Oct 7, 2010 at 10:05 AM, Kevin Meyer fleetg...@comcast.net wrote: Hi, I've loaded lucid lynx on an old Dell C600 notebook. Through the GUI config utility the max video res showing is 800x600. The screen is much more capable than that. I checked the Ubuntu blogs and there are instructions on how to fix this. One in particular involves editing the xorg.conf file. *However, my machine doesn't have a xorg.conf file in the etc/X11 directory.* are you sure? I tried running sudo xorg -configure *but I get a fatal server error saying that server is already active for display 0*. How can I get out of this mess? Can you help me to understand how xorg works better so I can fix this? Thanks. first turn off your X (ctrl+alt+f1, /etc/init.d/gdm stop, or kdm or whatever you use). X -configure turn on your X (startx or /etc/init.d/gdm start) which vga are you using (model/version/revision)? lspci | grep VGA EDID has a bug with some intel and ati cards. EDID is responsible to identify a lot of informations about your monitor. Some developers are fixing this problem. I have all the needed info on the the ATI Mobility M3 chipset and the screen resolutions. Regards, Kevin ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: apteri...@gmail.com ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Driver
I wanna know if is possible to link a driver's name to a specific driver eg: i write in xorg.conf to use the test_driver, then I link the nvidia or the nouveau driver to this test_driver -- Renan Vedovato Traba Student in Bachelor of Computer Science Federal University of Parana, Brazil Linux Register n°: 525911 ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
How to properly use XGrabKey to get a program hotkey
Hello, My goal is to have a program that sleeps in the background but can be activated by the user via some hotkey. From digging around the Xlib manual and the Xlib O'reilly manual, I gather that the correct way to to this is with XGrabKey. However my understanding of the process is incorrect as a simple proof of concept does not work. My understanding is that if I call XGrabKey with the root window as the grab_window, and owner_events false, then whenever my hotkey is pressed the event will be sent *only* to the root window. If I then select KeyPress events from the root window, and then listen for X events, I should get a key press event when the hotkey is pressed. I've pasted a minimal example below. What I expect is that when the program is run, regardless of what window has focus, if Ctrl+Shift+K is pressed, my program should output Hot key pressed! in the console, and then terminate. Furthermore, it is my understanding that if the XGrabKey fails, the default error handler will display a message, and since it does not I am assuming that the call succeeds. Obviously, my understanding is flawed somehow. Can anyone point me in the right direction? Thanks, Josh #include iostream #include X11/Xlib.h #include X11/Xutil.h using namespace std; int main() { Display*dpy = XOpenDisplay(0); Window root= DefaultRootWindow(dpy); XEvent ev; unsigned intmodifiers = ControlMask | ShiftMask; int keycode = XKeysymToKeycode(dpy,XK_K); Window grab_window = root; Boolowner_events= False; int pointer_mode= GrabModeAsync; int keyboard_mode = GrabModeAsync; XGrabKey(dpy, keycode, modifiers, grab_window, owner_events, pointer_mode, keyboard_mode); XSelectInput(dpy, root, KeyPressMask); while(true) { bool shouldQuit = false; XNextEvent(dpy, ev); switch(ev.type) { case KeyPress: cout Hot key pressed! endl; XUngrabKey(dpy,keycode,modifiers,grab_window); shouldQuit = true; default: break; } if(shouldQuit) break; } XCloseDisplay(dpy); return 0; } ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: How to properly use XGrabKey to get a program hotkey
cheshirekow cheshire...@gmail.com writes: My goal is to have a program that sleeps in the background but can be activated by the user via some hotkey. From digging around the Xlib Is this program running as the normal user or is this some privileged service (say switch to another user)? ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: How to properly use XGrabKey to get a program hotkey
My goal is to have a program that sleeps in the background but can be activated by the user via some hotkey. From digging around the Xlib Is this program running as the normal user or is this some privileged service (say switch to another user)? Normal user. I don't think there's any need to perform privileged actions for this application. ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Non-resizable window
Hello, I was wondering if there was a standard way to create a window using Xlib and have it be non-resizable (like a dialog). Would this be through a window manager hint or something like window creation flags? Thanks. -- Burton Samograd ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: Non-resizable window
Burton Samograd wrote: I was wondering if there was a standard way to create a window using Xlib and have it be non-resizable (like a dialog). Would this be through a window manager hint or something like window creation flags? See XSetWMSizeHints. -- Glynn Clements gl...@gclements.plus.com ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: How to properly use XGrabKey to get a program hotkey
cheshirekow wrote: Hello, My goal is to have a program that sleeps in the background but can be activated by the user via some hotkey. From digging around the Xlib manual and the Xlib O'reilly manual, I gather that the correct way to to this is with XGrabKey. However my understanding of the process is incorrect as a simple proof of concept does not work. My understanding is that if I call XGrabKey with the root window as the grab_window, and owner_events false, then whenever my hotkey is pressed the event will be sent *only* to the root window. If I then select KeyPress events from the root window, and then listen for X events, I should get a key press event when the hotkey is pressed. I've pasted a minimal example below. What I expect is that when the program is run, regardless of what window has focus, if Ctrl+Shift+K is pressed, my program should output Hot key pressed! in the console, and then terminate. Furthermore, it is my understanding that if the XGrabKey fails, the default error handler will display a message, and since it does not I am assuming that the call succeeds. Obviously, my understanding is flawed somehow. Can anyone point me in the right direction? This will only work if the window manager or the window with focus doesn't already grab the same keys. Does the example work without a window manager running? ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
[ANNOUNCE] libSM 1.2.0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The libSM library implements the X Session Management protocol. This release fixes a couple of bugs and includes a lot of work from multiple people on the documentation to convert the ancient troff scrolls to DocBook/XML. It also includes the usual recent rounds of build configuration improvements and janitorial cleanups. Alan Coopersmith (27): Migrate to xorg macros 1.3 XORG_DEFAULT_OPTIONS Move docs from xorg-docs, use groff to format for installation Move session management protocol docs from xorg-docs here too Revert Fix memory leak for SM_DeleteProperties Update Sun license notices to current X.Org standard form Update README now that docs are in this module, not xorg-docs SMlib.xml: Remove some nroff macros left in tables by mistake SMlib.xml: Convert function prototypes to funcprototype tags SMlib.xml: Convert remaining literallayout tags to synopsis tags SMlib.xml: Convert remaining `` quotes to ldquo; style SMlib.xml: add internal cross-reference links SMlib.xml: fix typo: SmProc - SmProp SMlib.xml: misc markup cleanups SMlib.xml: fix a couple parameter list entries xsmp.xml: Line wrapping other whitespace cleanup xsmp.xml: Convert - - to rarr; larr; Coalesce copyright notices in xml docs xsmp.xml: Misc markup tag cleanups xsmp.xml: Clean up tables xsmp.xml: Restore note titles (example/rationale/advice) xsmp.xml: Use errorname instead of function for error names xsmp.xml: Use synopsis and related markup for protocol message definition xsmp.xml: add internal cross-reference links SMlib.xml: Line wrapping other whitespace cleanup SMlib.xml: Tag function names, parameters, constant values, etc. SMlib.xml: Use simplelist instead of synopsis for lists of mask values libSM 1.2.0 Alexander Kabaev (1): Fix off by one error in SmsGenerateClientID when uuid_create is used Gaetan Nadon (14): .gitignore: use common defaults with custom section # 24239 Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206 Update .gitignore for the /doc directory #24239 Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES doc: clean-up generated html images doc: use new macros to control doc generation doc: install generated images in $docdir doc: use $(mkdir_p) rather than $(MKDIR_P) due to automake 1.9.6 specs: change install cmd due to automake 1.11 doc: use HAVE_GROFF_MS to skip doc when 's.tmac' macros missing config: remove the pkgconfig pc.in file from EXTRA_DIST doc: replace groff input format with docbook xml format doc: remove trailing spaces in DocBook XML docs Jeremy Huddleston (1): This is not a GNU project, so declare it foreign. Jesse Adkins (1): Purge cvs tags. Michael Jansen (1): Fix memory leak for SM_DeleteProperties Rémi Cardona (2): require libICE = 1.0.5 require autoconf 2.60 because of $(docdir) use git tag: libSM-1.2.0 http://xorg.freedesktop.org/archive/individual/lib/libSM-1.2.0.tar.bz2 MD5: e78c447bf1790552b644eca81b542742 SHA1: f78bc72f0b3ec26cbf980f84f014422ba854544d http://xorg.freedesktop.org/archive/individual/lib/libSM-1.2.0.tar.gz MD5: 4dcf47665aa64161bc5ca74c0778a149 SHA1: a6d2cc17a457028ffa7b238943eb3ce9a096567e - -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (SunOS) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkzJDAoACgkQovueCB8tEw4pUACdGTq33uz6GEBydbAhScmjY5bK h3sAnAyuoplcYaLEMoh2mrmRwBLANjW2 =EQnw -END PGP SIGNATURE- ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
[ANNOUNCE] libXcomposite 0.4.3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 libXcomposite is the Xlib API for the X Composite Extension. This minor maintenance release provides build improvements and reduces both buildtime runtime dependencies of the library. Alan Coopersmith (2): Remove unneeded dependencies from configure.ac xcomposite.pc libXcomposite 0.4.3 Fernando Carrijo (1): Purge macros NEED_EVENTS and NEED_REPLIES Gaetan Nadon (3): config: upgrade to util-macros 1.8 for additional man page support man: store shadow man pages in git rather than generating them man: list files to install only once git tag: libXcomposite-0.4.3 http://xorg.freedesktop.org/archive/individual/lib/libXcomposite-0.4.3.tar.bz2 MD5: a60e0b5c276d0aa9e2d3b982c98f61c8 SHA1: 081b26b556d55e20d7956c80a2ea2854962aecec http://xorg.freedesktop.org/archive/individual/lib/libXcomposite-0.4.3.tar.gz MD5: b93dac50c86db6eba3f72e949f5bed2a SHA1: ccfa6f65e3e045e94966fc668088e43372482c65 - -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (SunOS) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkzJDeEACgkQovueCB8tEw6YSwCfSD5AZsoRvYJzAHZAmXMFA0+K vAcAoIWdvMn8BZ94H9XyP3Riiq98mpGW =ALkW -END PGP SIGNATURE- ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
[ANNOUNCE] libXcursor 1.1.11
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This minor maintenance release provides the usual recent set of build configuration improvements and janitorial cleanups. Alan Coopersmith (1): libXcursor 1.1.11 Gaetan Nadon (12): .gitignore: use common defaults with custom section # 24239 Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432 Deploy the new XORG_DEFAULT_OPTIONS #24242 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206 Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES config: move CWARNFLAGS from configure.ac to Makefile.am config: remove the pkgconfig pc.in file from EXTRA_DIST config: update AC_PREREQ statement to 2.60 config: upgrade to util-macros 1.8 for additional man page support man: store shadow man pages in git rather than generating them man: reorder makefile statements man: whitespace management Jeremy Huddleston (1): This is not a GNU project, so declare it foreign. git tag: libXcursor-1.1.11 http://xorg.freedesktop.org/archive/individual/lib/libXcursor-1.1.11.tar.bz2 MD5: 866ed46f7e0d85b8c0003cebbb78a4af SHA1: 35491bd17cbcdda712e1a064c67ccbc523e2702c http://xorg.freedesktop.org/archive/individual/lib/libXcursor-1.1.11.tar.gz MD5: 8a41d0bcf9210636858844fa4d2f SHA1: be61c39b0dbdfa8c953127458d2df3bc813fee8d - -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (SunOS) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkzJD6AACgkQovueCB8tEw5CFwCff2bwagq1M7GhYX2sNZg3i/Qn ONMAnR47Bq7OvbiYBpQAuLsus7PjNzM2 =NkSb -END PGP SIGNATURE- ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com